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

Stabilize the "approximate suggestion" flag, use for the epoch #50168

Closed
Manishearth opened this issue Apr 22, 2018 · 7 comments
Closed

Stabilize the "approximate suggestion" flag, use for the epoch #50168

Manishearth opened this issue Apr 22, 2018 · 7 comments
Labels
T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue.

Comments

@Manishearth
Copy link
Member

We're going to be using rustfix for epoch upgrades, and we need a way to signal to the tool that a suggestion may not apply (and instead to prompt with it).

We have an unstable "approximate suggestion" flag. I propose stabilizing this. We should also start using it everywhere.

cc @rust-lang/dev-tools

@Manishearth Manishearth added I-nominated T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. labels Apr 22, 2018
@nrc
Copy link
Member

nrc commented Apr 23, 2018

I'm mostly in favour. I wonder if the flag is future proof enough - should we upgrade it to an enum?

@oli-obk
Copy link
Contributor

oli-obk commented Apr 23, 2018

Like a suggestion kind field that currently only allows "approximate" and "automatic"?

@killercup
Copy link
Member

killercup commented Apr 23, 2018 via email

@Manishearth
Copy link
Member Author

Manishearth commented Apr 23, 2018 via email

@killercup
Copy link
Member

Dev tools meeting: Let's use an enum with these variants at first (represented as string in JSON output):

  1. unspecified (all lints will use this by default)
  2. machine-applicable
  3. approximate (we might want to subdivide this further in the future, e.g. "appox because macros", "placeholder used", …)

Will implement, then do a FCP on this issue

@killercup
Copy link
Member

impl in #50486

@nrc nrc removed the I-nominated label May 8, 2018
@killercup
Copy link
Member

This landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants