-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[WIP] remove Location::All
#50938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] remove Location::All
#50938
Changes from 1 commit
1b10566
cbdb330
09df848
9d40370
9a34822
3ff3116
fd78a2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
warning: not reporting region error due to nll | ||
--> $DIR/region-lbr-named-does-not-outlive-static.rs:19:5 | ||
--> $DIR/region-lbr-named-does-not-outlive-static.rs:20:5 | ||
| | ||
LL | &*x | ||
| ^^^ | ||
|
||
error: free region `ReFree(DefId(0/0:3 ~ region_lbr_named_does_not_outlive_static[317d]::foo[0]), BrNamed(crate0:DefIndex(1:9), 'a))` does not outlive free region `ReStatic` | ||
--> $DIR/region-lbr-named-does-not-outlive-static.rs:19:5 | ||
--> $DIR/region-lbr-named-does-not-outlive-static.rs:18:1 | ||
| | ||
LL | &*x | ||
| ^^^ | ||
LL | / fn foo<'a>(x: &'a u32) -> &'static u32 { | ||
LL | | //~^ ERROR does not outlive free region | ||
LL | | &*x | ||
LL | | //~^ WARN not reporting region error due to nll | ||
LL | | } | ||
| |_^ | ||
|
||
error: aborting due to previous error | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error: free region `` does not outlive free region `'_#1r` | ||
--> $DIR/issue-48238.rs:21:21 | ||
--> $DIR/issue-48238.rs:21:5 | ||
| | ||
LL | move || use_val(&orig); //~ ERROR free region `` does not outlive free region `'_#1r` | ||
| ^^^^^ | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
warning: not reporting region error due to nll | ||
--> $DIR/impl-trait-captures.rs:21:5 | ||
--> $DIR/impl-trait-captures.rs:22:5 | ||
| | ||
LL | x | ||
| ^ | ||
|
||
error[E0621]: explicit lifetime required in the type of `x` | ||
--> $DIR/impl-trait-captures.rs:21:5 | ||
--> $DIR/impl-trait-captures.rs:20:1 | ||
| | ||
LL | fn foo<'a, T>(x: &T) -> impl Foo<'a> { | ||
| - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T` | ||
LL | x | ||
| ^ lifetime `ReEarlyBound(0, 'a)` required | ||
LL | fn foo<'a, T>(x: &T) -> impl Foo<'a> { | ||
| ^ - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Like a similar comment elsewhere: this sort of thing is the reason I'm not really thrilled with I recognize its a pre-existing issue with the test, but I think it would clean things up if you took the |
||
| _| | ||
| | | ||
LL | | //~^ ERROR explicit lifetime required in the type of `x` [E0621] | ||
LL | | x | ||
LL | | //~^ WARNING not reporting region error due to nll | ||
LL | | } | ||
| |_^ lifetime `ReEarlyBound(0, 'a)` required | ||
|
||
error: aborting due to previous error | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(this sort of thing is the reason I'm not really thrilled with
ui/
tests that use-Z verbose
... though I guess seeingReStatic
in supposed user output is not as egregious as other potential leakage of internal details...)