Skip to content

Commit a7d9603

Browse files
authored
diagnostics: small fixes/improvements (#1618)
1 parent d01441d commit a7d9603

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diagnostics.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -638,12 +638,12 @@ broader meaning than what rustc exposes to users of the compiler.
638638
Inside rustc, future-incompatible lints are for signalling to the user that code they have
639639
written may not compile in the future. In general, future-incompatible code
640640
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
642642
it is within Rust's backwards compatibility guarantees to fix the soundness hole
643643
(breaking the user's code), the lint is there to warn the user that this will happen
644644
in some upcoming version of rustc *regardless of which edition the code uses*. This is the
645645
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
647647
meaning in an upcoming *edition*. These are often called "edition lints" and can be
648648
typically seen in the various "edition compatibility" lint groups (e.g., `rust_2021_compatibility`)
649649
that are used to lint against code that will break if the user updates the crate's edition.
@@ -666,7 +666,7 @@ declare_lint! {
666666
Notice the `reason` field which describes why the future incompatible change is happening.
667667
This will change the diagnostic message the user receives as well as determine which
668668
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
670670
parameters will no longer compile in Rust 2018 and beyond.
671671

672672
Inside [LintStore::register_lints][fi-lint-groupings], lints with `future_incompatible`

0 commit comments

Comments
 (0)