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`.
This commit is contained in:
parent
557d4346a2
commit
3752958e40
12 changed files with 24 additions and 33 deletions
|
|
@ -352,7 +352,7 @@ Here’s an example of documenting a macro:
|
|||
/// # }
|
||||
/// ```
|
||||
///
|
||||
/// ```should_fail
|
||||
/// ```should_panic
|
||||
/// # #[macro_use] extern crate foo;
|
||||
/// # fn main() {
|
||||
/// panic_unless!(true == false, “I’m broken.”);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue