Fix tests for 1.0.90 syn
version
This commit is contained in:
parent
032ff3f4a6
commit
4182a8cf2b
2 changed files with 5 additions and 7 deletions
|
@ -21,7 +21,7 @@ proc-macro = true
|
|||
proc-macro-error = "1.0.2"
|
||||
proc-macro2 = "1.0.1"
|
||||
quote = "1.0.3"
|
||||
syn = { version = "1.0.60", features = ["extra-traits", "full", "parsing", "visit", "visit-mut"], default-features = false }
|
||||
syn = { version = "1.0.90", features = ["extra-traits", "full", "parsing", "visit", "visit-mut"], default-features = false }
|
||||
url = "2.0"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -208,12 +208,10 @@ impl TypeExt for syn::Type {
|
|||
T::BareFn(_) | T::Infer(_) | T::Macro(_) | T::Never(_) | T::Verbatim(_) => {}
|
||||
|
||||
// Following the syn idiom for exhaustive matching on Type:
|
||||
// https://github.com/dtolnay/syn/blob/master/src/ty.rs#L66-L88
|
||||
#[cfg(test)]
|
||||
T::__TestExhaustive(_) => unimplemented!(),
|
||||
|
||||
#[cfg(not(test))]
|
||||
_ => {}
|
||||
// https://github.com/dtolnay/syn/blob/1.0.90/src/ty.rs#L67-L87
|
||||
// TODO: #[cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
|
||||
// https://github.com/rust-lang/rust/issues/89554
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue