From d53cfd225a4e2b671b2b40b71725394c24fb1761 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 18 Sep 2012 14:51:40 -0700 Subject: core: Move Exclusive and SharedMutableState to the private mod --- src/test/compile-fail/noncopyable-match-pattern.rs | 2 +- src/test/run-pass/alt-ref-binding-in-guard-3256.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test') diff --git a/src/test/compile-fail/noncopyable-match-pattern.rs b/src/test/compile-fail/noncopyable-match-pattern.rs index 19ab57d537c..29cfe9423ff 100644 --- a/src/test/compile-fail/noncopyable-match-pattern.rs +++ b/src/test/compile-fail/noncopyable-match-pattern.rs @@ -1,5 +1,5 @@ fn main() { - let x = Some(unsafe::exclusive(false)); + let x = Some(private::exclusive(false)); match x { Some(copy z) => { //~ ERROR copying a noncopyable value do z.with |b| { assert !*b; } diff --git a/src/test/run-pass/alt-ref-binding-in-guard-3256.rs b/src/test/run-pass/alt-ref-binding-in-guard-3256.rs index d3181a6b9cc..0140998355a 100644 --- a/src/test/run-pass/alt-ref-binding-in-guard-3256.rs +++ b/src/test/run-pass/alt-ref-binding-in-guard-3256.rs @@ -1,5 +1,5 @@ fn main() { - let x = Some(unsafe::exclusive(true)); + let x = Some(private::exclusive(true)); match move x { Some(ref z) if z.with(|b| *b) => { do z.with |b| { assert *b; } -- cgit 1.4.1-3-g733a5