Skip to content

explicit_outlives_requirements lint triggers in macro-generated code #96640

Closed
@jplatte

Description

@jplatte

This was originally a clippy issue until I noticed it's actually a builtin lint, so here's clippy's issue form filled out 😄

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

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions