mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
fix clippy
This commit is contained in:
@@ -139,7 +139,7 @@ fn check_fn(
|
||||
let mir = cx.tcx.optimized_mir(def_id);
|
||||
|
||||
if let Err((span, err)) = is_min_const_fn(cx.tcx, mir, self.msrv.as_ref()) {
|
||||
if rustc_mir::const_eval::is_min_const_fn(cx.tcx, def_id.to_def_id()) {
|
||||
if cx.tcx.is_const_fn_raw(def_id.to_def_id()) {
|
||||
cx.tcx.sess.span_err(span, &err);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user