diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-07-12 14:11:28 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2024-07-12 16:01:47 +0200 |
| commit | e805055b0ea7595fd7400b7583fa0b6ff11264bf (patch) | |
| tree | 7b565375600ad5ab1e7ce48ceeacfd2a946942bc /src | |
| parent | 1bafedbfe97e7b9d527a1eb6434f4b1fb4db2dd5 (diff) | |
| download | rust-e805055b0ea7595fd7400b7583fa0b6ff11264bf.tar.gz rust-e805055b0ea7595fd7400b7583fa0b6ff11264bf.zip | |
Add missing docs
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rust-analyzer/crates/intern/src/symbol.rs | 2 | ||||
| -rw-r--r-- | src/tools/rust-analyzer/crates/intern/src/symbol/symbols.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/intern/src/symbol.rs b/src/tools/rust-analyzer/crates/intern/src/symbol.rs index a1cffd0662f..290657a3d36 100644 --- a/src/tools/rust-analyzer/crates/intern/src/symbol.rs +++ b/src/tools/rust-analyzer/crates/intern/src/symbol.rs @@ -39,7 +39,7 @@ unsafe impl Sync for TaggedArcPtr {} impl TaggedArcPtr { const BOOL_BITS: usize = true as usize; - const fn non_arc(r: &&str) -> Self { + const fn non_arc(r: &'static &'static str) -> Self { Self { // SAFETY: The pointer is non-null as it is derived from a reference // Ideally we would call out to `pack_arc` but for a `false` tag, unfortunately the diff --git a/src/tools/rust-analyzer/crates/intern/src/symbol/symbols.rs b/src/tools/rust-analyzer/crates/intern/src/symbol/symbols.rs index d2ca4401b66..a1cf6e09414 100644 --- a/src/tools/rust-analyzer/crates/intern/src/symbol/symbols.rs +++ b/src/tools/rust-analyzer/crates/intern/src/symbol/symbols.rs @@ -1,3 +1,4 @@ +//! Module defining all known symbols required by the rest of rust-analyzer. #![allow(non_upper_case_globals)] use std::hash::{BuildHasherDefault, Hash as _, Hasher as _}; |
