Skip to content

Commit a05e7c0

Browse files
committed
1a: clarify needing libc for mem feature
1 parent 80442f7 commit a05e7c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/0000-build-std/4-stage-1a.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,11 @@ standard library workspace.
341341

342342
The `mem` feature of `compiler_builtins` (and the subsequent
343343
`compiler-builtins-mem` feature of `core`, `alloc`, `std` which forward to
344-
`compiler_builtins/mem`) is required by `no_std` crates because `libc` does not
345-
provide these symbols without `std`.
344+
`compiler_builtins/mem`) is required by `no_std` crates as a `std` dependency
345+
will not be providing these symbols through its dependency on `libc`.
346346

347347
It is necessary that the `compiler-builtins-mem` feature of `alloc` and/or
348-
`core` be enabled when `std` is not in the crate graph
348+
`core` be enabled when `libc` is not in the crate graph
349349
([?][rationale-no-weak-linkage]).
350350

351351
*See the following sections for rationale/alternatives:*

0 commit comments

Comments
 (0)