X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_lint%2Fsrc%2Fcontext.rs;h=d1d4bb375282f004673fb63bf2141c002f7b9956;hb=c6a104f3e4266cb9f369b7edbc58520ca43f911e;hp=8046cc21cea583eb73f15cb45228593a05139af6;hpb=1dd773175aa52007f6fd8f8cff5215bc2846e5a6;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)