about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-10-24 11:54:11 +0200
committerflip1995 <hello@philkrones.com>2019-10-24 11:54:11 +0200
commit5f4b5b91d7e262a2ac5c13dc21b0d005e8360046 (patch)
tree31860678e63e8bb0cafef11faa82090368f55fea
parent8c205018d2949a88faa7ed7926c12d616735e2e6 (diff)
downloadrust-5f4b5b91d7e262a2ac5c13dc21b0d005e8360046.tar.gz
rust-5f4b5b91d7e262a2ac5c13dc21b0d005e8360046.zip
Rustup to rust-lang/rust#65657
-rw-r--r--clippy_lints/src/utils/higher.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/utils/higher.rs b/clippy_lints/src/utils/higher.rs
index 63e9a27c545..623dc70c113 100644
--- a/clippy_lints/src/utils/higher.rs
+++ b/clippy_lints/src/utils/higher.rs
@@ -64,13 +64,13 @@ pub fn range<'a, 'b, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'b hir::Expr) -> O
     if def_path.data.len() != 3 {
         return None;
     }
-    if def_path.data.get(0)?.data.as_interned_str().as_symbol() != sym!(ops) {
+    if def_path.data.get(0)?.data.as_symbol() != sym!(ops) {
         return None;
     }
-    if def_path.data.get(1)?.data.as_interned_str().as_symbol() != sym!(range) {
+    if def_path.data.get(1)?.data.as_symbol() != sym!(range) {
         return None;
     }
-    let type_name = def_path.data.get(2)?.data.as_interned_str();
+    let type_name = def_path.data.get(2)?.data.as_symbol();
     let range_types = [
         "RangeFrom",
         "RangeFull",