File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1179,7 +1179,7 @@ impl<'tcx> TyCtxt<'tcx> {
1179
1179
self . mk_const ( ty:: Const { val : ty:: ConstKind :: Error ( DelaySpanBugEmitted ( ( ) ) ) , ty } )
1180
1180
}
1181
1181
1182
- pub fn consider_optimizing < T : Fn ( ) -> String > ( & self , msg : T ) -> bool {
1182
+ pub fn consider_optimizing < T : Fn ( ) -> String > ( self , msg : T ) -> bool {
1183
1183
let cname = self . crate_name ( LOCAL_CRATE ) . as_str ( ) ;
1184
1184
self . sess . consider_optimizing ( & cname, msg)
1185
1185
}
Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ fn foo(&self) -> Self::T { String::new() }
851
851
/// Given a slice of `hir::GenericBound`s, if any of them corresponds to the `trait_ref`
852
852
/// requirement, provide a strucuted suggestion to constrain it to a given type `ty`.
853
853
fn constrain_generic_bound_associated_type_structured_suggestion (
854
- & self ,
854
+ self ,
855
855
db : & mut DiagnosticBuilder < ' _ > ,
856
856
trait_ref : & ty:: TraitRef < ' tcx > ,
857
857
bounds : hir:: GenericBounds < ' _ > ,
@@ -875,7 +875,7 @@ fn foo(&self) -> Self::T { String::new() }
875
875
/// Given a span corresponding to a bound, provide a structured suggestion to set an
876
876
/// associated type to a given type `ty`.
877
877
fn constrain_associated_type_structured_suggestion (
878
- & self ,
878
+ self ,
879
879
db : & mut DiagnosticBuilder < ' _ > ,
880
880
span : Span ,
881
881
assoc : & ty:: AssocItem ,
You can’t perform that action at this time.
0 commit comments