Skip to content

tests fail on macOS #2245

@tlyu

Description

@tlyu

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions