Skip to content

Commit 7bae5bd

Browse files
committed
Add comment for mir_opt_level=0
1 parent e3a74ed commit 7bae5bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/driver.rs

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
7676
clippy_lints::register_renamed(&mut lint_store);
7777
}));
7878

79+
// FIXME: #4825; This is required, because Clippy lints that are based on MIR have to be
80+
// run on the unoptimized MIR. On the other hand this results in some false negatives. If
81+
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
82+
// use for Clippy.
7983
config.opts.debugging_opts.mir_opt_level = 0;
8084
}
8185
}

0 commit comments

Comments
 (0)