Skip to content

Commit

Permalink
Correct stability attribute for new LexError impls
Browse files Browse the repository at this point in the history
  • Loading branch information
kinseytamsin committed Mar 11, 2020
1 parent c0c5269 commit f2b22a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libproc_macro/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit f2b22a1

Please sign in to comment.