-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cyclic dependency introduced by bundling with let open
#1070
Comments
Can this be related to #1068? |
I need to investigate more. This one is about |
I found a way to minimize even more: pub mod a {
#[derive(Debug)]
pub struct S {}
fn f(_x:super::b::Sb) {}
}
pub mod b {
pub struct Sb(super::a::S);
impl std::fmt::Debug for Sb {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self.0)
}
}
} Open this code snippet in the playground The problem seems to come from the |
So the problem is that we filter out automatically generated items in |
After discussing this, we should:
|
Related issue: #108 |
I am testing my implementation of this. One problem in the case of |
Apart from that the current implementation works but with the For some traits like |
After discussing this, the solution we should implement is: allow |
The best solution to solve this right now is to filter out things only with It would also help to rename everything that is directly under the namespace of bundled modules. |
Open this code snippet in the playground
In the situation above, the recursive bundle contains a
let open
for one of the original modules creating a cycle.The text was updated successfully, but these errors were encountered: