@@ -2725,7 +2725,7 @@ impl<'a> LoweringContext<'a> {
27252725
27262726 // ::std::future::Future<future_params>
27272727 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 ) ) ;
27292729
27302730 hir:: GenericBound :: Trait (
27312731 hir:: PolyTraitRef {
@@ -3094,7 +3094,7 @@ impl<'a> LoweringContext<'a> {
30943094
30953095 fn lower_trait_ref ( & mut self , p : & TraitRef , itctx : ImplTraitContext < ' _ > ) -> hir:: TraitRef {
30963096 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,
30983098 qpath => bug ! ( "lower_trait_ref: unexpected QPath `{:?}`" , qpath) ,
30993099 } ;
31003100 hir:: TraitRef {
@@ -5577,7 +5577,7 @@ impl<'a> LoweringContext<'a> {
55775577 let principal = hir:: PolyTraitRef {
55785578 bound_generic_params : hir:: HirVec :: new ( ) ,
55795579 trait_ref : hir:: TraitRef {
5580- path : path . and_then ( |path| path ) ,
5580+ path,
55815581 hir_ref_id : hir_id,
55825582 } ,
55835583 span,
0 commit comments