diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-02 18:27:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-02 18:27:52 +0200 |
| commit | 97cf378f543813aeb3a87551915737a136d64aec (patch) | |
| tree | 492a197387d06080f4e694de6a8c058c01cd62ea /src/librustc_codegen_llvm | |
| parent | 5a7b21fabaed7a5fe4b2c89baf58271f82808b4a (diff) | |
| parent | 3be52b594114bcc813e0d7c901f719526fb0b601 (diff) | |
Rollup merge of #71787 - tshepang:rustdoc-warnings, r=varkor
fix rustdoc warnings
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/context.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/context.rs b/src/librustc_codegen_llvm/context.rs index b33aba0ef8f..01f90cae7a5 100644 --- a/src/librustc_codegen_llvm/context.rs +++ b/src/librustc_codegen_llvm/context.rs @@ -49,12 +49,13 @@ pub struct CodegenCx<'ll, 'tcx> { pub const_cstr_cache: RefCell<FxHashMap<Symbol, &'ll Value>>, /// Reverse-direction for const ptrs cast from globals. - /// Key is a Value holding a *T, - /// Val is a Value holding a *[T]. + /// + /// Key is a Value holding a `*T`, + /// Val is a Value holding a `*[T]`. /// /// Needed because LLVM loses pointer->pointee association /// when we ptrcast, and we have to ptrcast during codegen - /// of a [T] const because we form a slice, a (*T,usize) pair, not + /// of a `[T]` const because we form a slice, a `(*T,usize)` pair, not /// a pointer to an LLVM array type. Similar for trait objects. pub const_unsized: RefCell<FxHashMap<&'ll Value, &'ll Value>>, |
