Fix test failure on macOS with link_section#2246
Merged
Merged
Conversation
rust-lang/rust#155065 recently added validation for link_section on macOS. I'm working around it here by just limiting this test to linux. Alternatives: - Show different syntaxes for different targets (but I would prefer to keep the example as plain as possible). - Mark it as `ignore` (want to avoid this if at all possible). Fixes rust-lang#2245
Closed
Contributor
|
Thanks! This fix seems to work for me. |
traviscross
approved these changes
May 5, 2026
This was referenced May 5, 2026
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
May 18, 2026
Update books ## rust-lang/reference 9 commits in 581920f9109f141b88b860b3e1e8359e3896a150..ad35aca481751a06afeb23820a672b0f3b11a476 2026-05-14 17:00:42 UTC to 2026-05-04 18:27:13 UTC - ci: declare contents:read on CI workflow (rust-lang/reference#2271) - Fix the grammar of generic arguments (rust-lang/reference#2247) - Rename grammar rule `TypeParamBounds` to just `Bounds` (rust-lang/reference#2258) - Update `used` to use the attribute template (rust-lang/reference#1905) - Place HRTB binders before fn qualifiers (rust-lang/reference#2260) - Glossary: add new entry documenting zero-sized types (rust-lang/reference#2203) - Fix test failure on macOS with link_section (rust-lang/reference#2246) - Make definition of fragment specifier `path` more precise (rust-lang/reference#2248) - gitignore linkcheck (rust-lang/reference#2252)
rust-timer
added a commit
to rust-lang/rust
that referenced
this pull request
May 19, 2026
Rollup merge of #156723 - rustbot:docs-update, r=ehuss Update books ## rust-lang/reference 9 commits in 581920f9109f141b88b860b3e1e8359e3896a150..ad35aca481751a06afeb23820a672b0f3b11a476 2026-05-14 17:00:42 UTC to 2026-05-04 18:27:13 UTC - ci: declare contents:read on CI workflow (rust-lang/reference#2271) - Fix the grammar of generic arguments (rust-lang/reference#2247) - Rename grammar rule `TypeParamBounds` to just `Bounds` (rust-lang/reference#2258) - Update `used` to use the attribute template (rust-lang/reference#1905) - Place HRTB binders before fn qualifiers (rust-lang/reference#2260) - Glossary: add new entry documenting zero-sized types (rust-lang/reference#2203) - Fix test failure on macOS with link_section (rust-lang/reference#2246) - Make definition of fragment specifier `path` more precise (rust-lang/reference#2248) - gitignore linkcheck (rust-lang/reference#2252)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rust-lang/rust#155065 recently added validation for link_section on macOS. I'm working around it here by just limiting this test to linux.
Alternatives:
ignore(want to avoid this if at all possible).Fixes #2245