mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Insert builtin#asm into asm! expansion
This commit is contained in:
parent
15048304e3
commit
3431d586e5
13 changed files with 103 additions and 6 deletions
|
@ -844,6 +844,10 @@ impl InferenceContext<'_> {
|
|||
expected
|
||||
}
|
||||
Expr::OffsetOf(_) => TyKind::Scalar(Scalar::Uint(UintTy::Usize)).intern(Interner),
|
||||
Expr::InlineAsm(it) => {
|
||||
self.infer_expr_no_expect(it.e);
|
||||
self.result.standard_types.unit.clone()
|
||||
}
|
||||
};
|
||||
// use a new type variable if we got unknown here
|
||||
let ty = self.insert_type_vars_shallow(ty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue