You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Triage: I'm not quite sure what the example is meant to be demonstrating, but a re-export of a module defined elsewhere would be via pub use super::bar;, using mod will always add a file to the AST (mod foo currently searches for foo.rs and foo/mod.rs).
The following works:
pubmod bar {pubfnf(){}}mod foo {pubusesuper::bar;}fnmain(){
foo::bar::f();
bar::f();}
Closing, feel free to re-open if I'm misunderstanding some subtlety.
new lint: `missing-spin-loop`
This fixesrust-lang#7809. I went with the shorter name because the function is called `std::hint::spin_loop`. It doesn't yet detect `while let` loops. I left that for a follow-up PR.
---
changelog: new lint: [`missing_spin_loop`]
Test case:
Error:
The text was updated successfully, but these errors were encountered: