Implement generalized object and type parameter bounds (Fixes #16462)
This commit is contained in:
parent
3ee047ae1f
commit
1b487a8906
272 changed files with 6783 additions and 3154 deletions
|
@ -79,12 +79,14 @@ impl<'a> CFGBuilder<'a> {
|
|||
|
||||
fn stmt(&mut self, stmt: Gc<ast::Stmt>, pred: CFGIndex) -> CFGIndex {
|
||||
match stmt.node {
|
||||
ast::StmtDecl(ref decl, _) => {
|
||||
self.decl(&**decl, pred)
|
||||
ast::StmtDecl(ref decl, id) => {
|
||||
let exit = self.decl(&**decl, pred);
|
||||
self.add_node(id, [exit])
|
||||
}
|
||||
|
||||
ast::StmtExpr(ref expr, _) | ast::StmtSemi(ref expr, _) => {
|
||||
self.expr(expr.clone(), pred)
|
||||
ast::StmtExpr(ref expr, id) | ast::StmtSemi(ref expr, id) => {
|
||||
let exit = self.expr(expr.clone(), pred);
|
||||
self.add_node(id, [exit])
|
||||
}
|
||||
|
||||
ast::StmtMac(..) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue