mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 19:17:12 +00:00
internal: port rust-analyzer to new Salsa
This commit is contained in:
parent
394374e769
commit
74620e64ec
161 changed files with 3075 additions and 2331 deletions
|
|
@ -1635,8 +1635,7 @@ pub(crate) fn name_hygiene(db: &dyn HirDatabase, name: InFile<&SyntaxNode>) -> H
|
|||
};
|
||||
let span_map = db.expansion_span_map(macro_file);
|
||||
let ctx = span_map.span_at(name.value.text_range().start()).ctx;
|
||||
let ctx = db.lookup_intern_syntax_context(ctx);
|
||||
HygieneId::new(ctx.opaque_and_semitransparent)
|
||||
HygieneId::new(ctx.opaque_and_semitransparent(db))
|
||||
}
|
||||
|
||||
fn type_of_expr_including_adjust(infer: &InferenceResult, id: ExprId) -> Option<&Ty> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue