Skip to content

Commit 1904b33

Browse files
Add E0498 error explanation
1 parent e9ac440 commit 1904b33

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/librustc/diagnostics.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,22 @@ It is not possible to use stability attributes outside of the standard library.
19971997
Also, for now, it is not possible to write deprecation messages either.
19981998
"##,
19991999

2000+
E0498: r##"
2001+
A plugin attribute was incorrectly used. Erroneous code example:
2002+
2003+
```
2004+
#![feature(plugin)]
2005+
#![plugin="foo")] // error: malformed plugin attribute
2006+
```
2007+
2008+
The plugin name must be written without quotes and within parenthesis. Example:
2009+
2010+
```
2011+
#![feature(plugin)]
2012+
#![plugin(foo)] // ok!
2013+
```
2014+
"##,
2015+
20002016
E0517: r##"
20012017
This error indicates that a `#[repr(..)]` attribute was placed on an unsupported
20022018
item.
@@ -2070,6 +2086,7 @@ If you wish to apply this attribute to all methods in an impl, manually annotate
20702086
each method; it is not possible to annotate the entire impl with an `#[inline]`
20712087
attribute.
20722088
"##,
2089+
20732090
}
20742091

20752092

@@ -2122,4 +2139,5 @@ register_diagnostics! {
21222139
E0491, // in type `..`, reference has a longer lifetime than the data it...
21232140
E0492, // cannot borrow a constant which contains interior mutability
21242141
E0495, // cannot infer an appropriate lifetime due to conflicting requirements
2142+
E0514, // metadata version mismatch
21252143
}

0 commit comments

Comments
 (0)