about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/generator.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-10-04 17:50:03 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-04 17:55:15 +0000
commite63d19c4ddae8f7ce51e1953bfc4a61235f528f7 (patch)
tree69bfc5da20e1ec541c5316ab991af7b4fa922bbf /compiler/rustc_mir_transform/src/generator.rs
parent65519f5fc0bcd8a47e547226bbc7498a2b9a59fb (diff)
downloadrust-e63d19c4ddae8f7ce51e1953bfc4a61235f528f7.tar.gz
rust-e63d19c4ddae8f7ce51e1953bfc4a61235f528f7.zip
Remove mir::LocalDecl::internal.
Diffstat (limited to 'compiler/rustc_mir_transform/src/generator.rs')
-rw-r--r--compiler/rustc_mir_transform/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/generator.rs b/compiler/rustc_mir_transform/src/generator.rs
index 8a807d786a5..c16f07a453c 100644
--- a/compiler/rustc_mir_transform/src/generator.rs
+++ b/compiler/rustc_mir_transform/src/generator.rs
@@ -321,7 +321,7 @@ impl<'tcx> TransformVisitor<'tcx> {
 
     // Create a statement which reads the discriminant into a temporary
     fn get_discr(&self, body: &mut Body<'tcx>) -> (Statement<'tcx>, Place<'tcx>) {
-        let temp_decl = LocalDecl::new(self.discr_ty, body.span).internal();
+        let temp_decl = LocalDecl::new(self.discr_ty, body.span);
         let local_decls_len = body.local_decls.push(temp_decl);
         let temp = Place::from(local_decls_len);