Remove box syntax from rustc_infer
This commit is contained in:
parent
489744f900
commit
15672dc695
5 changed files with 4 additions and 5 deletions
|
@ -105,7 +105,7 @@ impl TypeRelation<'tcx> for Equate<'combine, 'infcx, 'tcx> {
|
||||||
b: ty::Region<'tcx>,
|
b: ty::Region<'tcx>,
|
||||||
) -> RelateResult<'tcx, ty::Region<'tcx>> {
|
) -> RelateResult<'tcx, ty::Region<'tcx>> {
|
||||||
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
|
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
|
||||||
let origin = Subtype(box self.fields.trace.clone());
|
let origin = Subtype(Box::new(self.fields.trace.clone()));
|
||||||
self.fields
|
self.fields
|
||||||
.infcx
|
.infcx
|
||||||
.inner
|
.inner
|
||||||
|
|
|
@ -67,7 +67,7 @@ impl TypeRelation<'tcx> for Glb<'combine, 'infcx, 'tcx> {
|
||||||
) -> RelateResult<'tcx, ty::Region<'tcx>> {
|
) -> RelateResult<'tcx, ty::Region<'tcx>> {
|
||||||
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
|
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
|
||||||
|
|
||||||
let origin = Subtype(box self.fields.trace.clone());
|
let origin = Subtype(Box::new(self.fields.trace.clone()));
|
||||||
Ok(self.fields.infcx.inner.borrow_mut().unwrap_region_constraints().glb_regions(
|
Ok(self.fields.infcx.inner.borrow_mut().unwrap_region_constraints().glb_regions(
|
||||||
self.tcx(),
|
self.tcx(),
|
||||||
origin,
|
origin,
|
||||||
|
|
|
@ -67,7 +67,7 @@ impl TypeRelation<'tcx> for Lub<'combine, 'infcx, 'tcx> {
|
||||||
) -> RelateResult<'tcx, ty::Region<'tcx>> {
|
) -> RelateResult<'tcx, ty::Region<'tcx>> {
|
||||||
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
|
debug!("{}.regions({:?}, {:?})", self.tag(), a, b);
|
||||||
|
|
||||||
let origin = Subtype(box self.fields.trace.clone());
|
let origin = Subtype(Box::new(self.fields.trace.clone()));
|
||||||
Ok(self.fields.infcx.inner.borrow_mut().unwrap_region_constraints().lub_regions(
|
Ok(self.fields.infcx.inner.borrow_mut().unwrap_region_constraints().lub_regions(
|
||||||
self.tcx(),
|
self.tcx(),
|
||||||
origin,
|
origin,
|
||||||
|
|
|
@ -142,7 +142,7 @@ impl TypeRelation<'tcx> for Sub<'combine, 'infcx, 'tcx> {
|
||||||
// FIXME -- we have more fine-grained information available
|
// FIXME -- we have more fine-grained information available
|
||||||
// from the "cause" field, we could perhaps give more tailored
|
// from the "cause" field, we could perhaps give more tailored
|
||||||
// error messages.
|
// error messages.
|
||||||
let origin = SubregionOrigin::Subtype(box self.fields.trace.clone());
|
let origin = SubregionOrigin::Subtype(Box::new(self.fields.trace.clone()));
|
||||||
self.fields
|
self.fields
|
||||||
.infcx
|
.infcx
|
||||||
.inner
|
.inner
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![feature(bool_to_option)]
|
#![feature(bool_to_option)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(box_syntax)]
|
|
||||||
#![feature(extend_one)]
|
#![feature(extend_one)]
|
||||||
#![feature(iter_zip)]
|
#![feature(iter_zip)]
|
||||||
#![feature(never_type)]
|
#![feature(never_type)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue