X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_lint%2Fsrc%2Fcontext.rs;h=d1d4bb375282f004673fb63bf2141c002f7b9956;hb=f95f835470f1c5b295d2486259e745eb8e859344;hp=8046cc21cea583eb73f15cb45228593a05139af6;hpb=b36a8dcea3545eb8edb8967ac382d0ccaa4d4023;p=rust.git diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index 8046cc21cea..d1d4bb37528 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -882,6 +882,9 @@ fn lookup_with_diagnostics( ); } } + BuiltinLintDiagnostics::ByteSliceInPackedStructWithDerive => { + db.help("consider implementing the trait by hand, or remove the `packed` attribute"); + } } // Rewrap `db`, and pass control to the user. decorate(db)