Correct stability attribute for new LexError impls
This commit is contained in:
parent
c0c526951c
commit
f2b22a136c
1 changed files with 2 additions and 2 deletions
|
|
@ -66,14 +66,14 @@ pub struct LexError {
|
|||
_inner: (),
|
||||
}
|
||||
|
||||
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
|
||||
#[stable(feature = "proc_macro_lexerror_impls", since = "1.44.0")]
|
||||
impl fmt::Display for LexError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str("lex error")
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
|
||||
#[stable(feature = "proc_macro_lexerror_impls", since = "1.44.0")]
|
||||
impl error::Error for LexError {}
|
||||
|
||||
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue