Add missing docs

This commit is contained in:
Lukas Wirth 2024-07-12 14:11:28 +02:00
parent 6275eb140e
commit 843806b79f
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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 _};