mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
Properly handle imports ending in ::self
This commit is contained in:
parent
a87558adf7
commit
ecf52e2d3b
2 changed files with 62 additions and 5 deletions
15
full-tests/reexports2.rs
Normal file
15
full-tests/reexports2.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
mod A {
|
||||
/// ~REQUIRE-DELETED S1
|
||||
pub struct S1;
|
||||
pub struct S2;
|
||||
}
|
||||
|
||||
mod B {
|
||||
use crate::A::{self, S1};
|
||||
pub use A::S2 as thingy;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
"~MINIMIZE-ROOT let x = B::thingy";
|
||||
let x = B::thingy;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue