Skip to content
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

Add option to customize expected rustc exit code for compile tests #296

Merged

Conversation

jschwe
Copy link
Contributor

@jschwe jschwe commented Dec 10, 2024

Since Rust 1.81 rustc now aborts when lints report errors, meaning the exit code is 101.
This is causing the compile tests of the custom crown linter in the servo project to fail (See discussion in servo/servo#34270).
Allowing the user to specify a custom exit code, allows custom linter authors to override the expected error code.

Fixes #295

@Manishearth Manishearth merged commit 4ec6a07 into Manishearth:master Dec 10, 2024
6 of 8 checks passed
@jschwe jschwe deleted the fix_custom_linter_compiletests branch December 10, 2024 18:01
@jschwe
Copy link
Contributor Author

jschwe commented Dec 10, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiletests start failing with Rust 1.81 when testing custom linters
2 participants