diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-25 13:50:18 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-25 14:31:32 -0700 |
| commit | 76c6f2dc3f0769653e80c58bd3f288594fa11dc6 (patch) | |
| tree | 4605d9ff27c2685154bd50fefbf407e5c9549134 | |
| parent | 11bfc60a4b5fa111527a69e5f511cb69ae5325af (diff) | |
| download | rust-76c6f2dc3f0769653e80c58bd3f288594fa11dc6.tar.gz rust-76c6f2dc3f0769653e80c58bd3f288594fa11dc6.zip | |
No need to call `is_min_const_fn` for side-effects
| -rw-r--r-- | compiler/rustc_mir/src/transform/check_consts/validation.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_mir/src/transform/check_consts/validation.rs b/compiler/rustc_mir/src/transform/check_consts/validation.rs index dc28ba46d7c..3a5ae4c8348 100644 --- a/compiler/rustc_mir/src/transform/check_consts/validation.rs +++ b/compiler/rustc_mir/src/transform/check_consts/validation.rs @@ -204,9 +204,6 @@ impl Validator<'mir, 'tcx> { pub fn check_body(&mut self) { let ConstCx { tcx, body, def_id, .. } = *self.ccx; - // HACK: This function has side-effects???? Make sure we call it. - let _ = crate::const_eval::is_min_const_fn(tcx, def_id.to_def_id()); - // The local type and predicate checks are not free and only relevant for `const fn`s. if self.const_kind() == hir::ConstContext::ConstFn { // Prevent const trait methods from being annotated as `stable`. |
