File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 1+ //@ proc-macro: same-res-ambigious-extern-macro.rs
2+
3+ macro_rules! globbing{
4+ ( ) => {
5+ pub use same_res_ambigious_extern_macro:: * ;
6+ }
7+ }
8+
9+ #[ allow( unused_imports) ]
10+ #[ macro_use]
11+ extern crate same_res_ambigious_extern_macro;
12+ globbing ! { }
13+
14+ pub trait RustEmbed { }
15+
16+ pub use RustEmbed as Embed ;
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ use proc_macro::TokenStream;
33
44#[ proc_macro_derive( RustEmbed ) ]
55pub fn rust_embed_derive ( _input : TokenStream ) -> TokenStream {
6- TokenStream :: new ( )
6+ TokenStream :: new ( )
77}
Original file line number Diff line number Diff line change 1- //@ check-pass
2- //@ aux-build: same-res-ambigious-extern.rs
1+ //@ revisions: nightly-fail nightly-pass
2+ //@[nightly-pass] check-pass
3+ //@[nightly-pass] aux-crate: ambigious_extern=same-res-ambigious-extern.rs
4+ //@[nightly-fail] aux-crate: ambigious_extern=same-res-ambigious-extern-fail.rs
5+ // see https://github.com/rust-lang/rust/pull/147196
36
4- extern crate same_res_ambigious_extern ;
5- use same_res_ambigious_extern :: Embed ;
7+ extern crate ambigious_extern ;
8+ use ambigious_extern :: Embed ;
69
710
8- #[ derive( Embed ) ]
11+ #[ derive( Embed ) ] //[nightly-fail]~ Error: cannot find derive macro `Embed` in this scope
912struct Foo { }
1013
1114fn main ( ) { }
You can’t perform that action at this time.
0 commit comments