about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/base.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-19 06:26:07 +0000
committerbors <bors@rust-lang.org>2021-12-19 06:26:07 +0000
commit8f540619007c1aa62dfc915409d881f52f21dc84 (patch)
treeb61df12b68f6ffd3fe561d158590ce1eabc7a4d4 /compiler/rustc_codegen_llvm/src/base.rs
parentd6cffe41b59feaab5fb92bb320e60586202c9950 (diff)
parent4bac09f58fdc3d847b3231dcf64b2d02f4eac403 (diff)
downloadrust-8f540619007c1aa62dfc915409d881f52f21dc84.tar.gz
rust-8f540619007c1aa62dfc915409d881f52f21dc84.zip
Auto merge of #91871 - camelid:urlpartsbuilder, r=GuillaumeGomez
rustdoc: Add `UrlPartsBuilder`

This is a type for efficiently and easily constructing the part of a URL
after the domain: `nightly/core/str/struct.Bytes.html`.

It allows simplifying some code and avoiding some allocations in the
`href_*` functions.

It will also allow making `Cache.paths` et al. use `Symbol` without
having to allocate `String`s in the `href_*` functions. `String`s would
be necessary otherwise because `Symbol::as_str()` returns `SymbolStr`,
whose `Deref<Target = str>` impl requires the `str` to not outlive it.
This is the primary motivation for the addition of `UrlPartsBuilder`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/base.rs')
0 files changed, 0 insertions, 0 deletions