Skip to content

Commit 3ecdd65

Browse files
Rollup merge of rust-lang#157935 - GuillaumeGomez:ConversionErrorKind-non-exhaustive, r=traviscross,Mark-Simulacrum
Make `proc_macro::ConversionErrorKind` non exhaustive Needed for rust-lang#151973. r? @traviscross
2 parents 43b2a60 + c3fc863 commit 3ecdd65

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

library/proc_macro/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ impl fmt::Display for EscapeError {
197197
/// Errors returned when trying to retrieve a literal unescaped value.
198198
#[unstable(feature = "proc_macro_value", issue = "136652")]
199199
#[derive(Debug, PartialEq, Eq)]
200+
#[non_exhaustive]
200201
pub enum ConversionErrorKind {
201202
/// The literal failed to be escaped, take a look at [`EscapeError`] for more information.
202203
FailedToUnescape(EscapeError),

0 commit comments

Comments
 (0)