@@ -48,26 +48,28 @@ pub use crate::result::Result::{self, Err, Ok};
48
48
#[ doc( no_inline) ]
49
49
pub use core:: prelude:: v1:: {
50
50
assert, assert_eq, assert_ne, cfg, column, compile_error, concat, debug_assert, debug_assert_eq, debug_assert_ne, env, file, format_args, include, include_bytes, include_str, line, matches,
51
- module_path, option_env, panic , stringify, todo, r#try, unimplemented, unreachable, write,
51
+ module_path, option_env, stringify, todo, r#try, unimplemented, unreachable, write,
52
52
writeln, Clone , Copy , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ,
53
53
} ;
54
54
55
55
#[ stable( feature = "builtin_macro_prelude" , since = "1.38.0" ) ]
56
56
#[ doc( no_inline) ]
57
57
pub use crate :: {
58
- dbg, eprint, eprintln, format, is_x86_feature_detected, print, println, thread_local,
58
+ dbg, eprint, eprintln, format, is_x86_feature_detected, print, println, thread_local
59
59
} ;
60
60
61
61
// These macros needs special handling, so that we don't export it *and* the modules of the same
62
62
// name. We only want the macro in the prelude.
63
63
mod ambiguous_macro_only_std {
64
64
#[ allow( hidden_glob_reexports) ]
65
65
mod vec { }
66
+ #[ allow( hidden_glob_reexports) ]
67
+ mod panic { }
66
68
#[ stable( feature = "builtin_macro_prelude" , since = "1.38.0" ) ]
67
69
pub use crate :: * ;
68
70
}
69
71
#[ stable( feature = "builtin_macro_prelude" , since = "1.38.0" ) ]
70
- pub use self :: ambiguous_macro_only_std:: vec;
72
+ pub use self :: ambiguous_macro_only_std:: { vec, panic } ;
71
73
72
74
#[ unstable( feature = "cfg_match" , issue = "115585" ) ]
73
75
#[ doc( no_inline) ]
0 commit comments