@@ -16,8 +16,8 @@ For any lint check `C`:
1616* ` #[allow(C)] ` overrides the check for ` C ` so that violations will go
1717 unreported.
1818* ` #[expect(C)] ` indicates that lint ` C ` is expected to be emitted. The
19- attribute will suppres the emission of ` C ` or issue a warning, if the
20- expectation is unfillfilled .
19+ attribute will suppress the emission of ` C ` or issue a warning, if the
20+ expectation is unfulfilled .
2121* ` #[warn(C)] ` warns about violations of ` C ` but continues compilation.
2222* ` #[deny(C)] ` signals an error after encountering a violation of ` C ` ,
2323* ` #[forbid(C)] ` is the same as ` deny(C) ` , but also forbids changing the lint
@@ -143,7 +143,7 @@ fn main() {
143143
144144 // This `#[expect]` attribute creates a lint expectation that will be fulfilled, since
145145 // the `answer` variable is never used. The `unused_variables` lint, that would usually
146- // be emitted, is supressed . No warning will be issued for the statement or attribute.
146+ // be emitted, is suppressed . No warning will be issued for the statement or attribute.
147147 #[expect(unused_variables)]
148148 let answer = " SpongeBob SquarePants!" ;
149149}
@@ -178,7 +178,7 @@ fn select_song() {
178178}
179179```
180180
181- If the ` expect ` attribute contains several lints, each one is expected separatly . For a
181+ If the ` expect ` attribute contains several lints, each one is expected separately . For a
182182lint group it's enough if one lint inside the group has been emitted:
183183
184184``` rust
@@ -193,7 +193,7 @@ pub fn another_example() {
193193 // This attribute creates two lint expectations. The `unused_mut` lint will be
194194 // suppressed and with that fulfill the first expectation. The `unused_variables`
195195 // wouldn't be emitted, since the variable is used. That expectation will therefore
196- // be unsatified , and a warning will be emitted.
196+ // be unsatisfied , and a warning will be emitted.
197197 #[expect(unused_mut, unused_variables)]
198198 let mut link = " https://www.rust-lang.org/" ;
199199
@@ -202,8 +202,7 @@ pub fn another_example() {
202202```
203203
204204> Note: The behavior of ` #[expect(unfulfilled_lint_expectations)] ` is currently
205- > defined to always generate the ` unfulfilled_lint_expectations ` lint. This may
206- > change in the future.
205+ > defined to always generate the ` unfulfilled_lint_expectations ` lint.
207206
208207### Lint groups
209208
@@ -444,7 +443,6 @@ When used on a function in a trait implementation, the attribute does nothing.
444443[let statement ]: .. / statements . md#let - statements
445444[macro definition ]: .. / macros - by - example . md
446445[module ]: .. / items / modules . md
447- [RFC 2383 ]: https : // rust-lang.github.io/rfcs/2383-lint-reasons.html
448446[rustc book ]: .. / .. / rustc / lints / index . html
449447[rustc - lint - caps ]: .. / .. / rustc / lints / levels . html#capping - lints
450448[rustc - lint - cli ]: .. / .. / rustc / lints / levels . html#via - compiler - flag
0 commit comments