@@ -465,7 +465,7 @@ macro_rules! writeln {
465
465
/// The unsafe counterpart of this macro is the [`unreachable_unchecked`] function, which
466
466
/// will cause undefined behavior if the code is reached.
467
467
///
468
- /// [`panic!`]: ../std/macro.panic.html
468
+ /// [`panic!`]: ../std/macro.panic.html
469
469
/// [`unreachable_unchecked`]: ../std/hint/fn.unreachable_unchecked.html
470
470
/// [`std::hint`]: ../std/hint/index.html
471
471
///
@@ -474,6 +474,7 @@ macro_rules! writeln {
474
474
/// This will always [`panic!`]
475
475
///
476
476
/// [`panic!`]: ../std/macro.panic.html
477
+ ///
477
478
/// # Examples
478
479
///
479
480
/// Match arms:
@@ -525,6 +526,9 @@ macro_rules! unreachable {
525
526
/// code type-check, or if you're implementing a trait that requires multiple
526
527
/// methods, and you're only planning on using one of them.
527
528
///
529
+ /// There is no difference between `unimplemented!` and `todo!` apart from the
530
+ /// name.
531
+ ///
528
532
/// # Panics
529
533
///
530
534
/// This will always [panic!](macro.panic.html)
@@ -579,8 +583,10 @@ macro_rules! unimplemented {
579
583
/// Indicates unfinished code.
580
584
///
581
585
/// This can be useful if you are prototyping and are just looking to have your
582
- /// code typecheck. `todo!` works exactly like `unimplemented!`. The only
583
- /// difference between the two macros is the name.
586
+ /// code typecheck.
587
+ ///
588
+ /// There is no difference between `unimplemented!` and `todo!` apart from the
589
+ /// name.
584
590
///
585
591
/// # Panics
586
592
///
@@ -602,8 +608,6 @@ macro_rules! unimplemented {
602
608
/// `baz()`, so we can use `todo!`:
603
609
///
604
610
/// ```
605
- /// #![feature(todo_macro)]
606
- ///
607
611
/// # trait Foo {
608
612
/// # fn bar(&self);
609
613
/// # fn baz(&self);
@@ -629,7 +633,7 @@ macro_rules! unimplemented {
629
633
/// }
630
634
/// ```
631
635
#[ macro_export]
632
- #[ unstable ( feature = "todo_macro" , issue = "59277 " ) ]
636
+ #[ stable ( feature = "todo_macro" , since = "1.39.0 " ) ]
633
637
macro_rules! todo {
634
638
( ) => ( panic!( "not yet implemented" ) ) ;
635
639
( $( $arg: tt) +) => ( panic!( "not yet implemented: {}" , $crate:: format_args!( $( $arg) +) ) ) ;
0 commit comments