Skip to content

Stop linting assert!(x == y) #2092

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

Closed
wants to merge 1 commit into from
Closed

Stop linting assert!(x == y) #2092

wants to merge 1 commit into from

Conversation

thelearnerofcode
Copy link

@thelearnerofcode thelearnerofcode commented Sep 28, 2017

fixes #2090

@clarfonthey
Copy link

clarfonthey commented Sep 28, 2017

I think that instead of removing the lint entirely, it should just be switched to allow by default. Additionally, the inverse of the lint should probably be added, linting changing assert_eq! to assert!

@oli-obk
Copy link
Contributor

oli-obk commented Sep 29, 2017

Why should we keep this lint? Can you elaborate on that?

We should not add the inverse lint until the RFC is implemented.

@Manishearth Manishearth changed the title Fixed #2090 Stop linting assert!(x == y) Sep 29, 2017
@Manishearth
Copy link
Member

I think that instead of removing the lint entirely, it should just be switched to allow by default.

We already have a mechanism for deprecating lints; we can just use that. This makes the lint do nothing and warn on being used, but won't suddenly break code that has #[allow(name_of_lint)] because the lint is suddenly unknown.

On that note, this PR does not do that, it should.

@oli-obk
Copy link
Contributor

oli-obk commented Oct 10, 2017

@thelearnerofcode friendly ping

You need to

  1. rebase
  2. add the removed lint to the list of deprecated lints

@oli-obk
Copy link
Contributor

oli-obk commented Oct 20, 2017

Has been fixed in another PR.

@oli-obk oli-obk closed this Oct 20, 2017
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.

Stop linting assert!(x == y)
4 participants