@@ -12,7 +12,7 @@ use std::fmt;
1212impl Ty {
1313 /// Returns a value that displays this.
1414 #[ must_use]
15- pub fn display ( self , st : & St , lines : config:: DiagnosticLines ) -> impl fmt:: Display + ' _ {
15+ pub fn display ( self , st : & St , lines : config:: DiagnosticLines ) -> impl fmt:: Display {
1616 TyDisplay {
1717 cx : TyDisplayCx { bound_vars : None , st } ,
1818 ty : self ,
@@ -25,11 +25,7 @@ impl Ty {
2525impl TyScheme {
2626 /// Returns a value that displays this.
2727 #[ must_use]
28- pub fn display < ' a > (
29- & ' a self ,
30- st : & ' a St ,
31- lines : config:: DiagnosticLines ,
32- ) -> impl fmt:: Display + ' a {
28+ pub fn display < ' a > ( & ' a self , st : & ' a St , lines : config:: DiagnosticLines ) -> impl fmt:: Display {
3329 TyDisplay {
3430 cx : TyDisplayCx { bound_vars : Some ( & self . bound_vars ) , st } ,
3531 ty : self . ty ,
@@ -273,7 +269,7 @@ impl fmt::Display for RowDisplay<'_> {
273269}
274270
275271impl Sym {
276- pub ( crate ) fn display ( self , syms : & Syms ) -> impl fmt:: Display + ' _ {
272+ pub ( crate ) fn display ( self , syms : & Syms ) -> impl fmt:: Display {
277273 SymDisplay { sym : self , syms }
278274 }
279275}
@@ -318,7 +314,7 @@ pub fn record_meta_var<'a>(
318314 st : & ' a St ,
319315 rows : & ' a RecordData ,
320316 lines : config:: DiagnosticLines ,
321- ) -> impl fmt:: Display + ' a {
317+ ) -> impl fmt:: Display {
322318 RecordMetaVarDisplay {
323319 cx : TyDisplayCx { bound_vars : None , st } ,
324320 rows,
@@ -366,7 +362,7 @@ impl fmt::Display for RecordMetaVarDisplay<'_> {
366362impl Incompatible {
367363 /// Returns a value that displays this.
368364 #[ must_use]
369- pub fn display < ' a > ( & ' a self , st : & ' a St ) -> impl fmt:: Display + ' a {
365+ pub fn display < ' a > ( & ' a self , st : & ' a St ) -> impl fmt:: Display {
370366 IncompatibleDisplay { flavor : self , st }
371367 }
372368}
0 commit comments