Skip to content

Commit 282a37f

Browse files
authored
Rollup merge of rust-lang#138141 - tcpdumppy:master, r=compiler-errors
tests: fix some typos in comment fix some typos in comment
2 parents e70adad + 69aafd2 commit 282a37f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: tests/ui/lint/dead-code/allow-or-expect-dead_code-114557-2.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//@ check-pass
22

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

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

Diff for: tests/ui/lint/dead-code/allow-or-expect-dead_code-114557-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ check-pass
22

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

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

Diff for: tests/ui/lint/dead-code/allow-or-expect-dead_code-114557.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ revisions: allow expect
33

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

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

Diff for: tests/ui/lint/unused/must-use-ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#![feature(never_type)]
77

88
fn deref_never(x: &!) {
9-
// Don't lint for uninhabited typess
9+
// Don't lint for uninhabited types
1010
*x;
1111
}
1212

Diff for: tests/ui/privacy/pub-priv-dep/priv-dep-issue-122756.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![deny(exported_private_dependencies)]
66

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

0 commit comments

Comments
 (0)