about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-23 00:25:42 +0000
committerbors <bors@rust-lang.org>2015-09-23 00:25:42 +0000
commitb2f379cdc23aec5c5d0d62acfcc5a4a18ebf0e30 (patch)
tree5c758f791c9591be310ef5b3197f9bdfe5654896 /src/test
parentad82e0ac180deef65b5757a6e4d7fa79aab5521a (diff)
parent0af8e4754632279bf0b6a7143274c5d817f2833d (diff)
downloadrust-b2f379cdc23aec5c5d0d62acfcc5a4a18ebf0e30.tar.gz
rust-b2f379cdc23aec5c5d0d62acfcc5a4a18ebf0e30.zip
Auto merge of #28535 - petrochenkov:name, r=nrc
Part of https://github.com/rust-lang/rust/issues/6993

This patch replaces `Ident`s with `Name`s in data structures of HIR and updates the dependent crates to compile and pass `make check`.
Some HIR structures still use `Ident`s, namely `PathSegment`, `PatIdent`, `ExprWhile`, `ExprLoop`, `ExprBreak` and `ExprAgain`,  they need them for resolve (but `PathSegment` is special, see https://github.com/rust-lang/rust/issues/6993#issuecomment-141256292).

r? @nrc 
Diffstat (limited to 'src/test')
-rw-r--r--src/test/auxiliary/lint_group_plugin_test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/auxiliary/lint_group_plugin_test.rs b/src/test/auxiliary/lint_group_plugin_test.rs
index 13cf5f09db3..81bd76211c3 100644
--- a/src/test/auxiliary/lint_group_plugin_test.rs
+++ b/src/test/auxiliary/lint_group_plugin_test.rs
@@ -37,7 +37,7 @@ impl LintPass for Pass {
 
 impl LateLintPass for Pass {
     fn check_item(&mut self, cx: &LateContext, it: &hir::Item) {
-        match &*it.ident.name.as_str() {
+        match &*it.name.as_str() {
             "lintme" => cx.span_lint(TEST_LINT, it.span, "item is named 'lintme'"),
             "pleaselintme" => cx.span_lint(PLEASE_LINT, it.span, "item is named 'pleaselintme'"),
             _ => {}