Skip to content

Commit

Permalink
remove special treatment for old nightlies
Browse files Browse the repository at this point in the history
  • Loading branch information
hkratz committed Sep 27, 2024
1 parent 231191d commit 605fe21
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extern crate proc_macro;

#[rustversion::any(before(1.43.0), all(nightly, before(2020-02-27)))]
#[rustversion::any(before(1.43.0))]
#[proc_macro_attribute]
pub fn expect(
_attr: proc_macro::TokenStream,
Expand All @@ -10,9 +10,7 @@ pub fn expect(
item
}

#[rustversion::all(
any(since(1.43.0), all(nightly, since(2020-02-27))),
any(before(1.81), all(nightly, before(2024-06-27))))]
#[rustversion::all(since(1.43.0), before(1.81))]
#[proc_macro_attribute]
pub fn expect(
attr: proc_macro::TokenStream,
Expand All @@ -21,7 +19,7 @@ pub fn expect(
replace_attr_name_with(attr, item, "allow")
}

#[rustversion::any(since(1.81), all(nightly, since(2024-06-27)))]
#[rustversion::since(1.81)]
#[proc_macro_attribute]
pub fn expect(
attr: proc_macro::TokenStream,
Expand All @@ -30,7 +28,7 @@ pub fn expect(
replace_attr_name_with(attr, item, "expect")
}

#[rustversion::any(since(1.43.0), all(nightly, since(2020-02-27)))]
#[rustversion::since(1.43.0)]
fn replace_attr_name_with(
attr: proc_macro::TokenStream,
item: proc_macro::TokenStream,
Expand Down

0 comments on commit 605fe21

Please sign in to comment.