summary refs log tree commit diff
path: root/src/test/auxiliary/lint_group_plugin_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/auxiliary/lint_group_plugin_test.rs')
-rw-r--r--src/test/auxiliary/lint_group_plugin_test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/auxiliary/lint_group_plugin_test.rs b/src/test/auxiliary/lint_group_plugin_test.rs
index 36b3091852b..e9d98889ff8 100644
--- a/src/test/auxiliary/lint_group_plugin_test.rs
+++ b/src/test/auxiliary/lint_group_plugin_test.rs
@@ -37,9 +37,9 @@ impl LintPass for Pass {
 
     fn check_item(&mut self, cx: &Context, it: &ast::Item) {
         let name = token::get_ident(it.ident);
-        if &name[] == "lintme" {
+        if &name[..] == "lintme" {
             cx.span_lint(TEST_LINT, it.span, "item is named 'lintme'");
-        } else if &name[] == "pleaselintme" {
+        } else if &name[..] == "pleaselintme" {
             cx.span_lint(PLEASE_LINT, it.span, "item is named 'pleaselintme'");
         }
     }