]> git.lizzy.rs Git - rust.git/commit
let `generate_field_attrs_code` create `FieldInfo`
authorChristian Poveda <git@pvdrz.com>
Thu, 19 May 2022 05:47:45 +0000 (00:47 -0500)
committerChristian Poveda <git@pvdrz.com>
Thu, 19 May 2022 05:47:45 +0000 (00:47 -0500)
commitd839d2ecc274f4633bbb621d169d84347ffc2ba9
tree8fcedc33bc4049d8f2ac34720ee51521cee47f62
parent7e9be9240cf1f3c2fc48fffbb202b249821c61b2
let `generate_field_attrs_code` create `FieldInfo`

this simplifies the code inside the `structure.each` closure argument
and allows to remove the `vis` field from `FieldInfo`.
compiler/rustc_macros/src/diagnostics/diagnostic.rs
compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
compiler/rustc_macros/src/diagnostics/utils.rs