-
Couldn't load subscription status.
- Fork 13.9k
Improve Lifetime::suggestion
#139046
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
Improve Lifetime::suggestion
#139046
Conversation
This comment has been minimized.
This comment has been minimized.
be80b19 to
effd5cc
Compare
This comment has been minimized.
This comment has been minimized.
effd5cc to
3eda3db
Compare
|
☔ The latest upstream changes (presumably #139826) made this pull request unmergeable. Please resolve the merge conflicts. |
3eda3db to
5eb8a5f
Compare
|
Details in individual commits. cc @shepmaster |
We have coverage for `Foo` and `Foo<T>` but not for `Foo<>`. This commit adds it. Note that the output has bogus syntax: `impl Foo'a, >`
`Path<>` needs to be distinguished from `Path<T>`. This commit does that, improving some error messages.
5eb8a5f to
d42edee
Compare
|
Ok, I have reduced the PR to perturb the carets in the error messages less. It now only makes the changes necessary to fix the malformed error messages. |
|
@bors r+ rollup |
…=lcnr Improve `Lifetime::suggestion` r? `@lcnr`
Rollup of 12 pull requests Successful merges: - rust-lang#134034 (handle paren in macro expand for let-init-else expr) - rust-lang#137474 (pretty-print: Print shebang at the top of the output) - rust-lang#138872 (rustc_target: RISC-V `Zfinx` is incompatible with `{ILP32,LP64}[FD]` ABIs) - rust-lang#139046 (Improve `Lifetime::suggestion`) - rust-lang#139206 (std: use the address of `errno` to identify threads in `unique_thread_exit`) - rust-lang#139608 (Clarify `async` block behaviour) - rust-lang#139847 (Delegate to inner `vec::IntoIter` from `env::ArgsOs`) - rust-lang#140159 (Avoid redundant WTF-8 checks in `PathBuf`) - rust-lang#140197 (Document breaking out of a named code block) - rust-lang#140389 (Remove `avx512dq` and `avx512vl` implication for `avx512fp16`) - rust-lang#140430 (Improve test coverage of HIR pretty printing.) - rust-lang#140507 (rustc_target: RISC-V: feature addition batch 3) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#139046 - nnethercote:hir-Lifetime-better, r=lcnr Improve `Lifetime::suggestion` r? ``@lcnr``
r? @lcnr