-use crate::utils::{match_def_path, span_help_and_lint};
+use crate::utils::{match_def_path, span_lint_and_help};
use if_chain::if_chain;
use rustc::ty;
use rustc_hir::def_id::DefId;
then {
if method == "load" &&
match_ordering_def_path(cx, ordering_def_id, &["Release", "AcqRel"]) {
- span_help_and_lint(
+ span_lint_and_help(
cx,
INVALID_ATOMIC_ORDERING,
ordering_arg.span,
);
} else if method == "store" &&
match_ordering_def_path(cx, ordering_def_id, &["Acquire", "AcqRel"]) {
- span_help_and_lint(
+ span_lint_and_help(
cx,
INVALID_ATOMIC_ORDERING,
ordering_arg.span,
if let Some(ordering_def_id) = cx.tables.qpath_res(ordering_qpath, args[0].hir_id).opt_def_id();
if match_ordering_def_path(cx, ordering_def_id, &["Relaxed"]);
then {
- span_help_and_lint(
+ span_lint_and_help(
cx,
INVALID_ATOMIC_ORDERING,
args[0].span,