From c3fc863f27dbce61babc1932f2a5be4e9e50a40c Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 15 Jun 2026 22:34:45 +0200 Subject: [PATCH] Make `proc_macro::ConversionErrorKind` non exhaustive --- library/proc_macro/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index e335fe1c70264..98b00c600f5ef 100644 --- a/library/proc_macro/src/lib.rs +++ b/library/proc_macro/src/lib.rs @@ -197,6 +197,7 @@ impl fmt::Display for EscapeError { /// Errors returned when trying to retrieve a literal unescaped value. #[unstable(feature = "proc_macro_value", issue = "136652")] #[derive(Debug, PartialEq, Eq)] +#[non_exhaustive] pub enum ConversionErrorKind { /// The literal failed to be escaped, take a look at [`EscapeError`] for more information. FailedToUnescape(EscapeError),