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

Fix 4086 - use stable command options for rustc #4087

Merged

Conversation

hsanson
Copy link
Contributor

@hsanson hsanson commented Feb 19, 2022

Fix #4086

@@ -5,7 +5,7 @@ After:
call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
AssertLinter 'rustc', 'rustc --error-format=json -Z no-codegen -'
AssertLinter 'rustc', 'rustc --error-format=json --emit=mir -o /dev/null -'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops! I missed these, sorry. Great that you caught them! Thanks!

Copy link
Contributor

@nospam2998 nospam2998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would not surprise me if this change makes the rustc linter suddenly work for a lot of users, and that they will thus end up with duplicate lints from rustc and cargo.

I could argue that excluding this linter by default would be a sane default, as essentially everyone will get duplicates and prefer their linting through cargo. That's a different change though, as merging this still improves the situation.

@hsanson
Copy link
Contributor Author

hsanson commented Feb 19, 2022

@nospam2998 actually rustc is disabled by default. From the docs:

  Only cargo and rls are enabled by default. To switch to using rustc instead
  of cargo, configure |g:ale_linters| appropriately: >

And checking ALE's code this is indeed the case.

@hsanson hsanson merged commit 5b1044e into dense-analysis:master Feb 19, 2022
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.

rustc linter should default to using stable interface
2 participants