From 9c001af07c658b9583bde8d138d1d9408274d741 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 7 Apr 2011 18:15:56 -0700 Subject: Implemented computing prestates and poststates for a few expression forms. The typestate checker (if it's uncommented) now correctly rejects a trivial example program that has an uninitialized variable. --- src/comp/rustc.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/comp/rustc.rc') diff --git a/src/comp/rustc.rc b/src/comp/rustc.rc index e9d0b788..14efb667 100644 --- a/src/comp/rustc.rc +++ b/src/comp/rustc.rc @@ -65,10 +65,14 @@ auth lib.llvm = unsafe; auth pretty.pprust = impure; auth middle.typestate_check.find_pre_post_block = impure; auth middle.typestate_check.find_pre_post_state_block = impure; +auth middle.typestate_check.find_pre_post_state_stmt = impure; +auth middle.typestate_check.find_pre_post_state_expr = impure; +auth middle.typestate_check.find_pre_post_state_exprs = impure; auth middle.typestate_check.find_pre_post_expr = impure; auth middle.typestate_check.find_pre_post_stmt = impure; auth middle.typestate_check.check_states_against_conditions = impure; auth middle.typestate_check.check_states_stmt = impure; +auth middle.typestate_check.log_stmt = impure; auth util.typestate_ann.implies = impure; mod lib { -- cgit v1.2.3