-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove wrong lifetime from LintContext #4196
Conversation
@@ -92,7 +92,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UselessFormat { | |||
} | |||
} | |||
|
|||
fn span_useless_format<'a, 'tcx: 'a, T: LintContext<'tcx>>(cx: &'a T, span: Span, help: &str, mut sugg: String) { | |||
fn span_useless_format<T: LintContext>(cx: &T, span: Span, help: &str, mut sugg: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @oli-obk T
should be named C
IMO, or maybe cx: &impl LintContext
can be used (and, well, LintContext
should probably be just LintCx
).
@bors r+ |
📌 Commit da3dd36 has been approved by |
Remove wrong lifetime from LintContext Rustup rust-lang/rust#61735 changelog: none
💔 Test failed - checks-travis |
@bors retry (No output has been received in the last 10m0s) |
Remove wrong lifetime from LintContext Rustup rust-lang/rust#61735 changelog: none
💔 Test failed - status-appveyor |
Looks like a new breakage introduced by rustc? |
@phansch Yeah I'd recommend rustup-ing to just before rust-lang/rust#61735 and then apply the changes here, although I'm surprised clippy didn't appear as broken before rust-lang/rust#61735 was merged. |
Closed in favor of #4198 . |
Rustup rust-lang/rust#61735
changelog: none