Skip to content

explicit_outlives_requirements lint triggers in macro-generated code #8776

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

Closed
jplatte opened this issue May 2, 2022 · 2 comments
Closed
Labels
C-bug Category: Clippy is not doing the correct thing I-false-positive Issue: The lint was triggered on code it shouldn't have

Comments

@jplatte
Copy link
Contributor

jplatte commented May 2, 2022

Summary

The explicit_outlives_requirements lint seems to fire in macro-generated code, where it would be extra work to elide these. Saw this happen in CI for Ruma: https://github.com/ruma/ruma/runs/6258852689?check_suite_focus=true

Lint Name

explicit_outlives_requirements

Reproducer

  • Clone Ruma
  • Run cargo clippy --features client in crates/ruma-client-api

Version

rustc 1.62.0-nightly (4dd8b420c 2022-05-01)
binary: rustc
commit-hash: 4dd8b420c027001e47b0d811a7e55e2fe1de1395
commit-date: 2022-05-01
host: x86_64-unknown-linux-gnu
release: 1.62.0-nightly
LLVM version: 14.0.1

Additional Labels

No response

@jplatte jplatte added C-bug Category: Clippy is not doing the correct thing I-false-positive Issue: The lint was triggered on code it shouldn't have labels May 2, 2022
@jplatte
Copy link
Contributor Author

jplatte commented May 2, 2022

Oh, this is not a even clippy lint, it's builtin! Sorry for the noise.

@jplatte jplatte closed this as completed May 2, 2022
@jplatte
Copy link
Contributor Author

jplatte commented May 2, 2022

Moved to rust-lang/rust#96640.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing I-false-positive Issue: The lint was triggered on code it shouldn't have
Projects
None yet
Development

No branches or pull requests

1 participant