span -> span()

This commit is contained in:
Mateusz Mikuła 2019-03-18 12:05:20 +01:00 committed by Mateusz Mikuła
parent b25564fc8a
commit 4bb6c87b08

View File

@ -224,7 +224,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AttrPass {
if let MetaItemKind::NameValue(lit) = &mi.node; if let MetaItemKind::NameValue(lit) = &mi.node;
if mi.name() == "since"; if mi.name() == "since";
then { then {
check_semver(cx, item.span, lit); check_semver(cx, item.span(), lit);
} }
} }
} }
@ -327,7 +327,7 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
span_lint_and_then( span_lint_and_then(
cx, cx,
UNKNOWN_CLIPPY_LINTS, UNKNOWN_CLIPPY_LINTS,
lint.span, lint.span(),
&format!("unknown clippy lint: clippy::{}", name), &format!("unknown clippy lint: clippy::{}", name),
|db| { |db| {
if name.as_str().chars().any(char::is_uppercase) { if name.as_str().chars().any(char::is_uppercase) {
@ -341,7 +341,7 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
CheckLintNameResult::NoLint(None) => (), CheckLintNameResult::NoLint(None) => (),
_ => { _ => {
db.span_suggestion( db.span_suggestion(
lint.span, lint.span(),
"lowercase the lint name", "lowercase the lint name",
name_lower, name_lower,
Applicability::MaybeIncorrect, Applicability::MaybeIncorrect,