mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Add missing docs
This commit is contained in:
parent
6275eb140e
commit
843806b79f
2 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,7 @@ unsafe impl Sync for TaggedArcPtr {}
|
||||||
impl TaggedArcPtr {
|
impl TaggedArcPtr {
|
||||||
const BOOL_BITS: usize = true as usize;
|
const BOOL_BITS: usize = true as usize;
|
||||||
|
|
||||||
const fn non_arc(r: &&str) -> Self {
|
const fn non_arc(r: &'static &'static str) -> Self {
|
||||||
Self {
|
Self {
|
||||||
// SAFETY: The pointer is non-null as it is derived from a reference
|
// 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
|
// Ideally we would call out to `pack_arc` but for a `false` tag, unfortunately the
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Module defining all known symbols required by the rest of rust-analyzer.
|
||||||
#![allow(non_upper_case_globals)]
|
#![allow(non_upper_case_globals)]
|
||||||
|
|
||||||
use std::hash::{BuildHasherDefault, Hash as _, Hasher as _};
|
use std::hash::{BuildHasherDefault, Hash as _, Hasher as _};
|
||||||
|
|
Loading…
Reference in a new issue