Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 15672dc

Browse files
committed
Remove box syntax from rustc_infer
1 parent 489744f commit 15672dc

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

compiler/rustc_infer/src/infer/equate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl TypeRelation<'tcx> for Equate<'combine, 'infcx, 'tcx> {
105105
b: ty::Region<'tcx>,
106106
) -> RelateResult<'tcx, ty::Region<'tcx>> {
107107
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
108-
let origin = Subtype(box self.fields.trace.clone());
108+
let origin = Subtype(Box::new(self.fields.trace.clone()));
109109
self.fields
110110
.infcx
111111
.inner

compiler/rustc_infer/src/infer/glb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl TypeRelation<'tcx> for Glb<'combine, 'infcx, 'tcx> {
6767
) -> RelateResult<'tcx, ty::Region<'tcx>> {
6868
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
6969

70-
let origin = Subtype(box self.fields.trace.clone());
70+
let origin = Subtype(Box::new(self.fields.trace.clone()));
7171
Ok(self.fields.infcx.inner.borrow_mut().unwrap_region_constraints().glb_regions(
7272
self.tcx(),
7373
origin,

compiler/rustc_infer/src/infer/lub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl TypeRelation<'tcx> for Lub<'combine, 'infcx, 'tcx> {
6767
) -> RelateResult<'tcx, ty::Region<'tcx>> {
6868
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
6969

70-
let origin = Subtype(box self.fields.trace.clone());
70+
let origin = Subtype(Box::new(self.fields.trace.clone()));
7171
Ok(self.fields.infcx.inner.borrow_mut().unwrap_region_constraints().lub_regions(
7272
self.tcx(),
7373
origin,

compiler/rustc_infer/src/infer/sub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl TypeRelation<'tcx> for Sub<'combine, 'infcx, 'tcx> {
142142
// FIXME -- we have more fine-grained information available
143143
// from the "cause" field, we could perhaps give more tailored
144144
// error messages.
145-
let origin = SubregionOrigin::Subtype(box self.fields.trace.clone());
145+
let origin = SubregionOrigin::Subtype(Box::new(self.fields.trace.clone()));
146146
self.fields
147147
.infcx
148148
.inner

compiler/rustc_infer/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1616
#![feature(bool_to_option)]
1717
#![feature(box_patterns)]
18-
#![feature(box_syntax)]
1918
#![feature(extend_one)]
2019
#![feature(iter_zip)]
2120
#![feature(never_type)]

0 commit comments

Comments
 (0)