We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried this code (which rustc compiles with no warnings)
struct Foo { my_int: u32, } trait Child { fn child(&self) -> u32; } impl Child for Foo { fn child(&self) -> u32 { return self.my_int; } } pub fn main() { let a = Foo{my_int: 0xfeedf00d}; let b: &dyn Child = &a; b.child(); // Here to silence bogus compiler warning //let _ = a.my_int; }
What I get with rustc: Compiles with no warnings What I get with gccrs:
liam@gentoo ~/gccrs-build $ gccrs bogus_warning2.rs bogus_warning2.rs:4:5: warning: field is never read: ‘my_int’ 4 | my_int: u32, | ^~~~~~
Discovered in: be1e78b
The text was updated successfully, but these errors were encountered:
This was discovered in testing for #914
Sorry, something went wrong.
No branches or pull requests
I tried this code (which rustc compiles with no warnings)
What I get with rustc:
Compiles with no warnings
What I get with gccrs:
Discovered in: be1e78b
The text was updated successfully, but these errors were encountered: