about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-02-17 14:24:13 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-02-24 07:08:40 +1100
commit29b51cdff36fc52a30d52f86e29e4c7c95eaf92d (patch)
tree869d63d61cf28f92539dcd103f4e9a86b26b155a /compiler/rustc_codegen_gcc
parent07c993eba8b76eae497e98433ae075b00f01be10 (diff)
downloadrust-29b51cdff36fc52a30d52f86e29e4c7c95eaf92d.tar.gz
rust-29b51cdff36fc52a30d52f86e29e4c7c95eaf92d.zip
Tweak the slice interners.
All the slice interners have a wrapper that handles the empty slice
case. We can instead handle this in the `slice_interners!` macro,
avoiding the need for most of the wrappers, and allowing the interner
functions to be renamed from `_intern_foos` to `intern_foos`.

The two exceptions:
- intern_predicates: I kept this wrapper because there's a FIXME
  comment about a possible future change.
- intern_poly_existential_predicates: I kept this wrapper because it
  asserts that the slice is empty and sorted.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions