Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add newignore-backends andneeds-backends tests annotations#144125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
GuillaumeGomez wants to merge2 commits intorust-lang:master
base:master
Choose a base branch
Loading
fromGuillaumeGomez:new-annotations

Conversation

GuillaumeGomez
Copy link
Member

Part ofrust-lang/compiler-team#891.

Next step will be to add these annotations in the files where either the output is different based on the codegen (likeasm tests) or that are known to fail in the GCC backend.

cc@oli-obk@antoyo
r?@Kobzol

@rustbotrustbot added A-compiletestArea: The compiletest test runner A-rustc-dev-guideArea: rustc-dev-guide A-testsuiteArea: The testsuite used to check the correctness of rustc S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labelsJul 18, 2025
@rustbot
Copy link
Collaborator

Some changes occurred in src/tools/compiletest

cc@jieyouxu

The rustc-dev-guide subtree was changed. If this PRonly touches the dev guide consider submitting a PR directly torust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes.

cc@BoxyUwU,@jieyouxu,@Kobzol,@tshepang

@bjorn3
Copy link
Member

For asm tests I think adding//@ needs-backends: llvm to every test is a bad idea. Rather I think gating the entire asm test suite behind the LLVM backend inside compiletest itself or moving the test assertions to backend specific files would be better options. For ui tests these test annotations do make sense to me however.

@GuillaumeGomez
Copy link
MemberAuthor

I didn't look how many tests were there but you're right, would make more sense to just ignore these tests completely if it's not llvm backend. I think I'll rename the folder to better express it (asm ->asm-llvm). It could also allow to add a more generic check for this folder by directly checking if the backend name matches the current one, allowing to add asm tests for cranelift and gcc backends.

Copy link
Member

@KobzolKobzol left a comment

Choose a reason for hiding this comment

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

{
returnIgnoreDecision::Ignore{
reason:format!(
"{} backend is not part of backends",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"{} backend is not part of backends",
"{} backend is not part ofrequiredbackends",

@jieyouxu
Copy link
Member

For asm tests I think adding//@ needs-backends: llvm to every test is a bad idea. Rather I think gating the entire asm test suite behind the LLVM backend inside compiletest itself or moving the test assertions to backend specific files would be better options. For ui tests these test annotations do make sense to me however.

Yeah, I think this is for the best.

@GuillaumeGomez
Copy link
MemberAuthor

Applied suggestion.

@jieyouxujieyouxu assignedjieyouxu and unassignedjieyouxuJul 18, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@KobzolKobzolKobzol left review comments

Assignees

@KobzolKobzol

Labels
A-compiletestArea: The compiletest test runnerA-rustc-dev-guideArea: rustc-dev-guideA-testsuiteArea: The testsuite used to check the correctness of rustcS-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@GuillaumeGomez@rustbot@bjorn3@jieyouxu@Kobzol

[8]ページ先頭

©2009-2025 Movatter.jp