Only check min_const_fn for const fns
This commit is contained in:
parent
f1bacb2dca
commit
52be0b07ae
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ impl Validator<'a, 'mir, 'tcx> {
|
|||
let Item { tcx, body, def_id, const_kind, .. } = *self.item;
|
||||
|
||||
let use_min_const_fn_checks =
|
||||
tcx.is_min_const_fn(def_id)
|
||||
(const_kind == Some(ConstKind::ConstFn) && tcx.is_min_const_fn(def_id))
|
||||
&& !tcx.sess.opts.debugging_opts.unleash_the_miri_inside_of_you;
|
||||
|
||||
if use_min_const_fn_checks {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue