forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#132885 - jhpratt:rollup-4ddd31p, r=jhpratt
Rollup of 3 pull requests Successful merges: - rust-lang#131080 (Stabilize WebAssembly `multivalue`, `reference-types`, and `tail-call` target features) - rust-lang#132871 (add regression test for rust-lang#85763) - rust-lang#132878 (triagebot: Assign rustdoc tests to T-rustdoc.) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
6 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// regression test for https://github.com/rust-lang/rust/issues/85763 | ||
|
||
#![crate_name = "foo"] | ||
|
||
//@ has foo/index.html '//main' 'Some text that should be concatenated.' | ||
#[doc = " Some text"] | ||
#[doc = r" that should"] | ||
/// be concatenated. | ||
pub fn main() { | ||
println!("Hello, world!"); | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
//@ only-wasm32 | ||
//@ build-pass | ||
|
||
// Test that a variety of WebAssembly features are all stable and can be used in | ||
// `#[target_feature]`. That should mean they're also available via | ||
// `#[cfg(target_feature)]` as well. | ||
|
||
#[target_feature(enable = "multivalue")] | ||
fn foo1() {} | ||
|
||
#[target_feature(enable = "reference-types")] | ||
fn foo2() {} | ||
|
||
#[target_feature(enable = "bulk-memory")] | ||
fn foo3() {} | ||
|
||
#[target_feature(enable = "extended-const")] | ||
fn foo4() {} | ||
|
||
#[target_feature(enable = "mutable-globals")] | ||
fn foo5() {} | ||
|
||
#[target_feature(enable = "nontrapping-fptoint")] | ||
fn foo6() {} | ||
|
||
#[target_feature(enable = "simd128")] | ||
fn foo7() {} | ||
|
||
#[target_feature(enable = "relaxed-simd")] | ||
fn foo8() {} | ||
|
||
#[target_feature(enable = "sign-ext")] | ||
fn foo9() {} | ||
|
||
#[target_feature(enable = "tail-call")] | ||
fn foo10() {} | ||
|
||
fn main() { | ||
foo1(); | ||
foo2(); | ||
foo3(); | ||
foo4(); | ||
foo5(); | ||
foo6(); | ||
foo7(); | ||
foo8(); | ||
foo9(); | ||
foo10(); | ||
} |
This file contains 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