@@ -48,26 +48,28 @@ pub use crate::result::Result::{self, Err, Ok};
4848#[ doc( no_inline) ]
4949pub use core:: prelude:: v1:: {
5050 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,
5252 writeln, Clone , Copy , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ,
5353} ;
5454
5555#[ stable( feature = "builtin_macro_prelude" , since = "1.38.0" ) ]
5656#[ doc( no_inline) ]
5757pub 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
5959} ;
6060
6161// These macros needs special handling, so that we don't export it *and* the modules of the same
6262// name. We only want the macro in the prelude.
6363mod ambiguous_macro_only_std {
6464 #[ allow( hidden_glob_reexports) ]
6565 mod vec { }
66+ #[ allow( hidden_glob_reexports) ]
67+ mod panic { }
6668 #[ stable( feature = "builtin_macro_prelude" , since = "1.38.0" ) ]
6769 pub use crate :: * ;
6870}
6971#[ 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 } ;
7173
7274#[ unstable( feature = "cfg_match" , issue = "115585" ) ]
7375#[ doc( no_inline) ]
0 commit comments