about summary refs log tree commit diff
path: root/tests/rustdoc/inline_cross/impl-inline-without-trait.rs
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2023-07-24 15:47:03 +0100
committerDavid Wood <david.wood@huawei.com>2023-07-24 15:47:03 +0100
commit3857d9c2da1250546ccb87ab7ddcc68904f45dc5 (patch)
tree5758f069afb5159a1cbb85060e19aef79960ffc3 /tests/rustdoc/inline_cross/impl-inline-without-trait.rs
parentced592a99bfc6ad2c9aa014350686188963764e9 (diff)
downloadrust-3857d9c2da1250546ccb87ab7ddcc68904f45dc5.tar.gz
rust-3857d9c2da1250546ccb87ab7ddcc68904f45dc5.zip
borrowck/errors: fix i18n error in delayed bug
During borrowck, the `MultiSpan` from a buffered diagnostic is cloned and
used to emit a delayed bug indicating a diagnostic was buffered - when
the buffered diagnostic is translated, then the cloned `MultiSpan` may
contain labels which can only render with the diagnostic's arguments, but
the delayed bug being emitted won't have those arguments. Adds a function
which clones `MultiSpan` without also cloning the contained labels, and
use this function when creating the buffered diagnostic delayed bug.

Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'tests/rustdoc/inline_cross/impl-inline-without-trait.rs')
0 files changed, 0 insertions, 0 deletions