#![crate_id="x"]
attribute emits false (and useless) root module warning
#43142
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
(Spawned off of issue #43106)
Compiling this code (in stable/beta/nightly) results in the following compiler warnings:
warnings:
The first warning is legitimate, since we killed off
#![crate_id]
back in RFC 109. The fact that it exists as an attribute in the code base is probably for backwards compatibility.run-pass
test suite is less explicable, since it should have no effect in the currentrustc
...)The second warning is quite confusing, since the attribute is in the root module.
Can we easily kill off the second warning in this case?
The text was updated successfully, but these errors were encountered: