Skip to content

Commit

Permalink
Rollup merge of rust-lang#138141 - tcpdumppy:master, r=compiler-errors
Browse files Browse the repository at this point in the history
tests: fix some typos in comment

fix some typos in comment
  • Loading branch information
compiler-errors authored Mar 7, 2025
2 parents d3fdef6 + 69aafd2 commit 22bd39a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/ui/lint/dead-code/allow-or-expect-dead_code-114557-2.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//@ check-pass

// this test checks that the `dead_code` lint is *NOT* being emited
// this test checks that the `dead_code` lint is *NOT* being emitted
// for `foo` as `foo` is being used by `main`, and so the `#[expect]`
// is unfulfilled
//
// it also checks that the `dead_code` lint is also *NOT* emited
// it also checks that the `dead_code` lint is also *NOT* emitted
// for `bar` as it's suppresed by the `#[expect]` on `bar`

#![warn(dead_code)] // to override compiletest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ check-pass

// this test makes sure that the `unfulfilled_lint_expectations` lint
// is being emited for `foo` as foo is not dead code, it's pub
// is being emitted for `foo` as foo is not dead code, it's pub

#![warn(dead_code)] // to override compiletest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//@ revisions: allow expect

// this test checks that no matter if we put #[allow(dead_code)]
// or #[expect(dead_code)], no warning is being emited
// or #[expect(dead_code)], no warning is being emitted

#![warn(dead_code)] // to override compiletest

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/lint/unused/must-use-ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#![feature(never_type)]

fn deref_never(x: &!) {
// Don't lint for uninhabited typess
// Don't lint for uninhabited types
*x;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/privacy/pub-priv-dep/priv-dep-issue-122756.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#![deny(exported_private_dependencies)]

// Ensure the libbar.rlib is loaded first. If the command line parameter `--extern foo` does not
// exist, previus version would fail to compile
// exist, previous version would fail to compile
#![crate_type = "rlib"]
extern crate bar;
extern crate foo;
Expand Down

0 comments on commit 22bd39a

Please sign in to comment.