-
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
Remove a bunch of redundant args from report_method_error
#125906
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ error[E0599]: no function or associated item named `bitor` found for trait objec | |
LL | let g = BitXor::bitor; | ||
| ^^^^^ function or associated item not found in `dyn BitXor<_>` | ||
| | ||
help: there is a method `bitxor` with a similar name, but with different arguments | ||
help: there is a method `bitxor` with a similar name | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We were previously passing This expression has no arguments, so "but with different arguments" was spurious. |
||
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL | ||
|
||
error: aborting due to 4 previous errors; 2 warnings emitted | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,6 @@ LL | Box::z | |
LL | mac!(); | ||
| ------ in this macro invocation | ||
| | ||
note: if you're trying to build a new `Box<_, _>` consider using one of the following associated functions: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above. We don't suggest builder methods for non-calls. |
||
Box::<T>::new | ||
Box::<T>::new_uninit | ||
Box::<T>::new_zeroed | ||
Box::<T>::try_new | ||
and 18 others | ||
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL | ||
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: aborting due to 2 previous errors | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,14 +126,15 @@ LL | S::B; | |
| ^ associated item not found in `S` | ||
| | ||
= help: items from traits can only be used if the trait is in scope | ||
help: there is a method `b` with a similar name | ||
--> $DIR/item-privacy.rs:11:9 | ||
| | ||
LL | fn b(&self) { } | ||
| ^^^^^^^^^^^ | ||
help: trait `B` which provides `B` is implemented but not in scope; perhaps you want to import it | ||
| | ||
LL + use assoc_const::B; | ||
| | ||
help: there is a method `b` with a similar name | ||
| | ||
LL | S::b; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above, we don't do an identifier suggestion if it's not a method. |
||
| ~ | ||
|
||
error[E0624]: associated constant `A` is private | ||
--> $DIR/item-privacy.rs:101:14 | ||
|
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.
Don't ask me what the difference is between
span
andsugg_span
, because it's incredibly nasty how both of those spans are being passed around below and I don't particularly want to simplify it.