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

Remove wrong lifetime from LintContext #4196

Closed
wants to merge 1 commit into from

Conversation

tesuji
Copy link
Contributor

@tesuji tesuji commented Jun 12, 2019

Rustup rust-lang/rust#61735

changelog: none

@tesuji tesuji force-pushed the unused-lifetime branch from aeee0f0 to da3dd36 Compare June 12, 2019 03:20
@@ -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) {
Copy link
Member

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).

@oli-obk
Copy link
Contributor

oli-obk commented Jun 12, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Jun 12, 2019

📌 Commit da3dd36 has been approved by oli-obk

@bors
Copy link
Contributor

bors commented Jun 12, 2019

⌛ Testing commit da3dd36 with merge 90d932f...

bors added a commit that referenced this pull request Jun 12, 2019
Remove wrong lifetime from LintContext

Rustup rust-lang/rust#61735

changelog: none
@bors
Copy link
Contributor

bors commented Jun 12, 2019

💔 Test failed - checks-travis

@phansch
Copy link
Member

phansch commented Jun 12, 2019

@bors retry (No output has been received in the last 10m0s)

@bors
Copy link
Contributor

bors commented Jun 12, 2019

⌛ Testing commit da3dd36 with merge f8300dd...

bors added a commit that referenced this pull request Jun 12, 2019
Remove wrong lifetime from LintContext

Rustup rust-lang/rust#61735

changelog: none
@bors
Copy link
Contributor

bors commented Jun 12, 2019

💔 Test failed - status-appveyor

@phansch
Copy link
Member

phansch commented Jun 12, 2019

Looks like a new breakage introduced by rustc?

@eddyb
Copy link
Member

eddyb commented Jun 12, 2019

@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.

@tesuji
Copy link
Contributor Author

tesuji commented Jun 12, 2019

Closed in favor of #4198 .

@tesuji tesuji closed this Jun 12, 2019
@tesuji tesuji deleted the unused-lifetime branch June 12, 2019 09:26
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.

5 participants