@@ -39,7 +39,7 @@ use rustc_middle::middle::cstore::{self, LinkagePreference};
39
39
use rustc_middle:: middle:: lang_items;
40
40
use rustc_middle:: mir:: mono:: { CodegenUnit , CodegenUnitNameBuilder , MonoItem } ;
41
41
use rustc_middle:: traits:: Vtable ;
42
- use rustc_middle:: ty:: layout:: { self , HasTyCtxt , TyAndLayout } ;
42
+ use rustc_middle:: ty:: layout:: { HasTyCtxt , TyAndLayout } ;
43
43
use rustc_middle:: ty:: query:: Providers ;
44
44
use rustc_middle:: ty:: { self , Instance , Ty , TyCtxt } ;
45
45
use rustc_session:: cgu_reuse_tracker:: CguReuse ;
@@ -167,7 +167,7 @@ pub fn unsized_info<'tcx, 'a, Bx: BuilderMethods<'a, 'tcx>>(
167
167
// Find the offset of the supertrait's vtable within the subtrait (parent) vtable.
168
168
let trait_ref = target_trait_ref. with_self_ty ( tcx, source) ;
169
169
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" ) ) ;
171
171
let offset = match vtable {
172
172
Vtable :: VtableObject ( ref data) => data. vtable_base ,
173
173
// HACK(alexreg): slightly dubious solution to ICE in
@@ -434,7 +434,7 @@ pub fn from_immediate<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
434
434
pub fn to_immediate < ' a , ' tcx , Bx : BuilderMethods < ' a , ' tcx > > (
435
435
bx : & mut Bx ,
436
436
val : Bx :: Value ,
437
- layout : layout :: TyAndLayout < ' _ > ,
437
+ layout : TyAndLayout < ' _ > ,
438
438
) -> Bx :: Value {
439
439
if let Abi :: Scalar ( ref scalar) = layout. abi {
440
440
return to_immediate_scalar ( bx, val, scalar) ;
0 commit comments