-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Point at capture points for non-'static
reference crossing a yield
point
#89734
Merged
Commits on Dec 10, 2021
-
Point at capture points for non-
'static
reference crossing a `yield……` point ``` error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement --> $DIR/issue-72312.rs:10:24 | LL | pub async fn start(&self) { | ^^^^^ this data with an anonymous lifetime `'_`... ... LL | require_static(async move { | -------------- ...is required to live as long as `'static` here... LL | &self; | ----- ...and is captured here | note: `'static` lifetime requirement introduced by this trait bound --> $DIR/issue-72312.rs:2:22 | LL | fn require_static<T: 'static>(val: T) -> T { | ^^^^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0759`. ``` Fix rust-lang#72312.
Configuration menu - View commit details
-
Copy full SHA for d10fe26 - Browse repository at this point
Copy the full SHA d10fe26View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd81e98 - Browse repository at this point
Copy the full SHA dd81e98View commit details -
* take diagnostic logic out of happy-path * sort/dedup once * add more comments
Configuration menu - View commit details
-
Copy full SHA for ab45ab8 - Browse repository at this point
Copy the full SHA ab45ab8View commit details -
Add filtering based on involved required lifetime
More accurate filtering still needed.
Configuration menu - View commit details
-
Copy full SHA for 09dbf37 - Browse repository at this point
Copy the full SHA 09dbf37View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee0fd10 - Browse repository at this point
Copy the full SHA ee0fd10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10a74ac - Browse repository at this point
Copy the full SHA 10a74acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ee723e - Browse repository at this point
Copy the full SHA 0ee723eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff13ad7 - Browse repository at this point
Copy the full SHA ff13ad7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83ce1aa - Browse repository at this point
Copy the full SHA 83ce1aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cc7bd7 - Browse repository at this point
Copy the full SHA 9cc7bd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d33fa13 - Browse repository at this point
Copy the full SHA d33fa13View commit details -
Configuration menu - View commit details
-
Copy full SHA for da5b0cc - Browse repository at this point
Copy the full SHA da5b0ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40f161a - Browse repository at this point
Copy the full SHA 40f161aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2d9eb3 - Browse repository at this point
Copy the full SHA d2d9eb3View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.