Insert builtin#asm into asm! expansion

This commit is contained in:
Lukas Wirth 2023-09-05 13:28:41 +02:00
parent 15048304e3
commit 3431d586e5
13 changed files with 103 additions and 6 deletions

View file

@ -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);