@@ -2725,7 +2725,7 @@ impl<'a> LoweringContext<'a> {
2725
2725
2726
2726
// ::std::future::Future<future_params>
2727
2727
let future_path =
2728
- self . std_path ( span, & [ sym:: future, sym:: Future ] , Some ( future_params) , false ) ;
2728
+ P ( self . std_path ( span, & [ sym:: future, sym:: Future ] , Some ( future_params) , false ) ) ;
2729
2729
2730
2730
hir:: GenericBound :: Trait (
2731
2731
hir:: PolyTraitRef {
@@ -3094,7 +3094,7 @@ impl<'a> LoweringContext<'a> {
3094
3094
3095
3095
fn lower_trait_ref ( & mut self , p : & TraitRef , itctx : ImplTraitContext < ' _ > ) -> hir:: TraitRef {
3096
3096
let path = match self . lower_qpath ( p. ref_id , & None , & p. path , ParamMode :: Explicit , itctx) {
3097
- hir:: QPath :: Resolved ( None , path) => path. and_then ( |path| path ) ,
3097
+ hir:: QPath :: Resolved ( None , path) => path,
3098
3098
qpath => bug ! ( "lower_trait_ref: unexpected QPath `{:?}`" , qpath) ,
3099
3099
} ;
3100
3100
hir:: TraitRef {
@@ -5577,7 +5577,7 @@ impl<'a> LoweringContext<'a> {
5577
5577
let principal = hir:: PolyTraitRef {
5578
5578
bound_generic_params : hir:: HirVec :: new ( ) ,
5579
5579
trait_ref : hir:: TraitRef {
5580
- path : path . and_then ( |path| path ) ,
5580
+ path,
5581
5581
hir_ref_id : hir_id,
5582
5582
} ,
5583
5583
span,
0 commit comments