@@ -41,6 +41,7 @@ macro_rules! forward {
4141 // Forward pattern for &self -> &Self
4242 ( pub fn $n: ident( & self , $( $name: ident: $ty: ty) ,* ) -> & Self ) => {
4343 pub fn $n( & self , $( $name: $ty) ,* ) -> & Self {
44+ #[ allow( deprecated) ]
4445 self . diagnostic. $n( $( $name) ,* ) ;
4546 self
4647 }
@@ -49,6 +50,7 @@ macro_rules! forward {
4950 // Forward pattern for &mut self -> &mut Self
5051 ( pub fn $n: ident( & mut self , $( $name: ident: $ty: ty) ,* ) -> & mut Self ) => {
5152 pub fn $n( & mut self , $( $name: $ty) ,* ) -> & mut Self {
53+ #[ allow( deprecated) ]
5254 self . diagnostic. $n( $( $name) ,* ) ;
5355 self
5456 }
@@ -58,6 +60,7 @@ macro_rules! forward {
5860 // type parameter. No obvious way to make this more generic.
5961 ( pub fn $n: ident<S : Into <MultiSpan >>( & mut self , $( $name: ident: $ty: ty) ,* ) -> & mut Self ) => {
6062 pub fn $n<S : Into <MultiSpan >>( & mut self , $( $name: $ty) ,* ) -> & mut Self {
63+ #[ allow( deprecated) ]
6164 self . diagnostic. $n( $( $name) ,* ) ;
6265 self
6366 }
@@ -167,21 +170,29 @@ impl<'a> DiagnosticBuilder<'a> {
167170 sp: S ,
168171 msg: & str )
169172 -> & mut Self ) ;
173+
174+ #[ deprecated( note = "Use `span_suggestion_short_with_applicability`" ) ]
170175 forward ! ( pub fn span_suggestion_short( & mut self ,
171176 sp: Span ,
172177 msg: & str ,
173178 suggestion: String )
174179 -> & mut Self ) ;
180+
181+ #[ deprecated( note = "Use `multipart_suggestion_with_applicability`" ) ]
175182 forward ! ( pub fn multipart_suggestion(
176183 & mut self ,
177184 msg: & str ,
178185 suggestion: Vec <( Span , String ) >
179186 ) -> & mut Self ) ;
187+
188+ #[ deprecated( note = "Use `span_suggestion_with_applicability`" ) ]
180189 forward ! ( pub fn span_suggestion( & mut self ,
181190 sp: Span ,
182191 msg: & str ,
183192 suggestion: String )
184193 -> & mut Self ) ;
194+
195+ #[ deprecated( note = "Use `span_suggestions_with_applicability`" ) ]
185196 forward ! ( pub fn span_suggestions( & mut self ,
186197 sp: Span ,
187198 msg: & str ,
0 commit comments