File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
//! Failure support for libcore
12
12
13
- #![ allow( dead_code) ]
13
+ #![ allow( dead_code, missing_doc ) ]
14
14
15
15
#[ cfg( not( test) ) ]
16
16
use str:: raw:: c_str_to_static_slice;
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ pub mod atomics;
106
106
pub mod bool;
107
107
pub mod cell;
108
108
pub mod char;
109
+ pub mod failure;
109
110
pub mod finally;
110
111
pub mod iter;
111
112
pub mod option;
@@ -118,13 +119,15 @@ pub mod tuple;
118
119
#[ cfg( stage0, not( test) ) ]
119
120
pub mod owned;
120
121
121
- mod failure;
122
-
123
122
// FIXME: this module should not exist. Once owned allocations are no longer a
124
123
// language type, this module can move outside to the owned allocation
125
124
// crate.
126
125
mod should_not_exist;
127
126
127
+ mod core {
128
+ pub use failure;
129
+ }
130
+
128
131
mod std {
129
132
pub use clone;
130
133
pub use cmp;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ macro_rules! fail(
17
17
fail!( "explicit failure" )
18
18
) ;
19
19
( $msg: expr) => (
20
- :: failure:: begin_unwind( $msg, file!( ) , line!( ) )
20
+ :: core :: failure:: begin_unwind( $msg, file!( ) , line!( ) )
21
21
) ;
22
22
)
23
23
You can’t perform that action at this time.
0 commit comments