diff options
| author | bors <bors@rust-lang.org> | 2017-08-30 20:12:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-08-30 20:12:25 +0000 |
| commit | 7eeac1b81446c6327f1827ef334eca2db7fe28f7 (patch) | |
| tree | 5bef3331d201a6eb12d723d6f4c825a8206b3bb5 /src/libstd/net | |
| parent | 51a54b6dc0b51d270d46d9d388e627201f0986db (diff) | |
| parent | c76a024121d8d92af8c5c44651bc72a177565281 (diff) | |
| download | rust-7eeac1b81446c6327f1827ef334eca2db7fe28f7.tar.gz rust-7eeac1b81446c6327f1827ef334eca2db7fe28f7.zip | |
Auto merge of #43932 - eddyb:const-scoping, r=nikomatsakis
Forward-compatibly deny drops in constants if they *could* actually run.
This is part of #40036, specifically the checks for user-defined destructor invocations on locals which *may not* have been moved away, the motivating example being:
```rust
const FOO: i32 = (HasDrop {...}, 0).1;
```
The evaluation of constant MIR will continue to create `'static` slots for more locals than is necessary (if `Storage{Live,Dead}` statements are ignored), but it shouldn't be misusable.
r? @nikomatsakis
Diffstat (limited to 'src/libstd/net')
0 files changed, 0 insertions, 0 deletions
