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() {
5858 println ! ( "cargo:rustc-cfg=span_locations" ) ;
5959 }
6060
61- if version. minor < 44 {
62- println ! ( "cargo:rustc-cfg=no_lexerror_display" ) ;
63- }
64-
6561 if version. minor < 45 {
6662 println ! ( "cargo:rustc-cfg=no_hygiene" ) ;
6763 }
Original file line number Diff line number Diff line change @@ -285,15 +285,7 @@ impl Debug for LexError {
285285impl Display for LexError {
286286 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
287287 match self {
288- #[ cfg( not( no_lexerror_display) ) ]
289288 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- ) ,
297289 LexError :: Fallback ( e) => Display :: fmt ( e, f) ,
298290 }
299291 }
You can’t perform that action at this time.
0 commit comments