-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Edge case does not suggest changing invalid public
with pub
#101626
Comments
Can you please add the Rustc versions? |
[Note that I don't think this should have happened at all, I wrote tests for the changed diagnostic suggestions] |
@gimbles I have retested the above code snippet against the current stable, beta and nightly version (I have added the version numbers above) of the compiler in the official rust playground and the regression still persist. Not sure if this only occurs on the rust playground although I highly doubt it. Maybe you could look into this as the implementation of that diagnostics improvement is written by you. If you have any evidence that this regression issue is misinformed do let me know and I will happily close the issue. Thanks a lot. |
Not sure if this is the cause but maybe the test you wrote in #99903 is slightly different to the above code snippet as the test uses the wrong That being said, all those are just my guess and it may be wrong. @rustbot label +E-needs-bisection |
This may related to my PR: |
@rustbot claim |
@rustbot label -E-needs-bisection |
Suggest pub instead of public for const type item Fixes rust-lang#101626
Given the following code: link
The current output on stable 1.63.0:
The current output on Beta version 1.64.0-beta.6 (2022-09-09 25912c0):
The current output on Nightly version 1.65.0-nightly (2022-09-09 1d37ed6):
Since #99903 ( cc @gimbles ) is somewhat recent the help diagnostics improvement currently is only on beta. However, the latest nightly has regressions regarding the suggestion as shown above. Hence, the output should suggest changing
public
withpub
as that is the desired output.Note: base issue for improved diagnostics (
public
->pub
): #99653Note: since this is technically a regression from beta to nightly, what should be the appropriate label to add? The one below this?
@rustbot label +regression-untriaged
The text was updated successfully, but these errors were encountered: