-
Notifications
You must be signed in to change notification settings - Fork 13.4k
compiletest: add {ignore,only}-rustc_abi-x86-sse2
directives
#137074
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
This comment has been minimized.
This comment has been minimized.
// FIXME: this test will fail against stage 0 until #137037 changes reach beta. | ||
#[cfg_attr(bootstrap, ignore)] | ||
fn test_rustc_abi() { | ||
let config = cfg().target("i686-unknown-linux-gnu").build(); | ||
assert_eq!(config.target_cfg().rustc_abi, Some("x86-sse2".to_string())); | ||
assert!(check_ignore(&config, "//@ ignore-rustc_abi-x86-sse2")); | ||
assert!(!check_ignore(&config, "//@ only-rustc_abi-x86-sse2")); | ||
let config = cfg().target("x86_64-unknown-linux-gnu").build(); | ||
assert_eq!(config.target_cfg().rustc_abi, None); | ||
assert!(!check_ignore(&config, "//@ ignore-rustc_abi-x86-sse2")); | ||
assert!(check_ignore(&config, "//@ only-rustc_abi-x86-sse2")); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that #137037 changes is in master but hasn't reached beta yet, so the rustc_abi
field isn't present for i686=unknown-linux-gnu
yet.
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me; waiting for CI.
@bors r+ rollup |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#127581 (Fix crate name validation) - rust-lang#136490 (Do not allow attributes on struct field rest patterns) - rust-lang#136808 (Try to recover from path sep error in type parsing) - rust-lang#137055 (rustdoc: Properly restore search input placeholder) - rust-lang#137068 (fix(rustdoc): Fixed `Copy Item Path` in rust doc) - rust-lang#137070 (Do not generate invalid links in job summaries) - rust-lang#137074 (compiletest: add `{ignore,only}-rustc_abi-x86-sse2` directives) - rust-lang#137076 (triagebot.toml: ping me on changes to `tests/rustdoc-json`) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#127581 (Fix crate name validation) - rust-lang#136490 (Do not allow attributes on struct field rest patterns) - rust-lang#136808 (Try to recover from path sep error in type parsing) - rust-lang#137055 (rustdoc: Properly restore search input placeholder) - rust-lang#137068 (fix(rustdoc): Fixed `Copy Item Path` in rust doc) - rust-lang#137070 (Do not generate invalid links in job summaries) - rust-lang#137074 (compiletest: add `{ignore,only}-rustc_abi-x86-sse2` directives) - rust-lang#137076 (triagebot.toml: ping me on changes to `tests/rustdoc-json`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#137074 - jieyouxu:rustc_abi, r=onur-ozkan compiletest: add `{ignore,only}-rustc_abi-x86-sse2` directives As requested in https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/compiletest.20target.20selection.20is.20way.20too.20rigid, cc `@RalfJung` r? bootstrap (or compiler)
As requested in https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/compiletest.20target.20selection.20is.20way.20too.20rigid, cc @RalfJung
r? bootstrap (or compiler)