Rustup to rust-lang/rust#67781
This commit is contained in:
parent
0da0ae3aa6
commit
c24251b5fd
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingConstForFn {
|
|||
let mir = cx.tcx.optimized_mir(def_id);
|
||||
|
||||
if let Err((span, err)) = is_min_const_fn(cx.tcx, def_id, &mir) {
|
||||
if cx.tcx.is_min_const_fn(def_id) {
|
||||
if rustc_mir::const_eval::is_min_const_fn(cx.tcx, def_id) {
|
||||
cx.tcx.sess.span_err(span, &err);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue