diff options
| author | David Wood <david.wood@huawei.com> | 2022-03-31 09:02:31 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-04-05 07:01:03 +0100 |
| commit | 70ee0c96fc29c57f64a6ccfeb66cccf6fac951f7 (patch) | |
| tree | 01a686fcd042f264200076fb73abc167b90bbc3d /compiler/rustc_errors/src/snippet.rs | |
| parent | 8100541d5496e087ca214df4e599a67a91f25983 (diff) | |
| download | rust-70ee0c96fc29c57f64a6ccfeb66cccf6fac951f7.tar.gz rust-70ee0c96fc29c57f64a6ccfeb66cccf6fac951f7.zip | |
macros: add `#[no_arg]` to skip `set_arg` call
A call to `set_arg` is generated for every field of a `SessionDiagnostic` struct without attributes, but not all types support being an argument, so `#[no_arg]` is introduced to skip these fields. Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
