-
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
Stop suggesting adding generic args for turbofish #100986
Stop suggesting adding generic args for turbofish #100986
Conversation
Some changes occurred in need_type_info.rs cc @lcnr |
(rust-highfive has picked a reviewer for you, use r? to override) |
--> $DIR/do-not-suggest-generic-arguments-for-turbofish.rs:8:5 | ||
| | ||
LL | OhNo::C::<u32, _>; | ||
| ^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `U` declared on the enum `OhNo` |
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.
I think this suggestion should point at the type parameter. I will work on it later in a follow-up PR.
I personally like the suggestions, even if the generic args are already specified, but include A more targeted fix for #100137 would be to not add an |
☔ The latest upstream changes (presumably #101143) made this pull request unmergeable. Please resolve the merge conflicts. |
5228379
to
a2b1543
Compare
compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs
Outdated
Show resolved
Hide resolved
r=me with nit fixed |
a2b1543
to
4525796
Compare
I forgot about this PR. @bors r=compiler-errors |
Rollup of 5 pull requests Successful merges: - rust-lang#100986 (Stop suggesting adding generic args for turbofish) - rust-lang#101061 (panic-on-uninit: adjust checks to 0x01-filling) - rust-lang#102440 (Only export `__tls_*` on wasm32-unknown-unknown.) - rust-lang#102496 (Suggest `.into()` when all other coercion suggestions fail) - rust-lang#102699 (Fix hamburger button color) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #100137