Closed
Description
If I have a whole tree of *.rs
files and one of them is not included in the compilation, that is probably an error on my part. I propose a new lint to this effect.
When compiling without cfg(test)
, I suggest that files named test.rs
or tests.rs
and the contents of directories named test
or tests
be ignored.
To suppress this lint for individual files, we would add an attribute such as #[allow_unloaded_file = "foo.rs"]
. That could go on a module in the appropriate place in the filesystem or on the crate itself.
This occurred to me when I found src/librustc/middle/typeck/infer/test.rs
with a few syntax errors (#12564).