Skip to content

Commit e214dd4

Browse files
committed
Auto merge of #5025 - JohnTitor:rustup-0109, r=phansch
Rustup to rust-lang/rust#67781 changelog: none
2 parents 0da0ae3 + c24251b commit e214dd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/missing_const_for_fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingConstForFn {
109109
let mir = cx.tcx.optimized_mir(def_id);
110110

111111
if let Err((span, err)) = is_min_const_fn(cx.tcx, def_id, &mir) {
112-
if cx.tcx.is_min_const_fn(def_id) {
112+
if rustc_mir::const_eval::is_min_const_fn(cx.tcx, def_id) {
113113
cx.tcx.sess.span_err(span, &err);
114114
}
115115
} else {

0 commit comments

Comments
 (0)