Skip to content

Commit 9fc914c

Browse files
committed
Remove DUMMY_SP
1 parent 616395f commit 9fc914c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::rustc_target::spec::abi::Abi;
2424
use crate::rustc_typeck::hir_ty_to_ty;
2525
use crate::syntax::ast::{FloatTy, IntTy, UintTy};
2626
use crate::syntax::errors::DiagnosticBuilder;
27-
use crate::syntax::source_map::{DUMMY_SP, Span};
27+
use crate::syntax::source_map::Span;
2828
use crate::utils::paths;
2929
use crate::utils::{
3030
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) {
288288
let def = cx.tables.qpath_def(ty_qpath, ty.hir_id);
289289
if let Some(def_id) = opt_def_id(def);
290290
let boxed_type = cx.tcx.type_of(def_id);
291-
if boxed_type.is_sized(cx.tcx.at(DUMMY_SP), cx.param_env);
291+
if boxed_type.is_sized(cx.tcx.at(ty.span), cx.param_env);
292292
then {
293293
span_lint_and_sugg(
294294
cx,

0 commit comments

Comments
 (0)