Skip to content

Commit 0f00381

Browse files
committed
Delete no_bind_by_move_pattern_guard config for rustc older than 1.39
1 parent 1148346 commit 0f00381

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
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 < 39 {
62-
println!("cargo:rustc-cfg=no_bind_by_move_pattern_guard");
63-
}
64-
6561
if version.minor < 44 {
6662
println!("cargo:rustc-cfg=no_lexerror_display");
6763
}

src/fallback.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ impl TokenStream {
7070
fn push_token_from_proc_macro(mut vec: RcVecMut<TokenTree>, token: TokenTree) {
7171
// https://github.com/dtolnay/proc-macro2/issues/235
7272
match token {
73-
#[cfg(not(no_bind_by_move_pattern_guard))]
7473
TokenTree::Literal(crate::Literal {
7574
#[cfg(wrap_proc_macro)]
7675
inner: crate::imp::Literal::Fallback(literal),
@@ -80,20 +79,6 @@ fn push_token_from_proc_macro(mut vec: RcVecMut<TokenTree>, token: TokenTree) {
8079
}) if literal.repr.starts_with('-') => {
8180
push_negative_literal(vec, literal);
8281
}
83-
#[cfg(no_bind_by_move_pattern_guard)]
84-
TokenTree::Literal(crate::Literal {
85-
#[cfg(wrap_proc_macro)]
86-
inner: crate::imp::Literal::Fallback(literal),
87-
#[cfg(not(wrap_proc_macro))]
88-
inner: literal,
89-
..
90-
}) => {
91-
if literal.repr.starts_with('-') {
92-
push_negative_literal(vec, literal);
93-
} else {
94-
vec.push(TokenTree::Literal(crate::Literal::_new_fallback(literal)));
95-
}
96-
}
9782
_ => vec.push(token),
9883
}
9984

0 commit comments

Comments
 (0)