diff options
| author | lcnr <rust@lcnr.de> | 2024-12-02 13:23:16 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2024-12-02 13:38:18 +0100 |
| commit | 8b90e70e0634a3392b77f514c9755058b1fb85f7 (patch) | |
| tree | 52df12601e81ad19403369f84d1a64083cab43b2 /compiler/rustc_mir_transform/src/inline.rs | |
| parent | bd36e69d2533ee750e2d805915b8ca88d2825e0f (diff) | |
| download | rust-8b90e70e0634a3392b77f514c9755058b1fb85f7.tar.gz rust-8b90e70e0634a3392b77f514c9755058b1fb85f7.zip | |
mir validator: don't store mir phase
Diffstat (limited to 'compiler/rustc_mir_transform/src/inline.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/inline.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler/rustc_mir_transform/src/inline.rs b/compiler/rustc_mir_transform/src/inline.rs index 0878fa26a92..79c38b50459 100644 --- a/compiler/rustc_mir_transform/src/inline.rs +++ b/compiler/rustc_mir_transform/src/inline.rs @@ -220,15 +220,7 @@ impl<'tcx> Inliner<'tcx> { // Normally, this shouldn't be required, but trait normalization failure can create a // validation ICE. - if !validate_types( - self.tcx, - MirPhase::Runtime(RuntimePhase::Optimized), - self.typing_env, - &callee_body, - &caller_body, - ) - .is_empty() - { + if !validate_types(self.tcx, self.typing_env, &callee_body, &caller_body).is_empty() { return Err("failed to validate callee body"); } |
