-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Spell out other trait diagnostic #126127
Spell out other trait diagnostic #126127
Conversation
I think the diagnostic output here is meant to be indicative of the UFCS form: https://doc.rust-lang.org/reference/expressions/call-expr.html#disambiguating-function-calls I'd be hestitant to rewrite this output without weighing that tradeoff |
|
fair enough @bors r+ rollup |
…elix Spell out other trait diagnostic I recently saw somebody confused about the diagnostic thinking it was suggesting to add an `as` cast. This change is longer but I think it's clearer
Rollup of 6 pull requests Successful merges: - rust-lang#123374 (DOC: Add FFI example for slice::from_raw_parts()) - rust-lang#126127 (Spell out other trait diagnostic) - rust-lang#126228 (Provide correct parent for nested anon const) - rust-lang#126249 (Simplify `[T; N]::try_map` signature) - rust-lang#126256 (Add {{target}} substitution to compiletest) - rust-lang#126263 (Make issue-122805.rs big endian compatible) r? `@ghost` `@rustbot` modify labels: rollup
failed in #126297 (comment) it seems @bors r- |
This comment has been minimized.
This comment has been minimized.
79dd1ca
to
d0112c6
Compare
Rebased to cover the new test cases |
@bors r=pnkfelix |
Rollup of 4 pull requests Successful merges: - rust-lang#125112 (Document behavior of `create_dir_all` wrt. empty path) - rust-lang#126127 (Spell out other trait diagnostic) - rust-lang#126309 (unify git command preperation) - rust-lang#126539 (Update `Arc::try_unwrap()` docs) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#126127 - Alexendoo:other-trait-diag, r=pnkfelix Spell out other trait diagnostic I recently saw somebody confused about the diagnostic thinking it was suggesting to add an `as` cast. This change is longer but I think it's clearer
I recently saw somebody confused about the diagnostic thinking it was suggesting to add an
as
cast. This change is longer but I think it's clearer