Skip to content

Commit 1f94384

Browse files
committed
Update error id to an unused one
1 parent 9e46c0b commit 1f94384

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsyntax/attr/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fn find_stability_generic<'a, I>(diagnostic: &Handler,
435435
if let Some(ref mut stab) = stab {
436436
stab.promotable = true;
437437
} else {
438-
span_err!(diagnostic, item_sp, E0713,
438+
span_err!(diagnostic, item_sp, E0717,
439439
"rustc_promotable attribute must be paired with \
440440
either stable or unstable attribute");
441441
}

src/libsyntax/diagnostic_list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,5 +413,5 @@ register_diagnostics! {
413413
E0694, // an unknown tool name found in scoped attributes
414414
E0703, // invalid ABI
415415
E0704, // incorrect visibility restriction
416-
E0713, // rustc_promotable without stability attribute
416+
E0717, // rustc_promotable without stability attribute
417417
}

0 commit comments

Comments
 (0)