mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
tests: fix some typos in comment
Signed-off-by: tcpdumppy <847462026@qq.com>
This commit is contained in:
parent
b74da9613a
commit
69aafd21f5
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#![feature(never_type)]
|
||||
|
||||
fn deref_never(x: &!) {
|
||||
// Don't lint for uninhabited typess
|
||||
// Don't lint for uninhabited types
|
||||
*x;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user