diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-12-13 12:42:01 -0800 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-12-13 13:49:33 -0800 |
| commit | 4bac09f58fdc3d847b3231dcf64b2d02f4eac403 (patch) | |
| tree | 542b12a5e45791c5165d636eea5a43b8d88881c0 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 1796de7bb123df3f3d32124ededf1344434f672e (diff) | |
| download | rust-4bac09f58fdc3d847b3231dcf64b2d02f4eac403.tar.gz rust-4bac09f58fdc3d847b3231dcf64b2d02f4eac403.zip | |
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/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
