@@ -638,12 +638,12 @@ broader meaning than what rustc exposes to users of the compiler.
638
638
Inside rustc, future-incompatible lints are for signalling to the user that code they have
639
639
written may not compile in the future. In general, future-incompatible code
640
640
exists for two reasons:
641
- * the user has written unsound code that the compiler mistakenly accepted. While
641
+ * The user has written unsound code that the compiler mistakenly accepted. While
642
642
it is within Rust's backwards compatibility guarantees to fix the soundness hole
643
643
(breaking the user's code), the lint is there to warn the user that this will happen
644
644
in some upcoming version of rustc * regardless of which edition the code uses* . This is the
645
645
meaning that rustc exclusively exposes to users as "future incompatible".
646
- * the user has written code that will either no longer compiler * or* will change
646
+ * The user has written code that will either no longer compiler * or* will change
647
647
meaning in an upcoming * edition* . These are often called "edition lints" and can be
648
648
typically seen in the various "edition compatibility" lint groups (e.g., ` rust_2021_compatibility ` )
649
649
that are used to lint against code that will break if the user updates the crate's edition.
@@ -666,7 +666,7 @@ declare_lint! {
666
666
Notice the ` reason ` field which describes why the future incompatible change is happening.
667
667
This will change the diagnostic message the user receives as well as determine which
668
668
lint groups the lint is added to. In the example above, the lint is an "edition lint"
669
- (since it's "reason" is ` EditionError ` ) signifying to the user that the use of anonymous
669
+ (since its "reason" is ` EditionError ` ), signifying to the user that the use of anonymous
670
670
parameters will no longer compile in Rust 2018 and beyond.
671
671
672
672
Inside [ LintStore::register_lints] [ fi-lint-groupings ] , lints with ` future_incompatible `
0 commit comments