mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
Fix a few typos
This commit is contained in:
parent
9b2e72c404
commit
3d4f10a856
5 changed files with 6 additions and 6 deletions
|
@ -55,7 +55,7 @@ impl chalk_ir::interner::Interner for Interner {
|
||||||
type InternedConst = Interned<InternedWrapper<ConstData>>;
|
type InternedConst = Interned<InternedWrapper<ConstData>>;
|
||||||
type InternedConcreteConst = ConstScalar;
|
type InternedConcreteConst = ConstScalar;
|
||||||
type InternedGenericArg = GenericArgData;
|
type InternedGenericArg = GenericArgData;
|
||||||
// We could do the following, but that saves "only" 20mb on self while increasing inferecene
|
// We could do the following, but that saves "only" 20mb on self while increasing inference
|
||||||
// time by ~2.5%
|
// time by ~2.5%
|
||||||
// type InternedGoal = Interned<InternedWrapper<GoalData>>;
|
// type InternedGoal = Interned<InternedWrapper<GoalData>>;
|
||||||
type InternedGoal = Arc<GoalData>;
|
type InternedGoal = Arc<GoalData>;
|
||||||
|
|
|
@ -299,7 +299,7 @@ impl Analysis {
|
||||||
|
|
||||||
/// Gets the syntax tree of the file.
|
/// Gets the syntax tree of the file.
|
||||||
pub fn parse(&self, file_id: FileId) -> Cancellable<SourceFile> {
|
pub fn parse(&self, file_id: FileId) -> Cancellable<SourceFile> {
|
||||||
// FIXME editiojn
|
// FIXME edition
|
||||||
self.with_db(|db| db.parse(EditionedFileId::current_edition(file_id)).tree())
|
self.with_db(|db| db.parse(EditionedFileId::current_edition(file_id)).tree())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -540,7 +540,7 @@ impl Analysis {
|
||||||
/// Returns URL(s) for the documentation of the symbol under the cursor.
|
/// Returns URL(s) for the documentation of the symbol under the cursor.
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
/// * `position` - Position in the file.
|
/// * `position` - Position in the file.
|
||||||
/// * `target_dir` - Directory where the build output is storeda.
|
/// * `target_dir` - Directory where the build output is stored.
|
||||||
pub fn external_docs(
|
pub fn external_docs(
|
||||||
&self,
|
&self,
|
||||||
position: FilePosition,
|
position: FilePosition,
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
/// case), and we know that the query only used inputs of medium
|
/// case), and we know that the query only used inputs of medium
|
||||||
/// durability or higher, then we can skip that enumeration.
|
/// durability or higher, then we can skip that enumeration.
|
||||||
///
|
///
|
||||||
/// Typically, one assigns low durabilites to inputs that the user is
|
/// Typically, one assigns low durabilities to inputs that the user is
|
||||||
/// frequently editing. Medium or high durabilities are used for
|
/// frequently editing. Medium or high durabilities are used for
|
||||||
/// configuration, the source from library crates, or other things
|
/// configuration, the source from library crates, or other things
|
||||||
/// that are unlikely to be edited.
|
/// that are unlikely to be edited.
|
||||||
|
|
|
@ -291,7 +291,7 @@ pub trait ParallelDatabase: Database + Send {
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// It is not permitted to create a snapshot from inside of a
|
/// It is not permitted to create a snapshot from inside of a
|
||||||
/// query. Attepting to do so will panic.
|
/// query. Attempting to do so will panic.
|
||||||
///
|
///
|
||||||
/// # Deadlock warning
|
/// # Deadlock warning
|
||||||
///
|
///
|
||||||
|
|
|
@ -255,7 +255,7 @@ fn cycle_revalidate_unchanged_twice() {
|
||||||
db.set_b_invokes(CycleQuery::A);
|
db.set_b_invokes(CycleQuery::A);
|
||||||
|
|
||||||
assert!(db.cycle_a().is_err());
|
assert!(db.cycle_a().is_err());
|
||||||
db.set_c_invokes(CycleQuery::A); // force new revisi5on
|
db.set_c_invokes(CycleQuery::A); // force new revision
|
||||||
|
|
||||||
// on this run
|
// on this run
|
||||||
expect![[r#"
|
expect![[r#"
|
||||||
|
|
Loading…
Reference in a new issue