diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-19 13:47:09 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-23 13:18:50 +1100 |
| commit | de303b87c94ad3a2b6a08ecdf6173e988c25ccf9 (patch) | |
| tree | fa3032556196bdaec8b790e1e322405ebf3473ce /compiler/rustc_parse/src/errors.rs | |
| parent | c8c1615df0b10afb66278ac016596ca55d3eadd3 (diff) | |
| download | rust-de303b87c94ad3a2b6a08ecdf6173e988c25ccf9.tar.gz rust-de303b87c94ad3a2b6a08ecdf6173e988c25ccf9.zip | |
Streamline `struct_lint_level`.
We can just get the error level in the `match` and then use `DiagnosticBuilder::new`. This then means a number of `DiagCtxt` functions are no longer needed, because this was the one place that used them. Note: the commit changes the treatment of spans for `Expect`, which was different to all the other cases, but this has no apparent effect.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
