tests: fix some typos in comment

Signed-off-by: tcpdumppy <847462026@qq.com>
This commit is contained in:
tcpdumppy 2025-03-07 10:50:31 +08:00
parent b74da9613a
commit 69aafd21f5
5 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -6,7 +6,7 @@
#![feature(never_type)]
fn deref_never(x: &!) {
// Don't lint for uninhabited typess
// Don't lint for uninhabited types
*x;
}

View File

@ -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;