Visitar URL original
Remove lint list check · taiki-e/pin-project@38c4579 · GitHub
Skip to content

Commit 38c4579

Browse files
committed
Remove lint list check
There is little need to maintain this check on older branches.
1 parent 30de04e commit 38c4579

2 files changed

Lines changed: 0 additions & 186 deletions

File tree

‎tests/lint.rs‎

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -127,41 +127,3 @@ pub mod clippy {
127127
},
128128
}
129129
}
130-
131-
#[allow(box_pointers)]
132-
#[rustversion::attr(not(nightly), ignore)]
133-
#[test]
134-
fn check_lint_list() {
135-
use std::{env, fs, path::PathBuf, process::Command, str};
136-
137-
type Result<T, E = Box<dyn std::error::Error>> = std::result::Result<T, E>;
138-
139-
fn assert_eq(expected_path: &str, actual: &str) -> Result<()> {
140-
let manifest_dir = env::var_os("CARGO_MANIFEST_DIR")
141-
.map(PathBuf::from)
142-
.expect("CARGO_MANIFEST_DIR not set");
143-
let expected_path = manifest_dir.join(expected_path);
144-
let expected = fs::read_to_string(&expected_path)?;
145-
if expected != actual {
146-
if env::var_os("CI").map_or(false, |v| v == "true") {
147-
panic!(
148-
"assertion failed:\n\nEXPECTED:\n{0}\n{1}\n{0}\n\nACTUAL:\n{0}\n{2}\n{0}\n",
149-
"-".repeat(60),
150-
expected,
151-
actual,
152-
);
153-
} else {
154-
fs::write(&expected_path, actual)?;
155-
}
156-
}
157-
Ok(())
158-
}
159-
160-
(|| -> Result<()> {
161-
let rustc = env::var_os("RUSTC").unwrap_or_else(|| "rustc".into());
162-
let output = Command::new(rustc).args(&["-W", "help"]).output()?;
163-
let new = str::from_utf8(&output.stdout)?;
164-
assert_eq("tests/lint.txt", new)
165-
})()
166-
.unwrap_or_else(|e| panic!("{}", e));
167-
}

‎tests/lint.txt‎

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)