We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6644a03 commit fe13b86Copy full SHA for fe13b86
src/libcore/condition.rs
@@ -192,4 +192,25 @@ mod test {
192
193
assert!(trapped);
194
}
195
+
196
+ // Issue #6009
197
+ mod m {
198
+ condition! {
199
+ sadness: int -> int;
200
+ }
201
202
+ mod n {
203
+ use super::sadness;
204
205
+ #[test]
206
+ fn test_conditions_are_public() {
207
+ let mut trapped = false;
208
+ do sadness::cond.trap(|_| {
209
+ 0
210
+ }).in {
211
+ sadness::cond.raise(0);
212
213
214
215
216
src/libsyntax/ext/expand.rs
@@ -475,7 +475,7 @@ pub fn core_macros() -> ~str {
475
476
{ $c:ident: $in:ty -> $out:ty; } => {
477
478
- mod $c {
+ pub mod $c {
479
fn key(_x: @::core::condition::Handler<$in,$out>) { }
480
481
pub static cond :
0 commit comments