diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-03-24 21:17:27 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-04-06 11:52:16 +0300 |
| commit | 3a30bad6de92fd00f24b8ba9547798cb1afa1ba3 (patch) | |
| tree | 07ccbbb3d1690546c1f0ad75136aafaf08a84e62 /src/librustc_resolve | |
| parent | 303298b1d53186c17b2466ac8678de77ea2a15fb (diff) | |
| download | rust-3a30bad6de92fd00f24b8ba9547798cb1afa1ba3.tar.gz rust-3a30bad6de92fd00f24b8ba9547798cb1afa1ba3.zip | |
Use `Ident` instead of `Name` in `MetaItem`
Diffstat (limited to 'src/librustc_resolve')
| -rw-r--r-- | src/librustc_resolve/build_reduced_graph.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_resolve/build_reduced_graph.rs b/src/librustc_resolve/build_reduced_graph.rs index b95b7deab48..0542ca6fb24 100644 --- a/src/librustc_resolve/build_reduced_graph.rs +++ b/src/librustc_resolve/build_reduced_graph.rs @@ -717,7 +717,7 @@ impl<'a> Resolver<'a> { match attr.meta_item_list() { Some(names) => for attr in names { if let Some(word) = attr.word() { - imports.imports.push((word.name(), attr.span())); + imports.imports.push((word.ident.name, attr.span())); } else { span_err!(self.session, attr.span(), E0466, "bad macro import"); } @@ -731,7 +731,7 @@ impl<'a> Resolver<'a> { if let Some(names) = attr.meta_item_list() { for attr in names { if let Some(word) = attr.word() { - imports.reexports.push((word.name(), attr.span())); + imports.reexports.push((word.ident.name, attr.span())); } else { bad_macro_reexport(self, attr.span()); } |
