about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-17 12:39:07 +0100
committerGitHub <noreply@github.com>2023-02-17 12:39:07 +0100
commitae5473c9699eaf1998c414e0a8884383bb9ddcc3 (patch)
tree818357e6dda6fb34df21d07e06fb1b165edbcb6b /compiler/rustc_const_eval
parent392b150011037960d609b694ee87f3d38ad641af (diff)
parentc946494c34d7b3d95591893541038b1fb736653d (diff)
downloadrust-ae5473c9699eaf1998c414e0a8884383bb9ddcc3.tar.gz
rust-ae5473c9699eaf1998c414e0a8884383bb9ddcc3.zip
Rollup merge of #108154 - scottmcm:start-block-cleanup, r=compiler-errors
`BasicBlock::new(0)` -> `START_BLOCK` [no functional changes]
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/transform/promote_consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/promote_consts.rs b/compiler/rustc_const_eval/src/transform/promote_consts.rs
index 7009d3b38ae..19367d708ee 100644
--- a/compiler/rustc_const_eval/src/transform/promote_consts.rs
+++ b/compiler/rustc_const_eval/src/transform/promote_consts.rs
@@ -898,7 +898,7 @@ impl<'a, 'tcx> Promoter<'a, 'tcx> {
         assert_eq!(self.new_block(), START_BLOCK);
         self.visit_rvalue(
             &mut rvalue,
-            Location { block: BasicBlock::new(0), statement_index: usize::MAX },
+            Location { block: START_BLOCK, statement_index: usize::MAX },
         );
 
         let span = self.promoted.span;