Skip to content

Commit 0155e75

Browse files
author
Alexander Regueiro
committed
Fixed rebase fallout.
1 parent 5aecb4a commit 0155e75

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/librustc_codegen_ssa/base.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use rustc_middle::middle::cstore::{self, LinkagePreference};
3939
use rustc_middle::middle::lang_items;
4040
use rustc_middle::mir::mono::{CodegenUnit, CodegenUnitNameBuilder, MonoItem};
4141
use rustc_middle::traits::Vtable;
42-
use rustc_middle::ty::layout::{self, HasTyCtxt, TyAndLayout};
42+
use rustc_middle::ty::layout::{HasTyCtxt, TyAndLayout};
4343
use rustc_middle::ty::query::Providers;
4444
use rustc_middle::ty::{self, Instance, Ty, TyCtxt};
4545
use rustc_session::cgu_reuse_tracker::CguReuse;
@@ -167,7 +167,7 @@ pub fn unsized_info<'tcx, 'a, Bx: BuilderMethods<'a, 'tcx>>(
167167
// Find the offset of the supertrait's vtable within the subtrait (parent) vtable.
168168
let trait_ref = target_trait_ref.with_self_ty(tcx, source);
169169
let vtable = tcx.codegen_fulfill_obligation((ty::ParamEnv::reveal_all(), trait_ref))
170-
.unwrap_or_else(|| bug!("unsized_info: no vtable found"));
170+
.unwrap_or_else(|| bug!("unsized_info: vtable not found"));
171171
let offset = match vtable {
172172
Vtable::VtableObject(ref data) => data.vtable_base,
173173
// HACK(alexreg): slightly dubious solution to ICE in
@@ -434,7 +434,7 @@ pub fn from_immediate<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
434434
pub fn to_immediate<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
435435
bx: &mut Bx,
436436
val: Bx::Value,
437-
layout: layout::TyAndLayout<'_>,
437+
layout: TyAndLayout<'_>,
438438
) -> Bx::Value {
439439
if let Abi::Scalar(ref scalar) = layout.abi {
440440
return to_immediate_scalar(bx, val, scalar);

src/librustc_middle/ty/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ pub trait ToPredicate<'tcx> {
14321432

14331433
impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<TraitRef<'tcx>> {
14341434
fn to_predicate(&self) -> Predicate<'tcx> {
1435-
ty::Predicate::Trait(
1435+
Predicate::Trait(
14361436
ty::Binder::dummy(ty::TraitPredicate { trait_ref: self.value }),
14371437
self.constness,
14381438
)
@@ -1441,7 +1441,7 @@ impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<TraitRef<'tcx>> {
14411441

14421442
impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<&TraitRef<'tcx>> {
14431443
fn to_predicate(&self) -> Predicate<'tcx> {
1444-
ty::Predicate::Trait(
1444+
Predicate::Trait(
14451445
ty::Binder::dummy(ty::TraitPredicate { trait_ref: *self.value }),
14461446
self.constness,
14471447
)
@@ -1450,13 +1450,13 @@ impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<&TraitRef<'tcx>> {
14501450

14511451
impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<PolyTraitRef<'tcx>> {
14521452
fn to_predicate(&self) -> Predicate<'tcx> {
1453-
ty::Predicate::Trait(self.value.to_poly_trait_predicate(), self.constness)
1453+
Predicate::Trait(self.value.to_poly_trait_predicate(), self.constness)
14541454
}
14551455
}
14561456

14571457
impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<&PolyTraitRef<'tcx>> {
14581458
fn to_predicate(&self) -> Predicate<'tcx> {
1459-
ty::Predicate::Trait(self.value.to_poly_trait_predicate(), self.constness)
1459+
Predicate::Trait(self.value.to_poly_trait_predicate(), self.constness)
14601460
}
14611461
}
14621462

0 commit comments

Comments
 (0)