Skip to content

Commit 0b40876

Browse files
committed
Merge branch 'master' of github.com:rust-analyzer/rust-analyzer
2 parents eea2173 + 75bc024 commit 0b40876

File tree

255 files changed

+11241
-11165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+11241
-11165
lines changed

Cargo.lock

Lines changed: 50 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ra_assists/src/ast_transform.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ impl<'a> SubstituteTypeParams<'a> {
8585
ast::TypeRef::PathType(path_type) => path_type.path()?,
8686
_ => return None,
8787
};
88+
// FIXME: use `hir::Path::from_src` instead.
8889
let path = hir::Path::from_ast(path)?;
8990
let resolution = self.source_scope.resolve_hir_path(&path)?;
9091
match resolution {
@@ -128,6 +129,7 @@ impl<'a> QualifyPaths<'a> {
128129
// don't try to qualify `Fn(Foo) -> Bar` paths, they are in prelude anyway
129130
return None;
130131
}
132+
// FIXME: use `hir::Path::from_src` instead.
131133
let hir_path = hir::Path::from_ast(p.clone());
132134
let resolution = self.source_scope.resolve_hir_path(&hir_path?)?;
133135
match resolution {

crates/ra_assists/src/doc_tests/generated.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ trait Trait<T> {
180180
}
181181
182182
impl Trait<u32> for () {
183-
fn foo(&self) -> u32 { todo!() }
183+
fn foo(&self) -> u32 {
184+
todo!()
185+
}
184186
185187
}
186188
"#####,

0 commit comments

Comments
 (0)