Skip to content

Commit 14ab39c

Browse files
committed
on_const doesn't support parent_label
1 parent dfa2e24 commit 14ab39c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
898898
main_obligation,
899899
diag.long_ty_path(),
900900
);
901-
let CustomDiagnostic { message, label, notes, parent_label } =
901+
let CustomDiagnostic { message, label, notes, parent_label: _ } =
902902
command.eval(None, &format_args);
903903

904904
if let Some(message) = message {
@@ -910,9 +910,6 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
910910
for note in notes {
911911
diag.note(note);
912912
}
913-
if let Some(parent_label) = parent_label {
914-
diag.span_label(impl_span, parent_label);
915-
}
916913
} else if let Some(impl_did) = impl_did.as_local()
917914
&& let item = self.tcx.hir_expect_item(impl_did)
918915
&& let hir::ItemKind::Impl(item) = item.kind

0 commit comments

Comments
 (0)