about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/doc-examples.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2020-08-06 12:48:53 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2020-08-10 07:12:59 +1000
commit0a597bd98f91b7f0e87985b8dcac0fd9820c6d47 (patch)
treec743ffb9380a285605cb60e94a891da53009e278 /src/test/rustdoc-ui/coverage/doc-examples.rs
parent75b67c2d5e12d98b70323bd7874886dd650c5499 (diff)
downloadrust-0a597bd98f91b7f0e87985b8dcac0fd9820c6d47.tar.gz
rust-0a597bd98f91b7f0e87985b8dcac0fd9820c6d47.zip
Remove `CowBoxSymStr`.
`CowBoxSymStr` is a type that either holds a `SymbolStr` (which is much
the same as a `Symbol`), or an owned string. When computing skeletons,
a `SymbolStr` is stored if the skeleton is the same as the original
string, otherwise an owned string is stored.

So, basically, `CowBoxSymStr` is a type for string interning. But we
already have one of those: `Symbol` itself. This PR removes
`CowBoxSymStr`, using `Symbol` instead. A good thing about this is that
it avoids storing `SymbolStr` values in `skeleton_map`, something that
is discouraged.

The PR also inlines and removes the `calc_skeleton()` function because
that simplifies the code.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/doc-examples.rs')
0 files changed, 0 insertions, 0 deletions