Skip to content

regression 1.50: deny after forbid breaks build #80988

Closed
@rylev

Description

@rylev

The following code compiles on 1.49 but does not compile on 1.50 beta.

#![forbid(warnings)]
#![deny(bad_style)]

fn main() {}

This seems to be a similar (the same?) issue as #77713 though I'm not sure how it would have been introduced.

This breaks several crates in the latest crater run. Interestingly, some of the broken crates had some strange error messages:

   --> src/lib.rs:132:17
    |
25  |     warnings
    |     -------- `forbid` level set here
...
132 | #[derive(Debug, PartialEq, Eq, Hash, Clone)]
    |                 ^^^^^^^^^ overruled by previous forbid

@rustbot modify labels: +regression-from-stable-to-beta

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-langRelevant to the language team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.relnotesMarks issues that should be documented in the release notes of the next release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions