diff options
| author | kennytm <kennytm@gmail.com> | 2018-09-08 16:07:38 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-09-08 18:26:29 +0800 |
| commit | 7569d9266e607df6579916e871d65480aaa8b50a (patch) | |
| tree | a7f82955403356d8126f3589da54f03ac3fdfd43 /src/test/incremental/thinlto | |
| parent | 06da917b015a2eceac0e3cca22f9660edef25178 (diff) | |
| parent | faf80ad3979e58d238f41c22e7be06ff1276a359 (diff) | |
| download | rust-7569d9266e607df6579916e871d65480aaa8b50a.tar.gz rust-7569d9266e607df6579916e871d65480aaa8b50a.zip | |
Rollup merge of #53932 - matthewjasper:remove-base-path, r=nikomatsakis
[NLL] Remove base_place
This function was supposed to make `Box` less special. But
* I think that the consensus is that MIR borrowck is going to fully special case `Box`
* It wasn't implemented correctly, it's looking at the type of the wrong `Place`, resulting in weird behaviour:
```rust
#![feature(nll)]
type A = Box<i32>; // If this is changed to another type then this will compile.
pub fn foo(x: Box<(String, A)>) {
let a = x.0; // This will compile if these lines are swapped
let b = x.1;
}
```
r? @nikomatsakis
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
