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
{{ message }}
Repository navigation
actual "crate root" file not identified in diagnostics #157001
// inside some file that is inside a crate's tests#![feature(something)]
Current output
warning: the `#![feature]` attribute can only be used at the crate root
Desired output
warning: the `#![feature]` attribute can only be used at the crate root
...
help: add `#![feature(something)]` to path/to/crate/root/lib.rs
Rationale and extra context
Normally the crate root file is fairly obvious but there are cases, like with integration tests, where it is not. Even for more experienced programmers, "crate root" can be a slightly puzzling turn of phrase.
Activity
Rollup merge of rust-lang#157025 - Dnreikronos:fix/crate-root-path-he…
Unrolled build for #157025