tests: fix some typos in comment
Signed-off-by: tcpdumppy <847462026@qq.com>
This commit is contained in:
parent
b74da9613a
commit
69aafd21f5
5 changed files with 6 additions and 6 deletions
|
@ -1,10 +1,10 @@
|
||||||
//@ check-pass
|
//@ 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]`
|
// for `foo` as `foo` is being used by `main`, and so the `#[expect]`
|
||||||
// is unfulfilled
|
// 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`
|
// for `bar` as it's suppresed by the `#[expect]` on `bar`
|
||||||
|
|
||||||
#![warn(dead_code)] // to override compiletest
|
#![warn(dead_code)] // to override compiletest
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ check-pass
|
//@ check-pass
|
||||||
|
|
||||||
// this test makes sure that the `unfulfilled_lint_expectations` lint
|
// 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
|
#![warn(dead_code)] // to override compiletest
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ revisions: allow expect
|
//@ revisions: allow expect
|
||||||
|
|
||||||
// this test checks that no matter if we put #[allow(dead_code)]
|
// 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
|
#![warn(dead_code)] // to override compiletest
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#![feature(never_type)]
|
#![feature(never_type)]
|
||||||
|
|
||||||
fn deref_never(x: &!) {
|
fn deref_never(x: &!) {
|
||||||
// Don't lint for uninhabited typess
|
// Don't lint for uninhabited types
|
||||||
*x;
|
*x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#![deny(exported_private_dependencies)]
|
#![deny(exported_private_dependencies)]
|
||||||
|
|
||||||
// Ensure the libbar.rlib is loaded first. If the command line parameter `--extern foo` does not
|
// 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"]
|
#![crate_type = "rlib"]
|
||||||
extern crate bar;
|
extern crate bar;
|
||||||
extern crate foo;
|
extern crate foo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue