File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,6 @@ fn main() {
58
58
println ! ( "cargo:rustc-cfg=span_locations" ) ;
59
59
}
60
60
61
- if version. minor < 44 {
62
- println ! ( "cargo:rustc-cfg=no_lexerror_display" ) ;
63
- }
64
-
65
61
if version. minor < 45 {
66
62
println ! ( "cargo:rustc-cfg=no_hygiene" ) ;
67
63
}
Original file line number Diff line number Diff line change @@ -285,15 +285,7 @@ impl Debug for LexError {
285
285
impl Display for LexError {
286
286
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
287
287
match self {
288
- #[ cfg( not( no_lexerror_display) ) ]
289
288
LexError :: Compiler ( e) => Display :: fmt ( e, f) ,
290
- #[ cfg( no_lexerror_display) ]
291
- LexError :: Compiler ( _e) => Display :: fmt (
292
- & fallback:: LexError {
293
- span : fallback:: Span :: call_site ( ) ,
294
- } ,
295
- f,
296
- ) ,
297
289
LexError :: Fallback ( e) => Display :: fmt ( e, f) ,
298
290
}
299
291
}
You can’t perform that action at this time.
0 commit comments