We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_min_const_fn
1 parent 11bfc60 commit 76c6f2dCopy full SHA for 76c6f2d
compiler/rustc_mir/src/transform/check_consts/validation.rs
@@ -204,9 +204,6 @@ impl Validator<'mir, 'tcx> {
204
pub fn check_body(&mut self) {
205
let ConstCx { tcx, body, def_id, .. } = *self.ccx;
206
207
- // HACK: This function has side-effects???? Make sure we call it.
208
- let _ = crate::const_eval::is_min_const_fn(tcx, def_id.to_def_id());
209
-
210
// The local type and predicate checks are not free and only relevant for `const fn`s.
211
if self.const_kind() == hir::ConstContext::ConstFn {
212
// Prevent const trait methods from being annotated as `stable`.
0 commit comments