about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/tests.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-18 10:43:27 +0000
committerbors <bors@rust-lang.org>2021-08-18 10:43:27 +0000
commitba8cda2fa2c99ed6646f4dfe73bf4edad7e42a2d (patch)
tree7adfa942c13a620d7ea6e0a9c0bb80e4eb5dd480 /compiler/rustc_mir/src/transform/coverage/tests.rs
parent896f058f13d6c8021f7637817953a44d3a78be32 (diff)
parent0f081832b43db75073db2d8faecc84cf0ea7e271 (diff)
downloadrust-ba8cda2fa2c99ed6646f4dfe73bf4edad7e42a2d.tar.gz
rust-ba8cda2fa2c99ed6646f4dfe73bf4edad7e42a2d.zip
Auto merge of #87781 - est31:remove_box, r=oli-obk
Remove box syntax from compiler and tools

Removes box syntax from the compiler and tools. In #49733, the future of box syntax is uncertain and the use in the compiler was listed as one of the reasons to keep it. Removal of box syntax [might affect the code generated](https://github.com/rust-lang/rust/pull/49646#issuecomment-379219615) and slow down the compiler so I'd recommend doing a perf run on this.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/tests.rs')
-rw-r--r--compiler/rustc_mir/src/transform/coverage/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir/src/transform/coverage/tests.rs b/compiler/rustc_mir/src/transform/coverage/tests.rs
index e5b3059a599..14dd0a8b924 100644
--- a/compiler/rustc_mir/src/transform/coverage/tests.rs
+++ b/compiler/rustc_mir/src/transform/coverage/tests.rs
@@ -44,11 +44,11 @@ const TEMP_BLOCK: BasicBlock = BasicBlock::MAX;
 
 fn dummy_ty() -> &'static TyS<'static> {
     thread_local! {
-        static DUMMY_TYS: &'static TyS<'static> = Box::leak(box TyS::make_for_test(
+        static DUMMY_TYS: &'static TyS<'static> = Box::leak(Box::new(TyS::make_for_test(
             ty::Bool,
             TypeFlags::empty(),
             DebruijnIndex::from_usize(0),
-        ));
+        )));
     }
 
     &DUMMY_TYS.with(|tys| *tys)