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