]> git.lizzy.rs Git - rust.git/commitdiff
Incorporate upstream changes
authorAlexey Zabelin <hello@alexeyzabelin.com>
Fri, 25 Aug 2017 00:46:40 +0000 (20:46 -0400)
committerAlexey Zabelin <hello@alexeyzabelin.com>
Fri, 25 Aug 2017 00:46:40 +0000 (20:46 -0400)
clippy_lints/src/types.rs

index e48f6a9042b998e03a0798960fd10fc469b6ae93..3eca9ad1baf7a2eb52ece7477a5d1f892cf64959 100644 (file)
@@ -10,7 +10,7 @@
 use syntax::attr::IntType;
 use syntax::codemap::Span;
 use utils::{comparisons, higher, in_external_macro, in_macro, match_def_path, snippet, span_help_and_lint, span_lint,
-            span_lint_and_sugg, opt_def_id, last_path_segment, type_size, match_path_old};
+            span_lint_and_sugg, opt_def_id, last_path_segment, type_size, match_path};
 use utils::paths;
 
 /// Handles all the linting of funky types
@@ -261,7 +261,7 @@ fn is_any_trait(t: &hir::Ty) -> bool {
         traits.len() >= 1,
         // Only Send/Sync can be used as additional traits, so it is enough to
         // check only the first trait.
-        match_path_old(&traits[0].trait_ref.path, &paths::ANY_TRAIT)
+        match_path(&traits[0].trait_ref.path, &paths::ANY_TRAIT)
     ], {
         return true;
     }}