Skip to content
This repository was archived by the owner on Oct 10, 2019. It is now read-only.

Commit f8a33d6

Browse files
committed
Update to latest nighty
Closes #1
1 parent b6d2269 commit f8a33d6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

postgres-derive-codegen/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ with-syntex = ["syntex", "syntex_syntax"]
1919
syntex = { version = "0.36", optional = true }
2020

2121
[dependencies]
22-
syntex = { version = "0.36", optional = true }
23-
syntex_syntax = { version = "0.36", optional = true }
22+
syntex = { version = "0.44", optional = true }
23+
syntex_syntax = { version = "0.44", optional = true }

postgres-derive-codegen/src/overrides.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use syntax::ast::{Attribute, LitKind, MetaItemKind};
2-
use syntax::attr::AttrMetaMethods;
1+
use syntax::ast::{Attribute, LitKind, MetaItemKind, NestedMetaItemKind};
32
use syntax::ext::base::ExtCtxt;
43
use syntax::parse::token::InternedString;
54

@@ -21,6 +20,13 @@ pub fn get_overrides(ctx: &mut ExtCtxt, attrs: &[Attribute]) -> Overrides {
2120
};
2221

2322
for item in list {
23+
let item = match item.node {
24+
NestedMetaItemKind::MetaItem(ref item) => item,
25+
_ => {
26+
ctx.span_err(item.span, "expected a meta item");
27+
continue;
28+
}
29+
};
2430
match item.node {
2531
MetaItemKind::NameValue(ref key, ref value) => {
2632
if *key != "name" {

0 commit comments

Comments
 (0)