Skip to content

Commit 7c97742

Browse files
rephrase note
Co-authored-by: bjorn3 <[email protected]>
1 parent 5d96d04 commit 7c97742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/codegen_attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
641641
no_mangle_span,
642642
"`#[no_mangle]` cannot be used on internal language items",
643643
)
644-
.with_note("The linker requires specific names for internal language items.")
644+
.with_note("Rustc requires this item to have a specific mangled name.")
645645
.with_note("If you are trying to prevent mangling to ease debugging, many")
646646
.with_note("debuggers support a command such as `rbreak {sym}` to")
647647
.with_note("match `.*{sym}.*` instead of `break {sym}` on a specific name")

0 commit comments

Comments
 (0)