-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 some inference diagnostics #98497
Conversation
Some changes occured in need_type_info.rs cc @lcnr |
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
r? @lcnr |
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.
some nits, then r=me
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
Outdated
Show resolved
Hide resolved
583bb8b
to
8ef9292
Compare
Some changes occurred in need_type_info.rs cc @lcnr |
// Pick the first substitution that still contains inference variables as the one | ||
// we're going to emit an error for. If there are none (see above), fall back to | ||
// the substitution for `Self`. |
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.
// Pick the first substitution that still contains inference variables as the one | |
// we're going to emit an error for. If there are none (see above), fall back to | |
// the substitution for `Self`. | |
// Pick the first substitution that still contains inference variables as the one | |
// we're going to emit an error for. If there are none (see above), fall back | |
// to a more general error. |
r=me after that last nit ^^ |
8ef9292
to
6711313
Compare
@bors r=lcnr |
📌 Commit 6711313 has been approved by |
…laumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#97249 (`<details>`/`<summary>` UI fixes) - rust-lang#98418 (Allow macOS to build LLVM as shared library) - rust-lang#98460 (Use CSS variables to handle theming) - rust-lang#98497 (Improve some inference diagnostics) - rust-lang#98708 (rustdoc: fix 98690 Panic if invalid path for -Z persist-doctests) Failed merges: - rust-lang#98761 (more `need_type_info` improvements) r? `@ghost` `@rustbot` modify labels: rollup
&'a ()
" when the given type has no inference variables.