mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
Touch up controller logic to handle nested items well.
The test in the previous commit now passes
This commit is contained in:
parent
5ebb428295
commit
2f9a0d45a1
3 changed files with 77 additions and 27 deletions
24
full-tests/nested-items2.rs
Normal file
24
full-tests/nested-items2.rs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// this should all get deleted in a single swoop *and* not panic about it
|
||||
/// ~REQUIRE-DELETED l1
|
||||
mod l1 {
|
||||
mod l2 {
|
||||
mod l3 {
|
||||
mod l4{
|
||||
mod l5 {
|
||||
fn foo(){}
|
||||
fn bar(){}
|
||||
mod l6 {
|
||||
fn x1(){}
|
||||
}
|
||||
fn x2(){}
|
||||
}
|
||||
}
|
||||
mod l4_2 {
|
||||
fn y(){}
|
||||
}
|
||||
}
|
||||
}
|
||||
fn x8(){}
|
||||
}
|
||||
/// ~MINIMIZE-ROOT main
|
||||
fn main(){}
|
||||
Loading…
Add table
Add a link
Reference in a new issue