Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store/lower/asm.rs')
-rw-r--r--crates/hir-def/src/expr_store/lower/asm.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/hir-def/src/expr_store/lower/asm.rs b/crates/hir-def/src/expr_store/lower/asm.rs
index 032c18688e..9ef0306565 100644
--- a/crates/hir-def/src/expr_store/lower/asm.rs
+++ b/crates/hir-def/src/expr_store/lower/asm.rs
@@ -3,8 +3,8 @@ use hir_expand::name::Name;
use intern::Symbol;
use rustc_hash::{FxHashMap, FxHashSet};
use syntax::{
- ast::{self, HasName, IsString},
AstNode, AstPtr, AstToken, T,
+ ast::{self, HasName, IsString},
};
use tt::TextRange;
@@ -158,7 +158,12 @@ impl ExprCollector<'_> {
AsmOperand::Const(self.collect_expr_opt(c.expr()))
}
ast::AsmOperand::AsmSym(s) => {
- let Some(path) = s.path().and_then(|p| self.parse_path(p)) else {
+ let Some(path) = s.path().and_then(|p| {
+ self.lower_path(
+ p,
+ &mut ExprCollector::impl_trait_error_allocator,
+ )
+ }) else {
continue;
};
AsmOperand::Sym(path)