@@ -450,7 +450,7 @@ macro_rules! writeln {
450
450
/// The unsafe counterpart of this macro is the [`unreachable_unchecked`] function, which
451
451
/// will cause undefined behavior if the code is reached.
452
452
///
453
- /// [`panic!`]: ../std/macro.panic.html
453
+ /// [`panic!`]: ../std/macro.panic.html
454
454
/// [`unreachable_unchecked`]: ../std/hint/fn.unreachable_unchecked.html
455
455
/// [`std::hint`]: ../std/hint/index.html
456
456
///
@@ -459,6 +459,7 @@ macro_rules! writeln {
459
459
/// This will always [`panic!`]
460
460
///
461
461
/// [`panic!`]: ../std/macro.panic.html
462
+ ///
462
463
/// # Examples
463
464
///
464
465
/// Match arms:
@@ -510,6 +511,9 @@ macro_rules! unreachable {
510
511
/// code type-check, or if you're implementing a trait that requires multiple
511
512
/// methods, and you're only planning on using one of them.
512
513
///
514
+ /// There is no difference between `unimplemented!` and `todo!` apart from the
515
+ /// name.
516
+ ///
513
517
/// # Panics
514
518
///
515
519
/// This will always [panic!](macro.panic.html)
@@ -564,8 +568,10 @@ macro_rules! unimplemented {
564
568
/// Indicates unfinished code.
565
569
///
566
570
/// This can be useful if you are prototyping and are just looking to have your
567
- /// code typecheck. `todo!` works exactly like `unimplemented!`. The only
568
- /// difference between the two macros is the name.
571
+ /// code typecheck.
572
+ ///
573
+ /// There is no difference between `unimplemented!` and `todo!` apart from the
574
+ /// name.
569
575
///
570
576
/// # Panics
571
577
///
@@ -587,8 +593,6 @@ macro_rules! unimplemented {
587
593
/// `baz()`, so we can use `todo!`:
588
594
///
589
595
/// ```
590
- /// #![feature(todo_macro)]
591
- ///
592
596
/// # trait Foo {
593
597
/// # fn bar(&self);
594
598
/// # fn baz(&self);
@@ -614,7 +618,7 @@ macro_rules! unimplemented {
614
618
/// }
615
619
/// ```
616
620
#[ macro_export]
617
- #[ unstable ( feature = "todo_macro" , issue = "59277 " ) ]
621
+ #[ stable ( feature = "todo_macro" , since = "1.37.0 " ) ]
618
622
macro_rules! todo {
619
623
( ) => ( panic!( "not yet implemented" ) ) ;
620
624
( $( $arg: tt) +) => ( panic!( "not yet implemented: {}" , format_args!( $( $arg) * ) ) ) ;
0 commit comments