1
Fork 0

review + rebase

This commit is contained in:
lcnr 2022-02-01 10:29:36 +01:00
parent 6970547d40
commit 4bbe970673
2 changed files with 6 additions and 5 deletions

View file

@ -487,7 +487,7 @@ impl CheckAttrVisitor<'_> {
fn check_rustc_must_implement_one_of(
&self,
attr: &Attribute,
span: &Span,
span: Span,
target: Target,
) -> bool {
match target {
@ -496,7 +496,7 @@ impl CheckAttrVisitor<'_> {
self.tcx
.sess
.struct_span_err(attr.span, "attribute can only be applied to a trait")
.span_label(*span, "not a trait")
.span_label(span, "not a trait")
.emit();
false
}