Skip to content
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

Trait methods are not moved by bundling #1068

Open
maximebuyse opened this issue Oct 29, 2024 · 0 comments · May be fixed by #1075
Open

Trait methods are not moved by bundling #1068

maximebuyse opened this issue Oct 29, 2024 · 0 comments · May be fixed by #1075
Labels
bug Something isn't working engine Issue in the engine

Comments

@maximebuyse
Copy link
Contributor

pub mod main {
    impl Tr for nested::St {
        fn f(self) {}
    }
    pub trait Tr {
        fn f(self);
    }
    
    pub mod nested {
        use super::Tr;
        pub struct St {}
        fn g(x: St) {
            x.f()
        }
    }
}

Open this code snippet in the playground

Here main and nested are bundled together but x.f() in g is translated to Main.f_f instead of just f_f because we don't do the renaming of trait methods.

@maximebuyse maximebuyse added bug Something isn't working engine Issue in the engine labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working engine Issue in the engine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant