Rename buffer_lint_with_diagnostic to buffer_lint
This commit is contained in:
parent
c4f6502c6d
commit
98dd6c7e8f
28 changed files with 57 additions and 57 deletions
|
@ -510,7 +510,7 @@ fn expand_preparsed_asm(
|
|||
};
|
||||
|
||||
if template_str.contains(".intel_syntax") {
|
||||
ecx.psess().buffer_lint_with_diagnostic(
|
||||
ecx.psess().buffer_lint(
|
||||
lint::builtin::BAD_ASM_STYLE,
|
||||
find_span(".intel_syntax"),
|
||||
ecx.current_expansion.lint_node_id,
|
||||
|
@ -518,7 +518,7 @@ fn expand_preparsed_asm(
|
|||
);
|
||||
}
|
||||
if template_str.contains(".att_syntax") {
|
||||
ecx.psess().buffer_lint_with_diagnostic(
|
||||
ecx.psess().buffer_lint(
|
||||
lint::builtin::BAD_ASM_STYLE,
|
||||
find_span(".att_syntax"),
|
||||
ecx.current_expansion.lint_node_id,
|
||||
|
|
|
@ -1621,7 +1621,7 @@ impl<'a> TraitDef<'a> {
|
|||
};
|
||||
|
||||
if let Some(ty) = exception {
|
||||
cx.sess.psess.buffer_lint_with_diagnostic(
|
||||
cx.sess.psess.buffer_lint(
|
||||
BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE,
|
||||
sp,
|
||||
ast::CRATE_NODE_ID,
|
||||
|
|
|
@ -144,7 +144,7 @@ pub(crate) fn expand_include<'cx>(
|
|||
fn make_expr(mut self: Box<ExpandInclude<'a>>) -> Option<P<ast::Expr>> {
|
||||
let expr = parse_expr(&mut self.p).ok()?;
|
||||
if self.p.token != token::Eof {
|
||||
self.p.psess.buffer_lint_with_diagnostic(
|
||||
self.p.psess.buffer_lint(
|
||||
INCOMPLETE_INCLUDE,
|
||||
self.p.token.span,
|
||||
self.node_id,
|
||||
|
|
|
@ -160,7 +160,7 @@ struct InnerItemLinter<'a> {
|
|||
impl<'a> Visitor<'a> for InnerItemLinter<'_> {
|
||||
fn visit_item(&mut self, i: &'a ast::Item) {
|
||||
if let Some(attr) = attr::find_by_name(&i.attrs, sym::rustc_test_marker) {
|
||||
self.sess.psess.buffer_lint_with_diagnostic(
|
||||
self.sess.psess.buffer_lint(
|
||||
UNNAMEABLE_TEST_ITEMS,
|
||||
attr.span,
|
||||
i.id,
|
||||
|
|
|
@ -42,7 +42,7 @@ pub(crate) fn warn_on_duplicate_attribute(ecx: &ExtCtxt<'_>, item: &Annotatable,
|
|||
};
|
||||
if let Some(attrs) = attrs {
|
||||
if let Some(attr) = attr::find_by_name(attrs, name) {
|
||||
ecx.psess().buffer_lint_with_diagnostic(
|
||||
ecx.psess().buffer_lint(
|
||||
DUPLICATE_MACRO_ATTRIBUTES,
|
||||
attr.span,
|
||||
ecx.current_expansion.lint_node_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue