@@ -539,15 +539,22 @@ impl<'a, 'gcx> CheckTypeWellFormedVisitor<'a, 'gcx> {
539
539
ExplicitSelf :: ByBox => ( ) ,
540
540
541
541
ExplicitSelf :: ByRawPointer ( _) => {
542
- feature_gate:: feature_err ( & fcx. tcx . sess . parse_sess , "arbitrary_self_types" , span,
543
- GateIssue :: Language , "raw pointer `self` is unstable" )
542
+ feature_gate:: feature_err (
543
+ & fcx. tcx . sess . parse_sess ,
544
+ "arbitrary_self_types" ,
545
+ span,
546
+ GateIssue :: Language ,
547
+ "raw pointer `self` is unstable" )
544
548
. help ( "consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`" )
545
549
. emit ( ) ;
546
550
}
547
551
548
552
ExplicitSelf :: Other => {
549
- feature_gate:: feature_err ( & fcx. tcx . sess . parse_sess , "arbitrary_self_types" , span,
550
- GateIssue :: Language , "arbitrary `self` types are unstable" )
553
+ feature_gate:: feature_err (
554
+ & fcx. tcx . sess . parse_sess ,
555
+ "arbitrary_self_types" ,
556
+ span,
557
+ GateIssue :: Language , "arbitrary `self` types are unstable" )
551
558
. help ( "consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`" )
552
559
. emit ( ) ;
553
560
}
0 commit comments