@@ -37,6 +37,7 @@ const trace: uint = 128u;
37
37
const no_rt: uint = 256 u;
38
38
const coherence: uint = 512 u;
39
39
const borrowck_stats: uint = 1024 u;
40
+ const borrowck_note_pure: uint = 2048 ;
40
41
41
42
fn debugging_opts_map ( ) -> ~[ ( str , str , uint ) ] {
42
43
~[ ( "ppregions" , "prettyprint regions with \
@@ -51,7 +52,9 @@ fn debugging_opts_map() -> ~[(str, str, uint)] {
51
52
( "trace" , "emit trace logs" , trace) ,
52
53
( "no-rt" , "do not link to the runtime" , no_rt) ,
53
54
( "coherence" , "perform coherence checking" , coherence) ,
54
- ( "borrowck-stats" , "gather borrowck statistics" , borrowck_stats)
55
+ ( "borrowck-stats" , "gather borrowck statistics" , borrowck_stats) ,
56
+ ( "borrowck-note-pure" , "note where purity is req'd" ,
57
+ borrowck_note_pure)
55
58
]
56
59
}
57
60
@@ -168,6 +171,7 @@ impl session for session {
168
171
fn trace ( ) -> bool { self . debugging_opt ( trace) }
169
172
fn coherence ( ) -> bool { self . debugging_opt ( coherence) }
170
173
fn borrowck_stats ( ) -> bool { self . debugging_opt ( borrowck_stats) }
174
+ fn borrowck_note_pure ( ) -> bool { self . debugging_opt ( borrowck_note_pure) }
171
175
}
172
176
173
177
/// Some reasonable defaults
0 commit comments