-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Turn warnings into errors in std and extra #6963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Agreed. I'd even go so far as to say that all code in the rust repository should be warning-clean. We should set a good example :-) (or if there are warnings we want to ignore in rustc, it would probably be better to opt out of them explicitly). |
Agreed |
@brson what do you think about turning off warnings entirely for the stage0 build, so that we don't get annoyed by bugs in lint that are not yet fixed in the snapshot version of the compiler? (or at least add [or just document?] an easy way, perhaps a configure flag, to let one easily opt into ignoring all warnings in the stage0 build.) |
@pnkfelix That sounds good to me. @alexcrichton has a pull request open for this but I think we should do a little more. In Alex's formulation all the Two ways we could achieve this would be to: a) add command line flags for converting warnings to errors and ignoring warnings, so each stage just has one extra command line flag instead of all the lint flags, or b) making attributes themselves conditional. I prefer the former. |
@brson, what do you think about That role of it would be to deny all warnings, turning them into errors by default. There could then be some validation as well to say That way stage0 would have |
As an example, see this |
stage1+ only. The deluge of warnings is never ending. Fortunately, some excellent and fearless people do clean them up, but it feels like this would be more efficient to not commit the warnings in the first place.
Having too many warnings looks bad.
The text was updated successfully, but these errors were encountered: