We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1a0c9a commit 9e83779Copy full SHA for 9e83779
crates/rust-analyzer/src/cli/rustc_tests.rs
@@ -226,7 +226,6 @@ const SUPPORTED_DIAGNOSTICS: &[DiagnosticCode] = &[
226
];
227
228
impl flags::RustcTests {
229
- #[allow(clippy::redundant_locals)]
230
pub fn run(self) -> Result<()> {
231
let mut tester = Tester::new()?;
232
let walk_dir = WalkDir::new(self.rustc_repo.join("tests/ui"));
@@ -246,8 +245,7 @@ impl flags::RustcTests {
246
245
let p = p.clone();
247
move || {
248
let _guard = stdx::panic_context::enter(p.display().to_string());
249
- let tester = tester;
250
- tester.0.test(p);
+ { tester }.0.test(p);
251
}
252
}) {
253
std::panic::resume_unwind(e);
0 commit comments