Fix compilation with rust nightly (613e57b44) and syntex 0.7.0
This commit is contained in:
parent
4e50c56542
commit
ac3a3e922f
@ -24,11 +24,11 @@ pub fn expand_derive_deserialize(
|
|||||||
cx: &mut ExtCtxt,
|
cx: &mut ExtCtxt,
|
||||||
span: Span,
|
span: Span,
|
||||||
meta_item: &MetaItem,
|
meta_item: &MetaItem,
|
||||||
annotatable: Annotatable,
|
annotatable: &Annotatable,
|
||||||
push: &mut FnMut(Annotatable)
|
push: &mut FnMut(Annotatable)
|
||||||
) {
|
) {
|
||||||
let item = match annotatable {
|
let item = match *annotatable {
|
||||||
Annotatable::Item(item) => item,
|
Annotatable::Item(ref item) => item,
|
||||||
_ => {
|
_ => {
|
||||||
cx.span_err(
|
cx.span_err(
|
||||||
meta_item.span,
|
meta_item.span,
|
||||||
|
@ -19,11 +19,11 @@ pub fn expand_derive_serialize(
|
|||||||
cx: &mut ExtCtxt,
|
cx: &mut ExtCtxt,
|
||||||
span: Span,
|
span: Span,
|
||||||
meta_item: &MetaItem,
|
meta_item: &MetaItem,
|
||||||
annotatable: Annotatable,
|
annotatable: &Annotatable,
|
||||||
push: &mut FnMut(Annotatable)
|
push: &mut FnMut(Annotatable)
|
||||||
) {
|
) {
|
||||||
let item = match annotatable {
|
let item = match *annotatable {
|
||||||
Annotatable::Item(item) => item,
|
Annotatable::Item(ref item) => item,
|
||||||
_ => {
|
_ => {
|
||||||
cx.span_err(
|
cx.span_err(
|
||||||
meta_item.span,
|
meta_item.span,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user