Stream: t-compiler/help

Topic: Suppressing lints for generated impls


Jonas Schievink (May 04 2020 at 20:45, on Zulip):

Is there a good way to #[allow] a lint for a generated impl, that also works in the presence of an outer #[forbid]?

Jonas Schievink (May 04 2020 at 20:47, on Zulip):

The built-in derives seem to have such a mechanism, for example they won't fire the deprecated lint even though the generated impl would otherwise trigger it.

Jonas Schievink (May 04 2020 at 20:47, on Zulip):

Or is the deprecated lint looking at the span of the impl?

Jonas Schievink (May 04 2020 at 20:51, on Zulip):

Huh, they also attach #[allow(unused_qualifications)] to the impl, but that does break when #[forbid(unused_qualifications)] is present

Last update: Sep 28 2020 at 16:15UTC