Skip to content

Commit 448d6ad

Browse files
committed
Test derive expansion ordering.
1 parent 60a4b69 commit 448d6ad

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/test/run-pass-fulldeps/macro-crate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#[macro_use] #[no_link]
1818
extern crate macro_crate_test;
1919

20-
#[into_multi_foo]
2120
#[derive(PartialEq, Clone, Debug)]
21+
#[into_multi_foo]
2222
fn foo() -> AnotherFakeTypeThatHadBetterGoAway {}
2323

2424
// Check that the `#[into_multi_foo]`-generated `foo2` is configured away

src/test/run-pass-fulldeps/proc-macro/auxiliary/derive-atob.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ use proc_macro::TokenStream;
2121
#[proc_macro_derive(AToB)]
2222
pub fn derive(input: TokenStream) -> TokenStream {
2323
let input = input.to_string();
24-
assert_eq!(input, "struct A;\n");
24+
assert_eq!(input, "#[derive(Copy, Clone)]\nstruct A;\n");
2525
"struct B;".parse().unwrap()
2626
}

src/test/run-pass-fulldeps/proc-macro/load-two.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ extern crate derive_atob;
1818
#[macro_use]
1919
extern crate derive_ctod;
2020

21+
#[derive(Copy, Clone)]
2122
#[derive(AToB)]
2223
struct A;
2324

0 commit comments

Comments
 (0)