File tree 7 files changed +19
-20
lines changed
7 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -14,33 +14,33 @@ pub use std::path::Path;
14
14
pub use package_id:: PkgId ;
15
15
16
16
condition ! {
17
- bad_path: ( Path , ~str ) -> Path ;
17
+ pub bad_path: ( Path , ~str ) -> Path ;
18
18
}
19
19
20
20
condition ! {
21
- nonexistent_package: ( PkgId , ~str ) -> Path ;
21
+ pub nonexistent_package: ( PkgId , ~str ) -> Path ;
22
22
}
23
23
24
24
condition ! {
25
- copy_failed: ( Path , Path ) -> ( ) ;
25
+ pub copy_failed: ( Path , Path ) -> ( ) ;
26
26
}
27
27
28
28
condition ! {
29
- missing_pkg_files: ( PkgId ) -> ( ) ;
29
+ pub missing_pkg_files: ( PkgId ) -> ( ) ;
30
30
}
31
31
32
32
condition ! {
33
- bad_pkg_id: ( Path , ~str ) -> PkgId ;
33
+ pub bad_pkg_id: ( Path , ~str ) -> PkgId ;
34
34
}
35
35
36
36
condition ! {
37
- no_rust_path: ( ~str ) -> Path ;
37
+ pub no_rust_path: ( ~str ) -> Path ;
38
38
}
39
39
40
40
condition ! {
41
- not_a_workspace: ( ~str ) -> Path ;
41
+ pub not_a_workspace: ( ~str ) -> Path ;
42
42
}
43
43
44
44
condition ! {
45
- failed_to_create_temp_dir: ( ~str ) -> Path ;
45
+ pub failed_to_create_temp_dir: ( ~str ) -> Path ;
46
46
}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ pub struct PkgSrc {
34
34
}
35
35
36
36
condition ! {
37
+ // #6009: should this be pub or not, when #8215 is fixed?
37
38
build_err: ( ~str ) -> ( ) ;
38
39
}
39
40
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ pub enum NullByteResolution {
28
28
}
29
29
30
30
condition ! {
31
- // this should be &[u8] but there's a lifetime issue
31
+ // This should be &[u8] but there's a lifetime issue (#5370).
32
32
// NOTE: this super::NullByteResolution should be NullByteResolution
33
- // Change this next time the snapshot it updated.
34
- null_byte: ( ~[ u8 ] ) -> super :: NullByteResolution ;
33
+ // Change this next time the snapshot is updated.
34
+ pub null_byte: ( ~[ u8 ] ) -> super :: NullByteResolution ;
35
35
}
36
36
37
37
/// The representation of a C String.
Original file line number Diff line number Diff line change @@ -193,7 +193,8 @@ mod test {
193
193
// Issue #6009
194
194
mod m {
195
195
condition ! {
196
- sadness: int -> int;
196
+ // #6009, #8215: should this truly need a `pub` for access from n?
197
+ pub sadness: int -> int;
197
198
}
198
199
199
200
mod n {
Original file line number Diff line number Diff line change @@ -384,19 +384,17 @@ impl ToStr for IoErrorKind {
384
384
// XXX: Can't put doc comments on macros
385
385
// Raised by `I/O` operations on error.
386
386
condition ! {
387
- // FIXME (#6009): uncomment `pub` after expansion support lands.
388
387
// NOTE: this super::IoError should be IoError
389
- // Change this next time the snapshot it updated.
390
- /* pub*/ io_error: super :: IoError -> ( ) ;
388
+ // Change this next time the snapshot is updated.
389
+ pub io_error: super :: IoError -> ( ) ;
391
390
}
392
391
393
392
// XXX: Can't put doc comments on macros
394
393
// Raised by `read` on error
395
394
condition ! {
396
- // FIXME (#6009): uncomment `pub` after expansion support lands.
397
395
// NOTE: this super::IoError should be IoError
398
396
// Change this next time the snapshot it updated.
399
- /* pub*/ read_error: super :: IoError -> ( ) ;
397
+ pub read_error: super :: IoError -> ( ) ;
400
398
}
401
399
402
400
pub trait Reader {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Section: Conditions
43
43
*/
44
44
45
45
condition ! {
46
- not_utf8: ( ~str ) -> ~str ;
46
+ pub not_utf8: ( ~str ) -> ~str ;
47
47
}
48
48
49
49
/*
Original file line number Diff line number Diff line change @@ -909,8 +909,7 @@ pub fn std_macros() -> @str {
909
909
910
910
{ $c: ident: $input: ty -> $out: ty; } => {
911
911
912
- // FIXME (#6009): remove mod's `pub` below once variant above lands.
913
- pub mod $c {
912
+ mod $c {
914
913
#[ allow( unused_imports) ] ;
915
914
#[ allow( non_uppercase_statics) ] ;
916
915
You can’t perform that action at this time.
0 commit comments