Skip to content

tests: fix some typos in comment #138141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading