Skip to content

use the #[non_owned] and #[mutable] attributes#6305

Merged
bors merged 2 commits intorust-lang:incomingfrom
thestinger:rc
May 8, 2013
Merged

use the #[non_owned] and #[mutable] attributes#6305
bors merged 2 commits intorust-lang:incomingfrom
thestinger:rc

Conversation

@thestinger
Copy link
Contributor

No description provided.

bors added a commit that referenced this pull request May 8, 2013
@bors bors closed this May 8, 2013
@bors bors merged commit 96eb1e5 into rust-lang:incoming May 8, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 20, 2020
Add `let_underscore_drop`

This line generalizes `let_underscore_lock` (rust-lang#5101) to warn about any initializer expression that implements `Drop`.

So, for example, the following would generate a warning:
```rust
struct Droppable;
impl Drop for Droppable {
    fn drop(&mut self) {}
}
let _ = Droppable;
```

I tried to preserve the original `let_underscore_lock` functionality in the sense that the warning generated for
```rust
let _ = mutex.lock();
```
should be unchanged.

*Please keep the line below*
changelog: Add lint [`let_underscore_drop`]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants