diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-30 23:08:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-30 23:08:49 +0200 |
| commit | 320de71cdd016201d9ec6b1a214befccb36e0de5 (patch) | |
| tree | 94d62744ec76cca7e83797fad3d56754e7195099 /src/rustllvm/CoverageMappingWrapper.cpp | |
| parent | 5f0aefda49581aae96882552592a4881d2c099df (diff) | |
| parent | b12489248084f1ea33008e9b77ad2bbd41ee0f7f (diff) | |
| download | rust-320de71cdd016201d9ec6b1a214befccb36e0de5.tar.gz rust-320de71cdd016201d9ec6b1a214befccb36e0de5.zip | |
Rollup merge of #72657 - flip1995:impl_lint_pass-ty, r=matthewjasper
Allow types (with lifetimes/generics) in impl_lint_pass cc https://github.com/rust-lang/rust-clippy/pull/5279#discussion_r430790267 This allows to implement `LintPass` for types with lifetimes and/or generics. The only thing, I'm not sure of is the `LintPass::name` function, which now includes the lifetime(s) (which will be `'_` most of the time) in the name returned for the lint pass, if it exists. But I don't think that this should be a problem, since the `LintPass::name` is never used for output for the user (?).
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
