test(resolve): update_resolution for remove single import

This commit is contained in:
bohan 2023-06-20 22:54:12 +08:00
parent 629b50928c
commit 09d4a823d5
2 changed files with 33 additions and 0 deletions

View File

@ -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()
}

View File

@ -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() {}