66#[ stable( feature = "core" , since = "1.6.0" ) ]
77macro_rules! panic {
88 ( ) => (
9- panic!( "explicit panic" )
9+ $crate :: panic!( "explicit panic" )
1010 ) ;
1111 ( $msg: expr) => ( {
1212 $crate:: panicking:: panic( & ( $msg, file!( ) , line!( ) , __rust_unstable_column!( ) ) )
1313 } ) ;
1414 ( $msg: expr, ) => (
15- panic!( $msg)
15+ $crate :: panic!( $msg)
1616 ) ;
1717 ( $fmt: expr, $( $arg: tt) +) => ( {
1818 $crate:: panicking:: panic_fmt( format_args!( $fmt, $( $arg) * ) ,
@@ -58,7 +58,7 @@ macro_rules! assert_eq {
5858 }
5959 } ) ;
6060 ( $left: expr, $right: expr, ) => ( {
61- assert_eq!( $left, $right)
61+ $crate :: assert_eq!( $left, $right)
6262 } ) ;
6363 ( $left: expr, $right: expr, $( $arg: tt) +) => ( {
6464 match ( & ( $left) , & ( $right) ) {
@@ -115,7 +115,7 @@ macro_rules! assert_ne {
115115 }
116116 } ) ;
117117 ( $left: expr, $right: expr, ) => {
118- assert_ne!( $left, $right)
118+ $crate :: assert_ne!( $left, $right)
119119 } ;
120120 ( $left: expr, $right: expr, $( $arg: tt) +) => ( {
121121 match ( & ( $left) , & ( $right) ) {
@@ -208,7 +208,7 @@ macro_rules! debug_assert {
208208#[ macro_export]
209209#[ stable( feature = "rust1" , since = "1.0.0" ) ]
210210macro_rules! debug_assert_eq {
211- ( $( $arg: tt) * ) => ( if cfg!( debug_assertions) { assert_eq!( $( $arg) * ) ; } )
211+ ( $( $arg: tt) * ) => ( if cfg!( debug_assertions) { $crate :: assert_eq!( $( $arg) * ) ; } )
212212}
213213
214214/// Asserts that two expressions are not equal to each other.
@@ -235,7 +235,7 @@ macro_rules! debug_assert_eq {
235235#[ macro_export]
236236#[ stable( feature = "assert_ne" , since = "1.13.0" ) ]
237237macro_rules! debug_assert_ne {
238- ( $( $arg: tt) * ) => ( if cfg!( debug_assertions) { assert_ne!( $( $arg) * ) ; } )
238+ ( $( $arg: tt) * ) => ( if cfg!( debug_assertions) { $crate :: assert_ne!( $( $arg) * ) ; } )
239239}
240240
241241/// Unwraps a result or propagates its error.
@@ -310,7 +310,7 @@ macro_rules! r#try {
310310 return $crate:: result:: Result :: Err ( $crate:: convert:: From :: from( err) )
311311 }
312312 } ) ;
313- ( $expr: expr, ) => ( r#try!( $expr) ) ;
313+ ( $expr: expr, ) => ( $crate :: r#try!( $expr) ) ;
314314}
315315
316316/// Writes formatted data into a buffer.
@@ -425,10 +425,10 @@ macro_rules! write {
425425#[ allow_internal_unstable( format_args_nl) ]
426426macro_rules! writeln {
427427 ( $dst: expr) => (
428- write!( $dst, "\n " )
428+ $crate :: write!( $dst, "\n " )
429429 ) ;
430430 ( $dst: expr, ) => (
431- writeln!( $dst)
431+ $crate :: writeln!( $dst)
432432 ) ;
433433 ( $dst: expr, $( $arg: tt) * ) => (
434434 $dst. write_fmt( format_args_nl!( $( $arg) * ) )
@@ -494,10 +494,10 @@ macro_rules! unreachable {
494494 panic!( "internal error: entered unreachable code" )
495495 } ) ;
496496 ( $msg: expr) => ( {
497- unreachable!( "{}" , $msg)
497+ $crate :: unreachable!( "{}" , $msg)
498498 } ) ;
499499 ( $msg: expr, ) => ( {
500- unreachable!( $msg)
500+ $crate :: unreachable!( $msg)
501501 } ) ;
502502 ( $fmt: expr, $( $arg: tt) * ) => ( {
503503 panic!( concat!( "internal error: entered unreachable code: " , $fmt) , $( $arg) * )
0 commit comments