Rollup merge of #61824 - rust-lang:single_derive, r=eddyb

in which we decline to lint single-use lifetimes in `derive`d impls

Resolves #53738.

r? @eddyb
This commit is contained in:
Mazdak Farrokhzad 2019-06-15 17:45:04 +02:00 committed by GitHub
commit eb188f1317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View file

@ -18,4 +18,11 @@ enum Bar<'f> {
trait Baz<'f> { }
// `Derive`d impls shouldn't trigger a warning, either (Issue #53738).
#[derive(Debug)]
struct Quux<'a> {
priors: &'a u32,
}
fn main() { }