Skip to content

Port stdarch-gen-arm to stdarch-gen-common - #2200

Merged
folkertdev merged 1 commit into
rust-lang:mainfrom
xonx4l:port-stdarch-gen-arm-to-common
Aug 13, 2026
Merged

Port stdarch-gen-arm to stdarch-gen-common#2200
folkertdev merged 1 commit into
rust-lang:mainfrom
xonx4l:port-stdarch-gen-arm-to-common

Conversation

@xonx4l

@xonx4l xonx4l commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR Port's stdarch-gen-arm to stdarch-gen-common harness .

Since run_generator operates on a single folder but stdarch-gen-arm outputs to many core_arch/src/<arch>/<feature>/ folders main now calls run_generator once per spec file
passing that spec's output folder as the directory to check/bless.

Dropped the old stdout fallback as the harness now always writes to a real folder.

r? @folkertdev

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good! Left some comments. CI is red.

View changes since this review

Comment thread .github/workflows/main.yml Outdated
Comment thread crates/stdarch-gen-arm/src/main.rs Outdated
@xonx4l xonx4l closed this Aug 12, 2026
@xonx4l xonx4l reopened this Aug 12, 2026
@xonx4l
xonx4l force-pushed the port-stdarch-gen-arm-to-common branch from fe32ee8 to a38619c Compare August 12, 2026 11:19
@rustbot

rustbot commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I'll also let Folkert take a look.

View changes since this review

@Kobzol
Kobzol requested a review from folkertdev August 12, 2026 11:39

@folkertdev folkertdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread .github/workflows/main.yml Outdated
Comment on lines +328 to +329
env:
STDARCH_GEN_MODE: check

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we factor this out (so put it below runs-on on line 324)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread crates/stdarch-gen-arm/src/main.rs Outdated
Comment on lines +38 to +39
// The output folder for this spec file (`<out_base>/<arch>/<feature>/`) the
// directory the harness checks/blesses against.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't quite make sense as a sentence, can you rephrase?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rephrased!

Comment thread crates/stdarch-gen-arm/src/main.rs Outdated
Comment on lines +77 to +81
if matches!(i.test, Test::Load(..)) {
Some(i.clone())
} else {
None
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be a match right? would be shorter too.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and below

@folkertdev folkertdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xonx4l
xonx4l force-pushed the port-stdarch-gen-arm-to-common branch from 0f1ce0b to 310bd72 Compare August 12, 2026 15:57
@folkertdev
folkertdev added this pull request to the merge queue Aug 13, 2026
Merged via the queue into rust-lang:main with commit 287e494 Aug 13, 2026
82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants