diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-26 13:30:33 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-26 13:53:52 -0700 |
| commit | 3752958e4029e9d9cfb1ff020e92142b53fb810f (patch) | |
| tree | d87fa6b5d90a8df3b9be713860800963ec5982c4 /src/libstd/macros.rs | |
| parent | 557d4346a26266d2eb13f6b0adf106b8873b0da1 (diff) | |
| download | rust-3752958e4029e9d9cfb1ff020e92142b53fb810f.tar.gz rust-3752958e4029e9d9cfb1ff020e92142b53fb810f.zip | |
syntax: Remove support for #[should_fail]
This attribute has been deprecated in favor of #[should_panic]. This also updates rustdoc to no longer accept the `should_fail` directive and instead renames it to `should_panic`.
Diffstat (limited to 'src/libstd/macros.rs')
| -rw-r--r-- | src/libstd/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 1681ed4282f..52492a019a2 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -28,7 +28,7 @@ /// /// # Examples /// -/// ```should_fail +/// ```should_panic /// # #![allow(unreachable_code)] /// panic!(); /// panic!("this is a terrible mistake!"); |
