Skip to content

Commit b1526ca

Browse files
committed
Fixes after rebase
1 parent 81ae93e commit b1526ca

File tree

4 files changed

+3
-52
lines changed

4 files changed

+3
-52
lines changed

Diff for: src/librustc/infer/canonical.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -609,12 +609,6 @@ impl<'cx, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for Canonicalizer<'cx, 'gcx, 'tcx>
609609
bug!("encountered a canonical type during canonicalization")
610610
}
611611

612-
// Replace a `()` that "would've fallen back" to `!` with just `()`.
613-
ty::TyTuple(ref tys, true) => {
614-
assert!(tys.is_empty());
615-
self.tcx().mk_nil()
616-
}
617-
618612
ty::TyClosure(..)
619613
| ty::TyGenerator(..)
620614
| ty::TyGeneratorWitness(..)
@@ -634,7 +628,7 @@ impl<'cx, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for Canonicalizer<'cx, 'gcx, 'tcx>
634628
| ty::TyFnPtr(_)
635629
| ty::TyDynamic(..)
636630
| ty::TyNever
637-
| ty::TyTuple(_, false)
631+
| ty::TyTuple(..)
638632
| ty::TyProjection(..)
639633
| ty::TyForeign(..)
640634
| ty::TyParam(..)

Diff for: src/librustc/traits/query/dropck_outlives.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ fn trivial_dropck_outlives<'cx, 'tcx>(tcx: TyCtxt<'cx, '_, 'tcx>, ty: Ty<'tcx>)
236236

237237
// (T1..Tn) and closures have same properties as T1..Tn --
238238
// check if *any* of those are trivial.
239-
ty::TyTuple(ref tys, _) => tys.iter().cloned().all(|t| trivial_dropck_outlives(tcx, t)),
239+
ty::TyTuple(ref tys) => tys.iter().cloned().all(|t| trivial_dropck_outlives(tcx, t)),
240240
ty::TyClosure(def_id, ref substs) => substs
241241
.upvar_tys(def_id, tcx)
242242
.all(|t| trivial_dropck_outlives(tcx, t)),

Diff for: src/librustc_traits/dropck_outlives.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ fn dtorck_constraint_for_ty<'a, 'gcx, 'tcx>(
184184
dtorck_constraint_for_ty(tcx, span, for_ty, depth + 1, ety)
185185
}
186186

187-
ty::TyTuple(tys, _) => tys.iter()
187+
ty::TyTuple(tys) => tys.iter()
188188
.map(|ty| dtorck_constraint_for_ty(tcx, span, for_ty, depth + 1, ty))
189189
.collect(),
190190

Diff for: src/test/ui/feature-gate-never_type.stderr

-43
This file was deleted.

0 commit comments

Comments
 (0)