Open epage opened 2 years ago
My guess is that cargo-breaking is not taking into account items defined in private modules that are re-exported in public modules.
Correct! This is something i completely forgot when writing the algorithm which is currently on main
. IIRC i did the same on the rustc-backend
. Additionally, the main
branch does not handle pub use
items. This is something that IMO deserves to be addressed at least on the rustc-backend
branch.
This may not be the only source of missing diagnostic though.
(honestly i'm impressed we produced some diagnostics for real-world code)
No idea if this will be addressed by the rustc-backend branch but I thought I'd still report this.
Note that to reproduce this with
cargo-breaking
's main branch, you need to patch clapv2-master
because apparently rust allows traits functions to not name variables butsyn
requires it? (span-locations
proc-macro2 feature flag and reporting line/column is a big debugging help)Output:
SubCommand
is not newMy guess is that
cargo-breaking
is not taking into account items defined in private modules that are re-exported in public modules.