Skip to content

Commit 1f886db

Browse files
committed
Auto merge of #119751 - nnethercote:error-api-fixes, r=oli-obk
Diagnostic API fixes Some improvements to diagnostic APIs: improve some naming, use shortcuts in more places, and add a couple of missing methods. r? `@compiler-errors`
2 parents fa2d9c4 + 4f48907 commit 1f886db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_config/src/msrvs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl Msrv {
109109
if let Some(duplicate) = msrv_attrs.last() {
110110
sess.dcx()
111111
.struct_span_err(duplicate.span, "`clippy::msrv` is defined multiple times")
112-
.span_note_mv(msrv_attr.span, "first definition found here")
112+
.with_span_note(msrv_attr.span, "first definition found here")
113113
.emit();
114114
}
115115

clippy_utils/src/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub fn get_unique_attr<'a>(
136136
if let Some(duplicate) = unique_attr {
137137
sess.dcx()
138138
.struct_span_err(attr.span, format!("`{name}` is defined multiple times"))
139-
.span_note_mv(duplicate.span, "first definition found here")
139+
.with_span_note(duplicate.span, "first definition found here")
140140
.emit();
141141
} else {
142142
unique_attr = Some(attr);

0 commit comments

Comments
 (0)