diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-08 15:45:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-08 15:45:25 +0200 |
| commit | 7153c9262a76a6464a4f5aef3d45ffcc41dd87b2 (patch) | |
| tree | 9850278c3aba9b1776a055f81d86691262a95a0f /src/libsyntax | |
| parent | 6f211f1539d5762d4b01796749d3c357a65d03e7 (diff) | |
| parent | 62f1fb33ec02d59d5984584fd4d04b0443af632b (diff) | |
| download | rust-7153c9262a76a6464a4f5aef3d45ffcc41dd87b2.tar.gz rust-7153c9262a76a6464a4f5aef3d45ffcc41dd87b2.zip | |
Rollup merge of #64918 - GuillaumeGomez:long-err-explanation-E0551, r=oli-obk
Add long error explanation for E0551 Part of #61137
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/error_codes.rs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/libsyntax/error_codes.rs b/src/libsyntax/error_codes.rs index c0963026945..fc3f095856a 100644 --- a/src/libsyntax/error_codes.rs +++ b/src/libsyntax/error_codes.rs @@ -163,6 +163,25 @@ fn the_banished() {} // ok! ``` "##, +E0551: r##" +An invalid meta-item was used inside an attribute. + +Erroneous code example: + +```compile_fail,E0551 +#[deprecated(note)] // error! +fn i_am_deprecated() {} +``` + +Meta items are the key-value pairs inside of an attribute. To fix this issue, +you need to give a value to the `note` key. Example: + +``` +#[deprecated(note = "because")] // ok! +fn i_am_deprecated() {} +``` +"##, + E0552: r##" A unrecognized representation attribute was used. @@ -473,7 +492,6 @@ features in the `-Z allow_features` flag. // rustc_deprecated attribute must be paired with either stable or unstable // attribute E0549, - E0551, // incorrect meta item E0553, // multiple rustc_const_unstable attributes // E0555, // replaced with a generic attribute input check E0584, // file for module `..` found at both .. and .. |
