-
Notifications
You must be signed in to change notification settings - Fork 13.4k
use
can't resolve non-pub parent module through super
#5248
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This is because without |
is it? there's only one 'use' in any case, I thought the chained-import restriction only applied there |
@graydon I'm not sure what I was thinking with that comment. |
linking to #6143 for unified tracking of resolve |
This seems to be fixed. Checking in a test case. |
Oh, never mind, I misunderstood the bug. With the unmodified code, I still get:
|
Nominating for milestone 5, production-ready |
Moved to milestone 5 |
Add lint on large non scalar const This PR adds the new lint `non_scalar_const` that aims to warn against `const` declaration of large arrays. For performance, because of inlining, large arrays should be preferably declared as `static`. Note: i made this one to warn on all const arrays, whether they are in a body function or not. I don't know if this is really necessary, i could just reduce this lint to variables out of function scope. Fixes: rust-lang#400 changelog: add new lint for large non-scalar types declared as const
Rollup of 5 pull requests Successful merges: - rust-lang#5226 (Add lint for explicit deref and deref_mut method calls) - rust-lang#5248 (Add lint on large non scalar const) - rust-lang#5430 (Disallow bit-shifting in integer_arithmetic) - rust-lang#5466 (large_enum_variant: Report sizes of variants) - rust-lang#5468 (Zero single char names) Failed merges: r? @ghost changelog: rollup
This use statement doesn't resolve:
This one does:
The text was updated successfully, but these errors were encountered: