#[main] attribute was unintentionally stabilized (as no-op) in 1.53.0 #93786
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I tried this code:
I expected an error, because the main attribute has never been available on stable, and had apparently been removed in #84217.
Instead, the program ran without error, although the attribute has no apparent effect.
Version it worked on
It most recently worked as expected (emitting an error) on Rust 1.52.1:
Version with regression
This stopped being an error in 1.53.0 (in which a warning was still emitted), and continues to be accepted in stable through the current 1.58.1 version (in which the warning has also disappeared).
The text was updated successfully, but these errors were encountered: