about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-06-20 12:43:29 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-06-22 08:07:59 +1000
commit88cd8f93247a09fb0c2e43e82e0dfedea23e9642 (patch)
tree4fec5dd04814cfe904f31eb7c029fe5dd7478cd3 /compiler/rustc_codegen_llvm/src/attributes.rs
parent757c290fba5278989a78c636a41db97204693b3e (diff)
downloadrust-88cd8f93247a09fb0c2e43e82e0dfedea23e9642.tar.gz
rust-88cd8f93247a09fb0c2e43e82e0dfedea23e9642.zip
Simplify `Message`.
`Message` is an enum with multiple variants. Four of those variants map
directly onto the four variants of `WorkItemResult`. This commit reduces
those four `Message` variants to a single variant containing a
`WorkItemResult`. This requires increasing `WorkItemResult`'s visibility
to `pub(crate)` visibility, but `WorkItem` and `Message` can also have
their visibility reduced to `pub(crate)`.

This change avoids some boilerplate enum translation code, and makes
`Message` easier to understand.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions