Closed Aatch closed 2 years ago
This looks like it would fix #35870, too
EDIT: Not inherently, at least
Triage: no idea what the situation is with this bug, honestly.
cc @michaelwoerister @Zoxc @oli-obk
cc @wesleywiser
cc @cjgillot Do you think https://github.com/rust-lang/rust/pull/91743 could make whatever this issue is about visible on stable? Or do you think this issue has been fixed since?
I have no idea what this bug is about.
the monomorphization collector works completely on MIR nowadays. I think we fixed all these issues since they were occurring with return-position-impl-trait already.
Currently, the set of reachable symbols is determined by the privacy, and whether or a function that references the symbol could be inlined cross-crate. With MIR inlining (see #36593), symbols that were previously considered unreachable from outside the crate may become reachable if an item that isn't inlined cross-crate is inlined into another function that is inlined cross-crate.