stage0 新增内存复制指令 重构vm交互
This commit is contained in:
1 parent
0b8f649818
commit
40cffa9cb5
22 files changed
+626
-158
No files matched your search
@@ -1268,6 +1268,15 @@ fn bind_pattern(self: *Sema, pat_ref: usize, matched_tid: usize) {
|
||||
pat.resolved_lang_tid = matched_tid;
|
||||
},
|
||||
.PatternUnderscore => {},
|
||||
.PatternRef(x) => {
|
||||
if matched_tid == 0 {
|
||||
diag(self, pat.span, .TypeMismatch, "ref pattern requires a concrete type");
|
||||
ret;
|
||||
}
|
||||
var ptr = LangType.make_ptr(&self.types, matched_tid);
|
||||
bind_pattern(self, x.pat, ptr);
|
||||
pat.resolved_lang_tid = ptr;
|
||||
},
|
||||
.PatternList(x) => {
|
||||
var i: usize = 0;
|
||||
while i < x.items.len {
|
||||
|
||||
Reference in new issue
Block a user