about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-01-08 12:00:40 -0700
committerMichael Howell <michael@notriddle.com>2024-01-08 12:00:40 -0700
commite61be1bfae982b991828d3edd64a0eaea8bc2d55 (patch)
tree77d490a8546622993064e5dc6df9d64969066721 /compiler/rustc_interface/src/errors.rs
parent0ee9cfd54db7b5f4be35f026588904500c866196 (diff)
downloadrust-e61be1bfae982b991828d3edd64a0eaea8bc2d55.tar.gz
rust-e61be1bfae982b991828d3edd64a0eaea8bc2d55.zip
rustdoc-search: reuse empty map/array in function signatures
Map is implemented as a pointer to a mutable object.
Rustdoc never mutates function signatures after constructing them,
but the JS engine doesn't know that.

To save a bunch of memory, use a single immutable map
for every decoded type object with no bindings or generics.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions