diff --git a/Cargo.toml b/Cargo.toml index 806b6f6..05a2abd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,13 +19,13 @@ verbatim = ["syn/parsing"] [dependencies] proc-macro2 = { version = "1.0.80", default-features = false } -syn = { version = "2.0.104", default-features = false, features = ["full"] } +syn = { version = "2.0.105", default-features = false, features = ["full"] } [dev-dependencies] indoc = "2" proc-macro2 = { version = "1.0.80", default-features = false } quote = { version = "1.0.35", default-features = false } -syn = { version = "2.0.104", default-features = false, features = ["clone-impls", "extra-traits", "parsing", "printing", "visit-mut"] } +syn = { version = "2.0.105", default-features = false, features = ["clone-impls", "extra-traits", "parsing", "printing", "visit-mut"] } [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] diff --git a/src/ty.rs b/src/ty.rs index 7f92821..36cd568 100644 --- a/src/ty.rs +++ b/src/ty.rs @@ -180,7 +180,6 @@ impl Printer { AnonUnion(AnonUnion), DynStar(DynStar), MutSelf(MutSelf), - NotType(NotType), } struct AnonStruct { @@ -199,10 +198,6 @@ impl Printer { ty: Option, } - struct NotType { - inner: Type, - } - impl Parse for TypeVerbatim { fn parse(input: ParseStream) -> Result { let lookahead = input.lookahead1(); @@ -230,10 +225,6 @@ impl Printer { Some(ty) }; Ok(TypeVerbatim::MutSelf(MutSelf { ty })) - } else if lookahead.peek(Token![!]) { - input.parse::()?; - let inner: Type = input.parse()?; - Ok(TypeVerbatim::NotType(NotType { inner })) } else if lookahead.peek(Token![...]) { input.parse::()?; Ok(TypeVerbatim::Ellipsis) @@ -294,10 +285,6 @@ impl Printer { self.ty(ty); } } - TypeVerbatim::NotType(ty) => { - self.word("!"); - self.ty(&ty.inner); - } } }