Skip to content

Commit 467a0b4

Browse files
committed
Delete no_lexerror_display config for rustc older than 1.44
1 parent 0f00381 commit 467a0b4

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

build.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

src/wrapper.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,7 @@ impl Debug for LexError {
285285
impl 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
}

0 commit comments

Comments
 (0)