You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't remember if this used to pass. The error message isn't clear whether it's coming from rustc or somewhere in the Xcode toolchain.
macOS 15.7.5 (24G624)
INFO Testing chapter 'Application binary interface': "abi.md"
ERROR rustdoc returned an error:
--- stdout
running 4 tests
test abi.md - Application_binary_interface__ABI_::The_ (line 142) - compile ... FAILED
test abi.md - Application_binary_interface__ABI_::The_ (line 36) ... ok
test abi.md - Application_binary_interface__ABI_::The_ (line 104) ... ok
test abi.md - Application_binary_interface__ABI_::The_ (line 202) ... ok
failures:
---- abi.md - Application_binary_interface__ABI_::The_ (line 142) stdout ----
error: invalid Mach-O section specifier
--> abi.md:144:25
|
144 | #[unsafe(link_section = ".example_section")]
| ^^^^^^^^^^^^^^^^^^ not a valid Mach-O section specifier
|
= note: a Mach-O section specifier requires a segment and a section, separated by a comma
= help: an example of a valid Mach-O section specifier is `__TEXT,__cstring`
error: aborting due to 1 previous error
Couldn't compile the test.
failures:
abi.md - Application_binary_interface__ABI_::The_ (line 142)
test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s
all doctests ran in 0.45s; merged doctests compilation took 0.02s
--- stderr
INFO Testing chapter 'The Rust runtime': "runtime.md"
Activity
Fix test failure on macOS with link_section
ehuss commentedon May 1, 2026
Thanks for the report! This just recently regressed a few days ago. I posted #2246 to fix it.