#![no_start]
attribute emits false root module warning
#43144
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:
Similarly to #43142, the warning that a crate-level attribute should be in the root module is false here: This attribute is in the root module.
(I suspect that
#[no_start]
, like#[crate_id="..."]
, is simply totally unused at this point, and our infrastructure for warning about crate-level attributes in the wrong place in the AST is somehow mistakenly coupled to theunused_attribute
analysis.)The text was updated successfully, but these errors were encountered: