mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
cargo fmt
This commit is contained in:
parent
87f837cec7
commit
7535bb4661
571 changed files with 2210 additions and 2458 deletions
|
|
@ -10,7 +10,7 @@ use std::{
|
|||
};
|
||||
|
||||
use dashmap::{DashMap, SharedValue};
|
||||
use hashbrown::{hash_map::RawEntryMut, HashMap};
|
||||
use hashbrown::{HashMap, hash_map::RawEntryMut};
|
||||
use rustc_hash::FxHasher;
|
||||
use triomphe::Arc;
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ type Guard<T> = dashmap::RwLockWriteGuard<
|
|||
>;
|
||||
|
||||
mod symbol;
|
||||
pub use self::symbol::{symbols as sym, Symbol};
|
||||
pub use self::symbol::{Symbol, symbols as sym};
|
||||
|
||||
pub struct Interned<T: Internable + ?Sized> {
|
||||
arc: Arc<T>,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ use std::{
|
|||
};
|
||||
|
||||
use dashmap::{DashMap, SharedValue};
|
||||
use hashbrown::{hash_map::RawEntryMut, HashMap};
|
||||
use hashbrown::{HashMap, hash_map::RawEntryMut};
|
||||
use rustc_hash::FxHasher;
|
||||
use triomphe::Arc;
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ impl Symbol {
|
|||
SharedValue::new(()),
|
||||
)
|
||||
.0
|
||||
.0,
|
||||
.0,
|
||||
),
|
||||
},
|
||||
}
|
||||
|
|
@ -236,7 +236,7 @@ impl Symbol {
|
|||
RawEntryMut::Vacant(_) => unreachable!(),
|
||||
}
|
||||
.0
|
||||
.0;
|
||||
.0;
|
||||
// SAFETY: We're dropping, we have ownership.
|
||||
ManuallyDrop::into_inner(unsafe { ptr.try_as_arc_owned().unwrap() });
|
||||
debug_assert_eq!(Arc::count(arc), 1);
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ use dashmap::{DashMap, SharedValue};
|
|||
use rustc_hash::FxHasher;
|
||||
|
||||
use crate::{
|
||||
symbol::{SymbolProxy, TaggedArcPtr},
|
||||
Symbol,
|
||||
symbol::{SymbolProxy, TaggedArcPtr},
|
||||
};
|
||||
|
||||
macro_rules! define_symbols {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue