diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-05 14:44:37 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-07 13:00:52 -0700 |
| commit | de7d1431760c788e5a471194fa85675033d0ed72 (patch) | |
| tree | 2ece65f6d02061b9ed83dc19a20dc2a5401374d0 /src/libsyntax | |
| parent | 439e2770be6aec41a3961235305787a78d47fbdd (diff) | |
| download | rust-de7d1431760c788e5a471194fa85675033d0ed72.tar.gz rust-de7d1431760c788e5a471194fa85675033d0ed72.zip | |
Fix existing privacy/visibility violations
This commit fixes all of the fallout of the previous commit which is an attempt to refine privacy. There were a few unfortunate leaks which now must be plugged, and the most horrible one is the current `shouldnt_be_public` module now inside `std::rt`. I think that this either needs a slight reorganization of the runtime, or otherwise it needs to just wait for the external users of these modules to get replaced with their `rt` implementations. Other fixes involve making things pub which should be pub, and otherwise updating error messages that now reference privacy instead of referencing an "unresolved name" (yay!).
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 926d1997465..d9e24e045ff 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -964,7 +964,7 @@ mod test { use super::*; use std::io; use opt_vec; - use std::hash::HashMap; + use std::hashmap::HashMap; fn ident_to_segment(id : &Ident) -> PathSegment { PathSegment{identifier:id.clone(), lifetime: None, types: opt_vec::Empty} diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 39540deb38f..1039ec07804 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1551,7 +1551,8 @@ mod test { let varrefs = @mut ~[]; visit::walk_crate(&mut new_path_finder(varrefs), &renamed_ast, ()); match varrefs { - @[Path{segments:[ref seg],_}] => assert_eq!(mtwt_resolve(seg.identifier),a2_name), + @[ast::Path{segments:[ref seg],_}] => + assert_eq!(mtwt_resolve(seg.identifier),a2_name), _ => assert_eq!(0,1) } @@ -1565,7 +1566,8 @@ mod test { let varrefs = @mut ~[]; visit::walk_crate(&mut new_path_finder(varrefs), &double_renamed, ()); match varrefs { - @[Path{segments:[ref seg],_}] => assert_eq!(mtwt_resolve(seg.identifier),a3_name), + @[ast::Path{segments:[ref seg],_}] => + assert_eq!(mtwt_resolve(seg.identifier),a3_name), _ => assert_eq!(0,1) } } |
