-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #117680 - matthiaskrgr:rollup-kgaa4ma, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #115485 (Format macro const literals with pretty printer) - #117616 (warn when using an unstable feature with -Ctarget-feature) - #117639 (Update books) - #117675 (llvm-wrapper: Remove include of non-existant Vectorize.h) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
15 changed files
with
130 additions
and
42 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
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
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
Submodule reference
updated
4 files
+60 −0 | src/attributes/codegen.md | |
+10 −0 | src/expressions/operator-expr.md | |
+3 −1 | src/inline-assembly.md | |
+3 −1 | src/types/textual.md |
Submodule rust-by-example
updated
5 files
+2 −1 | src/error/option_unwrap/question_mark.md | |
+2 −2 | src/fn/closures.md | |
+1 −1 | src/std/hash/alt_key_types.md | |
+1 −1 | src/std_misc/file/read_lines.md | |
+1 −1 | src/std_misc/threads/testcase_mapreduce.md |
Submodule rustc-dev-guide
updated
8 files
+1 −1 | src/appendix/bibliography.md | |
+0 −1 | src/building/suggested.md | |
+6 −6 | src/feature-gates.md | |
+3 −3 | src/implementing_new_features.md | |
+46 −77 | src/llvm-coverage-instrumentation.md | |
+10 −1 | src/solve/invariants.md | |
+1 −1 | src/stabilization_guide.md | |
+84 −0 | src/traits/unsize.md |
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,40 @@ | ||
#![crate_name = "foo"] | ||
|
||
// @has foo/trait.Trait.html | ||
pub trait Trait<T> {} | ||
|
||
// @has foo/struct.WithConst.html | ||
pub struct WithConst<const N: usize>; | ||
|
||
macro_rules! spans_from_macro { | ||
() => { | ||
impl WithConst<42> { | ||
pub fn new() -> Self { | ||
Self | ||
} | ||
} | ||
impl Trait<WithConst<42>> for WithConst<42> {} | ||
impl Trait<WithConst<43>> for WithConst<{ 43 }> {} | ||
impl Trait<WithConst<{ 44 }>> for WithConst<44> {} | ||
pub struct Other { | ||
pub field: WithConst<42>, | ||
} | ||
}; | ||
} | ||
|
||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' \ | ||
// "impl Trait<WithConst<41>> for WithConst<41>" | ||
impl Trait<WithConst<41>> for WithConst<41> {} | ||
|
||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' \ | ||
// "impl WithConst<42>" | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' \ | ||
// "impl Trait<WithConst<42>> for WithConst<42>" | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' \ | ||
// "impl Trait<WithConst<43>> for WithConst<{ 43 }>" | ||
// @has - '//*[@class="impl"]//h3[@class="code-header"]' \ | ||
// "impl Trait<WithConst<44>> for WithConst<44>" | ||
|
||
// @has foo/struct.Other.html | ||
// @has - //pre "pub field: WithConst<42>" | ||
spans_from_macro!(); |
6 changes: 6 additions & 0 deletions
6
tests/ui/numbers-arithmetic/saturating-float-casts-wasm.stderr
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,6 @@ | ||
warning: unstable feature specified for `-Ctarget-feature`: `nontrapping-fptoint` | ||
| | ||
= note: this feature is not stably supported; its behavior can change in the future | ||
|
||
warning: 1 warning emitted | ||
|
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,6 @@ | ||
// compile-flags: -Ctarget-feature=+vaes --crate-type=rlib --target=x86_64-unknown-linux-gnu | ||
// build-pass | ||
// needs-llvm-components: x86 | ||
|
||
#![feature(no_core)] | ||
#![no_core] |
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,6 @@ | ||
warning: unstable feature specified for `-Ctarget-feature`: `vaes` | ||
| | ||
= note: this feature is not stably supported; its behavior can change in the future | ||
|
||
warning: 1 warning emitted | ||
|