forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(resolve): update_resolution for remove single import
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// force-host | ||
// no-prefer-dynamic | ||
|
||
#![crate_type = "proc-macro"] | ||
|
||
extern crate proc_macro; | ||
|
||
struct Zeroable; | ||
|
||
#[proc_macro_derive(Zeroable)] | ||
pub fn derive_zeroable(_: proc_macro::TokenStream) -> proc_macro::TokenStream { | ||
proc_macro::TokenStream::default() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// check-pass | ||
// aux-build:issue-112831-aux.rs | ||
|
||
mod zeroable { | ||
pub trait Zeroable {} | ||
} | ||
|
||
use zeroable::*; | ||
|
||
mod pod { | ||
use super::*; | ||
pub trait Pod: Zeroable {} | ||
} | ||
|
||
use pod::*; | ||
|
||
extern crate issue_112831_aux; | ||
use issue_112831_aux::Zeroable; | ||
|
||
fn main() {} |