diff options
| author | Boxy <supbscripter@gmail.com> | 2023-04-27 07:52:17 +0100 |
|---|---|---|
| committer | Boxy <supbscripter@gmail.com> | 2023-04-27 08:35:19 +0100 |
| commit | 842419712a9ed7be166bfdac2d5588356191dabb (patch) | |
| tree | 0afe598d0f7ac4d14ec023a1235b95e42331a3db /compiler/rustc_mir_transform/src/const_prop.rs | |
| parent | f04b8fe0af291a444ecfcf774337966a5cc9d7db (diff) | |
| download | rust-842419712a9ed7be166bfdac2d5588356191dabb.tar.gz rust-842419712a9ed7be166bfdac2d5588356191dabb.zip | |
rename `needs_subst` to `has_param`
Diffstat (limited to 'compiler/rustc_mir_transform/src/const_prop.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/const_prop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/const_prop.rs b/compiler/rustc_mir_transform/src/const_prop.rs index 96bae26e39c..64f1dfac546 100644 --- a/compiler/rustc_mir_transform/src/const_prop.rs +++ b/compiler/rustc_mir_transform/src/const_prop.rs @@ -428,7 +428,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> { /// Returns the value, if any, of evaluating `c`. fn eval_constant(&mut self, c: &Constant<'tcx>) -> Option<OpTy<'tcx>> { // FIXME we need to revisit this for #67176 - if c.needs_subst() { + if c.has_param() { return None; } @@ -527,7 +527,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> { } // FIXME we need to revisit this for #67176 - if rvalue.needs_subst() { + if rvalue.has_param() { return None; } if !rvalue |
