Files
rust/compiler
David Wood 9d864c8d56 macros: add diagnostic derive for lints
`SessionDiagnostic` isn't suitable for use on lints as whether or not it
creates an error or a warning is decided at compile-time by the macro,
whereas lints decide this at runtime based on the location of the lint
being reported (as it will depend on the user's `allow`/`deny`
attributes, etc). Re-using most of the machinery for
`SessionDiagnostic`, this macro introduces a `LintDiagnostic` derive
which implements a `DecorateLint` trait, taking a
`LintDiagnosticBuilder` and adding to the lint according to the
diagnostic struct.
2022-07-05 16:00:21 +01:00
..
2022-06-27 08:48:55 +10:00
2022-06-27 08:48:55 +10:00
2022-06-27 08:48:55 +10:00
2022-07-02 02:11:49 -05:00
2022-06-03 17:16:41 -04:00
2022-07-01 10:04:19 -05:00
2022-06-27 08:48:55 +10:00
2022-06-28 19:59:09 +05:30
2022-05-26 13:14:24 +02:00
2022-06-27 08:48:55 +10:00
2022-06-02 10:29:00 +00:00
2022-07-05 16:00:20 +01:00
2022-07-04 09:40:58 +02:00