cx.struct_span_lint(
DEFAULT_HASH_TYPES,
path.span,
- fluent::lint::default_hash_types,
+ fluent::lint_default_hash_types,
|lint| {
lint.set_arg("preferred", replace)
.set_arg("used", cx.tcx.item_name(def_id))
- .note(fluent::lint::note)
+ .note(fluent::note)
},
);
}
cx.struct_span_lint(
POTENTIAL_QUERY_INSTABILITY,
span,
- fluent::lint::query_instability,
- |lint| lint.set_arg("query", cx.tcx.item_name(def_id)).note(fluent::lint::note),
+ fluent::lint_query_instability,
+ |lint| lint.set_arg("query", cx.tcx.item_name(def_id)).note(fluent::note),
)
}
}
let span = path.span.with_hi(
segment.args.map_or(segment.ident.span, |a| a.span_ext).hi()
);
- cx.struct_span_lint(USAGE_OF_TY_TYKIND, path.span, fluent::lint::tykind_kind, |lint| {
+ cx.struct_span_lint(USAGE_OF_TY_TYKIND, path.span, fluent::lint_tykind_kind, |lint| {
lint
.span_suggestion(
span,
- fluent::lint::suggestion,
+ fluent::suggestion,
"ty",
Applicability::MaybeIncorrect, // ty maybe needs an import
)
cx.struct_span_lint(
USAGE_OF_TY_TYKIND,
path.span,
- fluent::lint::tykind_kind,
+ fluent::lint_tykind_kind,
|lint| lint.span_suggestion(
span,
- fluent::lint::suggestion,
+ fluent::suggestion,
"ty",
Applicability::MaybeIncorrect, // ty maybe needs an import
)
None => cx.struct_span_lint(
USAGE_OF_TY_TYKIND,
path.span,
- fluent::lint::tykind,
- |lint| lint.help(fluent::lint::help)
+ fluent::lint_tykind,
+ |lint| lint.help(fluent::help)
)
}
} else if !ty.span.from_expansion() && let Some(t) = is_ty_or_ty_ctxt(cx, &path) {
if path.segments.len() > 1 {
- cx.struct_span_lint(USAGE_OF_QUALIFIED_TY, path.span, fluent::lint::ty_qualified, |lint| {
+ cx.struct_span_lint(USAGE_OF_QUALIFIED_TY, path.span, fluent::lint_ty_qualified, |lint| {
lint
.set_arg("ty", t.clone())
.span_suggestion(
path.span,
- fluent::lint::suggestion,
+ fluent::suggestion,
t,
// The import probably needs to be changed
Applicability::MaybeIncorrect,
cx.struct_span_lint(
LINT_PASS_IMPL_WITHOUT_MACRO,
lint_pass.path.span,
- fluent::lint::lintpass_by_hand,
- |lint| lint.help(fluent::lint::help),
+ fluent::lint_lintpass_by_hand,
+ |lint| lint.help(fluent::help),
)
}
}
cx.struct_span_lint(
EXISTING_DOC_KEYWORD,
attr.span,
- fluent::lint::non_existant_doc_keyword,
- |lint| lint.set_arg("keyword", v).help(fluent::lint::help),
+ fluent::lint_non_existant_doc_keyword,
+ |lint| lint.set_arg("keyword", v).help(fluent::help),
);
}
}
cx.struct_span_lint(
DIAGNOSTIC_OUTSIDE_OF_IMPL,
span,
- fluent::lint::diag_out_of_impl,
+ fluent::lint_diag_out_of_impl,
|lint| lint,
)
}
cx.struct_span_lint(
UNTRANSLATABLE_DIAGNOSTIC,
span,
- fluent::lint::untranslatable_diag,
+ fluent::lint_untranslatable_diag,
|lint| lint,
)
}