Skip to content

Commit 43114d3

Browse files
delete commented code
1 parent 06f56c9 commit 43114d3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_codegen_ssa/src/codegen_attrs.rs

-5
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
628628
{
629629
let lang_item =
630630
lang_items::extract(attrs).map_or(None, |(name, _span)| LangItem::from_name(name));
631-
// This should never use the default as `no_mangle` is present in the attributes list
632631
let mut err = tcx
633632
.dcx()
634633
.struct_span_err(
@@ -639,9 +638,6 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
639638
.with_span_label(tcx.def_span(did), "should be the internal language item");
640639
if let Some(lang_item) = lang_item {
641640
if let Some(link_name) = lang_item.link_name() {
642-
// let renamed =
643-
// format!("In this case it is automatically renamed to `{}`", link_name);
644-
// err = err.with_note(renamed);
645641
err = err
646642
.with_note("If you are trying to prevent mangling to ease debugging, many")
647643
.with_note(format!(
@@ -652,7 +648,6 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
652648
))
653649
}
654650
}
655-
656651
err.emit();
657652
}
658653

0 commit comments

Comments
 (0)