-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #81713 - estebank:unstable-assoc-item-lint, r=oli-obk
Account for associated consts in the "unstable assoc item name colission" lint Fix #81663.
- Loading branch information
Showing
6 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
warning: a method with this name may be added to the standard library in the future | ||
warning: an associated function with this name may be added to the standard library in the future | ||
--> $DIR/inference_unstable.rs:16:20 | ||
| | ||
LL | assert_eq!('x'.ipu_flatten(), 1); | ||
| ^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(unstable_name_collisions)]` on by default | ||
= warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! | ||
= warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! | ||
= note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919> | ||
= help: call with fully qualified syntax `inference_unstable_itertools::IpuItertools::ipu_flatten(...)` to keep using the current method | ||
= help: add `#![feature(ipu_flatten)]` to the crate attributes to enable `inference_unstable_iterator::IpuIterator::ipu_flatten` | ||
|
||
warning: 1 warning emitted | ||
warning: an associated constant with this name may be added to the standard library in the future | ||
--> $DIR/inference_unstable.rs:19:16 | ||
| | ||
LL | assert_eq!(char::C, 1); | ||
| ^^^^^^^ help: use the fully qualified path to the associated const: `<char as IpuItertools>::C` | ||
| | ||
= warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! | ||
= note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919> | ||
= help: add `#![feature(assoc_const_ipu_iter)]` to the crate attributes to enable `inference_unstable_iterator::IpuIterator::C` | ||
|
||
warning: 2 warnings emitted | ||
|