rust/compiler/rustc_mir
Jonas Schievink 6522868664
Rollup merge of #77251 - dtolnay:drop, r=Aaron1011
Bypass const_item_mutation if const's type has Drop impl

Follow-up to #75573. This PR disables the const_item_mutation lint in cases that the const has a Drop impl which observes the mutation.

```rust
struct Log { msg: &'static str }
const LOG: Log = Log { msg: "" };
impl Drop for Log {
    fn drop(&mut self) { println!("{}", self.msg); }
}

LOG.msg = "wow";  // prints "wow"
```

r? @Aaron1011
2020-10-03 00:31:12 +02:00
..
src Rollup merge of #77251 - dtolnay:drop, r=Aaron1011 2020-10-03 00:31:12 +02:00
Cargo.toml update the version of itertools and parking_lot 2020-09-12 08:26:53 +02:00