Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c341d5b

Browse files
jam1garnernikomatsakis
authored andcommitted
Improve documentation for future_prelude_collision lint
1 parent 1626e19 commit c341d5b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3275,9 +3275,10 @@ declare_lint! {
32753275
/// ### Explanation
32763276
///
32773277
/// In Rust 2021, one of the important introductions is the [prelude changes], which add
3278-
/// `TryFrom` and `TryInto` into the standard library's prelude. Since this results in an
3279-
/// amiguity as to which method to call when an existing `try_from` or `try_into` method is
3280-
/// called via dot-call syntax.
3278+
/// `TryFrom`, `TryInto`, and `FromIterator` into the standard library's prelude. Since this
3279+
/// results in an amiguity as to which method/function to call when an existing `try_into`
3280+
/// method is called via dot-call syntax or a `try_from`/`from_iter` associated function
3281+
/// is called directly on a type.
32813282
///
32823283
/// [prelude changes]: https://blog.rust-lang.org/inside-rust/2021/03/04/planning-rust-2021.html#prelude-changes
32833284
pub FUTURE_PRELUDE_COLLISION,

0 commit comments

Comments
 (0)