about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKampfkarren <boynedmaster@gmail.com>2018-12-13 09:37:00 -0800
committerKampfkarren <boynedmaster@gmail.com>2018-12-13 09:37:00 -0800
commit9fc914cf4d6c508d1d07a2ff94ee23d1840eb5e5 (patch)
tree6278657adc1594b6d775e189bc49af6e64a5e7f5
parent616395f40b54d4340348f6b811d5fe2497761f30 (diff)
downloadrust-9fc914cf4d6c508d1d07a2ff94ee23d1840eb5e5.tar.gz
rust-9fc914cf4d6c508d1d07a2ff94ee23d1840eb5e5.zip
Remove DUMMY_SP
-rw-r--r--clippy_lints/src/types.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs
index 5b652985b3d..fdaa21f6c55 100644
--- a/clippy_lints/src/types.rs
+++ b/clippy_lints/src/types.rs
@@ -24,7 +24,7 @@ use crate::rustc_target::spec::abi::Abi;
 use crate::rustc_typeck::hir_ty_to_ty;
 use crate::syntax::ast::{FloatTy, IntTy, UintTy};
 use crate::syntax::errors::DiagnosticBuilder;
-use crate::syntax::source_map::{DUMMY_SP, Span};
+use crate::syntax::source_map::Span;
 use crate::utils::paths;
 use crate::utils::{
     clip, comparisons, differing_macro_contexts, higher, in_constant, in_macro, int_bits, last_path_segment,
@@ -288,7 +288,7 @@ fn check_ty(cx: &LateContext<'_, '_>, ast_ty: &hir::Ty, is_local: bool) {
                         let def = cx.tables.qpath_def(ty_qpath, ty.hir_id);
                         if let Some(def_id) = opt_def_id(def);
                         let boxed_type = cx.tcx.type_of(def_id);
-                        if boxed_type.is_sized(cx.tcx.at(DUMMY_SP), cx.param_env);
+                        if boxed_type.is_sized(cx.tcx.at(ty.span), cx.param_env);
                         then {
                             span_lint_and_sugg(
                                 cx,