Comments updated to keep the consistency

This commit is contained in:
Jesus Rubio 2021-02-06 19:41:03 +01:00
parent 9be5d2d01f
commit 023c6d2e04

View File

@ -13,9 +13,9 @@ fn _stable_fn() {}
fn _stable_const_fn() {}
#[stable(feature = "_deprecated_fn", since = "0.1.0")]
#[rustc_deprecated( // invalid
#[rustc_deprecated(
reason = "explanation for deprecation"
)]
)] // invalid
fn _deprecated_fn() {}
```
@ -25,17 +25,17 @@ To fix the issue you need to provide the `since` field.
#![feature(staged_api)]
#![stable(since = "1.0.0", feature = "test")]
#[stable(feature = "_stable_fn", since = "1.0.0")]
#[stable(feature = "_stable_fn", since = "1.0.0")] // ok!
fn _stable_fn() {}
#[rustc_const_stable(feature = "_stable_const_fn", since = "1.0.0")]
#[rustc_const_stable(feature = "_stable_const_fn", since = "1.0.0")] // ok!
fn _stable_const_fn() {}
#[stable(feature = "_deprecated_fn", since = "0.1.0")]
#[rustc_deprecated(
since = "1.0.0",
reason = "explanation for deprecation"
)]
)] // ok!
fn _deprecated_fn() {}
```