Update generated code

This commit is contained in:
David Tolnay 2019-07-29 07:07:53 -07:00
parent 07d4aac445
commit a1d88a0e5d
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
5 changed files with 9 additions and 53 deletions

View File

@ -494,10 +494,6 @@ pub trait Fold {
fn fold_lit_str(&mut self, i: LitStr) -> LitStr {
fold_lit_str(self, i)
}
#[cfg(any(feature = "derive", feature = "full"))]
fn fold_lit_verbatim(&mut self, i: LitVerbatim) -> LitVerbatim {
fold_lit_verbatim(self, i)
}
#[cfg(feature = "full")]
fn fold_local(&mut self, i: Local) -> Local {
fold_local(self, i)
@ -2116,7 +2112,7 @@ pub fn fold_lit<V: Fold + ?Sized>(_visitor: &mut V, _i: Lit) -> Lit {
Lit::Int(_binding_0) => Lit::Int(_visitor.fold_lit_int(_binding_0)),
Lit::Float(_binding_0) => Lit::Float(_visitor.fold_lit_float(_binding_0)),
Lit::Bool(_binding_0) => Lit::Bool(_visitor.fold_lit_bool(_binding_0)),
Lit::Verbatim(_binding_0) => Lit::Verbatim(_visitor.fold_lit_verbatim(_binding_0)),
Lit::Verbatim(_binding_0) => Lit::Verbatim(_binding_0),
}
}
#[cfg(any(feature = "derive", feature = "full"))]
@ -2168,10 +2164,6 @@ pub fn fold_lit_str<V: Fold + ?Sized>(_visitor: &mut V, _i: LitStr) -> LitStr {
_i.set_span(span);
_i
}
#[cfg(any(feature = "derive", feature = "full"))]
pub fn fold_lit_verbatim<V: Fold + ?Sized>(_visitor: &mut V, _i: LitVerbatim) -> LitVerbatim {
LitVerbatim { token: _i.token }
}
#[cfg(feature = "full")]
pub fn fold_local<V: Fold + ?Sized>(_visitor: &mut V, _i: Local) -> Local {
Local {

View File

@ -495,10 +495,6 @@ pub trait Visit<'ast> {
fn visit_lit_str(&mut self, i: &'ast LitStr) {
visit_lit_str(self, i)
}
#[cfg(any(feature = "derive", feature = "full"))]
fn visit_lit_verbatim(&mut self, i: &'ast LitVerbatim) {
visit_lit_verbatim(self, i)
}
#[cfg(feature = "full")]
fn visit_local(&mut self, i: &'ast Local) {
visit_local(self, i)
@ -2416,7 +2412,7 @@ pub fn visit_lit<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Lit)
_visitor.visit_lit_bool(_binding_0);
}
Lit::Verbatim(ref _binding_0) => {
_visitor.visit_lit_verbatim(_binding_0);
skip!(_binding_0);
}
}
}
@ -2437,10 +2433,6 @@ pub fn visit_lit_float<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'as
pub fn visit_lit_int<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitInt) {}
#[cfg(any(feature = "derive", feature = "full"))]
pub fn visit_lit_str<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitStr) {}
#[cfg(any(feature = "derive", feature = "full"))]
pub fn visit_lit_verbatim<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast LitVerbatim) {
skip!(_i.token);
}
#[cfg(feature = "full")]
pub fn visit_local<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast Local) {
for it in &_i.attrs {

View File

@ -498,10 +498,6 @@ pub trait VisitMut {
fn visit_lit_str_mut(&mut self, i: &mut LitStr) {
visit_lit_str_mut(self, i)
}
#[cfg(any(feature = "derive", feature = "full"))]
fn visit_lit_verbatim_mut(&mut self, i: &mut LitVerbatim) {
visit_lit_verbatim_mut(self, i)
}
#[cfg(feature = "full")]
fn visit_local_mut(&mut self, i: &mut Local) {
visit_local_mut(self, i)
@ -2365,7 +2361,7 @@ pub fn visit_lit_mut<V: VisitMut + ?Sized>(_visitor: &mut V, _i: &mut Lit) {
_visitor.visit_lit_bool_mut(_binding_0);
}
Lit::Verbatim(ref mut _binding_0) => {
_visitor.visit_lit_verbatim_mut(_binding_0);
skip!(_binding_0);
}
}
}
@ -2386,10 +2382,6 @@ pub fn visit_lit_float_mut<V: VisitMut + ?Sized>(_visitor: &mut V, _i: &mut LitF
pub fn visit_lit_int_mut<V: VisitMut + ?Sized>(_visitor: &mut V, _i: &mut LitInt) {}
#[cfg(any(feature = "derive", feature = "full"))]
pub fn visit_lit_str_mut<V: VisitMut + ?Sized>(_visitor: &mut V, _i: &mut LitStr) {}
#[cfg(any(feature = "derive", feature = "full"))]
pub fn visit_lit_verbatim_mut<V: VisitMut + ?Sized>(_visitor: &mut V, _i: &mut LitVerbatim) {
skip!(_i.token);
}
#[cfg(feature = "full")]
pub fn visit_local_mut<V: VisitMut + ?Sized>(_visitor: &mut V, _i: &mut Local) {
for it in &mut _i.attrs {

View File

@ -3552,7 +3552,7 @@
],
"Verbatim": [
{
"syn": "LitVerbatim"
"proc_macro2": "Literal"
}
]
}
@ -3628,20 +3628,6 @@
]
}
},
{
"ident": "LitVerbatim",
"features": {
"any": [
"derive",
"full"
]
},
"fields": {
"token": {
"proc_macro2": "Literal"
}
}
},
{
"ident": "Local",
"features": {

View File

@ -3599,9 +3599,11 @@ impl Debug for Lite<syn::Lit> {
formatter.finish()
}
syn::Lit::Verbatim(_val) => {
let mut formatter = formatter.debug_struct("Lit::Verbatim");
formatter.field("token", Lite(&_val.token));
formatter.finish()
formatter.write_str("Verbatim")?;
formatter.write_str("(")?;
Debug::fmt(Lite(_val), formatter)?;
formatter.write_str(")")?;
Ok(())
}
}
}
@ -3650,14 +3652,6 @@ impl Debug for Lite<syn::LitStr> {
write!(formatter, "{:?}", _val.value())
}
}
impl Debug for Lite<syn::LitVerbatim> {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
let _val = &self.value;
let mut formatter = formatter.debug_struct("LitVerbatim");
formatter.field("token", Lite(&_val.token));
formatter.finish()
}
}
impl Debug for Lite<syn::Local> {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
let _val = &self.value;