diff options
| author | bors <bors@rust-lang.org> | 2017-09-10 15:32:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-09-10 15:32:20 +0000 |
| commit | b413f34087d913b80cf432a66d05ec5be11f3515 (patch) | |
| tree | 57d2e4f0354f455a51f0c971391f6fb51adec6af /src/rustllvm/RustWrapper.cpp | |
| parent | d290dec97f8bace2a2585505518b109b1e368f4c (diff) | |
| parent | 88e4bf6827e256687966db263480c90c33b187ba (diff) | |
| download | rust-b413f34087d913b80cf432a66d05ec5be11f3515.tar.gz rust-b413f34087d913b80cf432a66d05ec5be11f3515.zip | |
Auto merge of #44079 - gaurikholkar:named_conf, r=nikomatsakis
Extend E0623 for LateBound and EarlyBound Regions
This is a fix for #43882
```
fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
x.push(y);
}
```
now gives
```
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-latebound-regions.rs:12:12
|
11 | fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
| ------ ------ these two types are declared with different lifetimes...
12 | x.push(y);
| ^ ...but data from `y` flows into `x` here
```
cc @nikomatsakis @arielb1
Please ignore the second commit. It will be merged in a separate PR.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
