-
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
Invert control in struct_lint_level. #68725
Merged
bors
merged 11 commits into
rust-lang:master
from
jumbatm:invert-control-in-struct_lint_level
Feb 11, 2020
Merged
Invert control in struct_lint_level. #68725
bors
merged 11 commits into
rust-lang:master
from
jumbatm:invert-control-in-struct_lint_level
Feb 11, 2020
Commits on Feb 11, 2020
-
Invert control in struct_lint_level.
Caller now passes in a `decorate` function, which is only run if the lint is allowed.
Configuration menu - View commit details
-
Copy full SHA for 7c58ffe - Browse repository at this point
Copy the full SHA 7c58ffeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0df1ca3 - Browse repository at this point
Copy the full SHA 0df1ca3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0634a50 - Browse repository at this point
Copy the full SHA 0634a50View commit details -
Configuration menu - View commit details
-
Copy full SHA for d246385 - Browse repository at this point
Copy the full SHA d246385View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2e78fa - Browse repository at this point
Copy the full SHA b2e78faView commit details -
Make cx.span_lint methods lazy
- Make report_unsafe take decorate function - Remove span_lint, replacing calls with struct_span_lint, as caller is now responsible for emitting. - Remove lookup_and_emit, replacing with just lookup which takes a decorate function. - Remove span_lint_note, span_lint_help. These methods aren't easily made lazy as standalone methods, private, and unused. If this functionality is needed, to be lazy, they can easily be made into Fn(&mut DiagnosticBuilder) that are meant to be called _within_ the decorate function. - Rename lookup_and_emit_with_diagnostics to lookup_with_diagnostics to better reflect the fact that it doesn't emit for you.
Configuration menu - View commit details
-
Copy full SHA for 2f0430a - Browse repository at this point
Copy the full SHA 2f0430aView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa3c458 - Browse repository at this point
Copy the full SHA aa3c458View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b2436f - Browse repository at this point
Copy the full SHA 0b2436fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 284982d - Browse repository at this point
Copy the full SHA 284982dView commit details -
- AnonymousParameters::check_trait_item - TypeAliasBounds::check_item - NonSnakeCase::check_snake_case
Configuration menu - View commit details
-
Copy full SHA for e450996 - Browse repository at this point
Copy the full SHA e450996View commit details -
Fix stage2 test failures from call to span_lint.
span_lint was removed. Callers should use the `lint` method now, and call `set_span` within the closure passed to this method.
Configuration menu - View commit details
-
Copy full SHA for b959da2 - Browse repository at this point
Copy the full SHA b959da2View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.