rust
rust copied to clipboard
Add TyAlias into rustc_type_ir TyKind enum
Fixes https://github.com/rust-lang/compiler-team/issues/504.
This is still WIP but I think we're getting close to the end of the implementation. Thanks a lot to both @compiler-errors and @oli-obk for their great guidance and help!
cc @compiler-errors
r? @oli-obk
Some changes occured to the CTFE / Miri engine
cc @rust-lang/miri
Hey! It looks like you've submitted a new PR for the library teams!
If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.
Examples of T-libs-api changes:
- Stabilizing library features
- Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
- Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
- Changing public documentation in ways that create new stability guarantees
- Changing observable runtime behavior of library APIs
The job x86_64-gnu-llvm-12 failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
........................................................................................ 1848/13053
..........................................................................i............. 1936/13053
.............................................F.......................................... 2024/13053
........................................................................................ 2112/13053
............................F....F..............F.....F................................. 2200/13053
...F......F...F............................................F.........F....F............. 2288/13053
........F.......F...............F....................................................... 2376/13053
........................................................................................ 2552/13053
........................................................................................ 2640/13053
........................................................................................ 2728/13053
........................................................................................ 2816/13053
---
---- [ui] src/test/ui/const-generics/const-param-elided-lifetime.rs#min stdout ----
diff of stderr:
28 LL | fn bar<const N: &u8>() {}
29 | ^ explicit lifetime name needed here
30
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
33 |
33 |
34 LL | struct A<const N: &u8>;
37 = note: the only supported types are integers, `bool` and `char`
38 = help: more complex types are supported with `#![feature(adt_const_params)]`
39
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
42 |
42 |
43 LL | impl<const N: &u8> A<N> {
46 = note: the only supported types are integers, `bool` and `char`
47 = help: more complex types are supported with `#![feature(adt_const_params)]`
48
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
51 |
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
52 LL | fn foo<const M: &u8>(&self) {}
55 = note: the only supported types are integers, `bool` and `char`
56 = help: more complex types are supported with `#![feature(adt_const_params)]`
57
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
60 |
60 |
61 LL | impl<const N: &u8> B for A<N> {}
64 = note: the only supported types are integers, `bool` and `char`
65 = help: more complex types are supported with `#![feature(adt_const_params)]`
66
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
69 |
69 |
70 LL | fn bar<const N: &u8>() {}
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/const-param-elided-lifetime.min/const-param-elided-lifetime.min.stderr
To update references, rerun the tests and pass the `--bless` flag
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args const-generics/const-param-elided-lifetime.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/const-param-elided-lifetime.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/const-param-elided-lifetime.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/const-param-elided-lifetime.min/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | struct A<const N: &u8>;
| ^ explicit lifetime name needed here
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | impl<const N: &u8> A<N> {
| ^ explicit lifetime name needed here
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | fn foo<const M: &u8>(&self) {}
| ^ explicit lifetime name needed here
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | impl<const N: &u8> B for A<N> {}
| ^ explicit lifetime name needed here
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | fn bar<const N: &u8>() {}
| ^ explicit lifetime name needed here
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | struct A<const N: &u8>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | impl<const N: &u8> A<N> {
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | fn foo<const M: &u8>(&self) {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | impl<const N: &u8> B for A<N> {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | fn bar<const N: &u8>() {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to 10 previous errors
For more information about this error, try `rustc --explain E0637`.
------------------------------------------
------------------------------------------
---- [ui] src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs#min stdout ----
diff of stderr:
7 = note: type parameters may not be used in const expressions
8 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
- error: `&'static str` is forbidden as the type of a const generic parameter
+ error: `&str` is forbidden as the type of a const generic parameter
12 |
12 |
13 LL | trait Trait<const S: &'static str> {}
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/intrinsics-type_name-as-const-argument.min/intrinsics-type_name-as-const-argument.min.stderr
To update references, rerun the tests and pass the `--bless` flag
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args const-generics/intrinsics-type_name-as-const-argument.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/intrinsics-type_name-as-const-argument.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/intrinsics-type_name-as-const-argument.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: generic parameters may not be used in const operations
|
|
LL | T: Trait<{std::intrinsics::type_name::<T>()}>
| ^ cannot perform const operation using `T`
= note: type parameters may not be used in const expressions
= note: type parameters may not be used in const expressions
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
error: `&str` is forbidden as the type of a const generic parameter
|
|
LL | trait Trait<const S: &'static str> {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to 2 previous errors
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-56445-1.rs#min stdout ----
diff of stderr:
6 |
7 = note: for more information, see issue #74052 <https://github.com/rust-lang/rust/issues/74052>
8
- error: `&'static str` is forbidden as the type of a const generic parameter
+ error: `&str` is forbidden as the type of a const generic parameter
11 |
11 |
12 LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-56445-1.min/issue-56445-1.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-56445-1.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-56445-1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-56445-1.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-56445-1.min/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0771]: use of non-static lifetime `'a` in const generic
|
|
LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
|
= note: for more information, see issue #74052 <https://github.com/rust-lang/rust/issues/74052>
error: `&str` is forbidden as the type of a const generic parameter
|
|
LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0771`.
------------------------------------------
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs#full stdout ----
diff of stderr:
- error[E0741]: `(dyn A + 'static)` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
+ error[E0741]: `dyn A` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
3 |
3 |
4 LL | fn test<const T: &'static dyn A>() {
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.full/issue-63322-forbid-dyn.full.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-63322-forbid-dyn.rs`
error in revision `full`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "full" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.full" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.full/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0741]: `dyn A` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
|
|
LL | fn test<const T: &'static dyn A>() {
error: aborting due to previous error
For more information about this error, try `rustc --explain E0741`.
For more information about this error, try `rustc --explain E0741`.
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs#min stdout ----
diff of stderr:
- error: `&'static (dyn A + 'static)` is forbidden as the type of a const generic parameter
+ error: `&dyn A` is forbidden as the type of a const generic parameter
3 |
3 |
4 LL | fn test<const T: &'static dyn A>() {
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.min/issue-63322-forbid-dyn.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-63322-forbid-dyn.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: `&dyn A` is forbidden as the type of a const generic parameter
|
|
LL | fn test<const T: &'static dyn A>() {
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to previous error
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-73491.rs#min stdout ----
diff of stderr:
- error: `[u32; _]` is forbidden as the type of a const generic parameter
+ error: `[u32; 1024]` is forbidden as the type of a const generic parameter
3 |
3 |
4 LL | fn hoge<const IN: [u32; LEN]>() {}
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-73491.min/issue-73491.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-73491.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-73491.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-73491.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-73491.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: `[u32; 1024]` is forbidden as the type of a const generic parameter
|
|
LL | fn hoge<const IN: [u32; LEN]>() {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to previous error
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-74101.rs#min stdout ----
diff of stderr:
- error: `[u8; _]` is forbidden as the type of a const generic parameter
+ error: `[u8; 3]` is forbidden as the type of a const generic parameter
3 |
3 |
4 LL | fn test<const N: [u8; 1 + 2]>() {}
7 = note: the only supported types are integers, `bool` and `char`
8 = help: more complex types are supported with `#![feature(adt_const_params)]`
9
- error: `[u8; _]` is forbidden as the type of a const generic parameter
+ error: `[u8; 3]` is forbidden as the type of a const generic parameter
12 |
12 |
13 LL | struct Foo<const N: [u8; 1 + 2]>;
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-74101.min/issue-74101.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-74101.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-74101.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-74101.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-74101.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: `[u8; 3]` is forbidden as the type of a const generic parameter
|
|
LL | fn test<const N: [u8; 1 + 2]>() {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `[u8; 3]` is forbidden as the type of a const generic parameter
|
|
LL | struct Foo<const N: [u8; 1 + 2]>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to 2 previous errors
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-75047.rs#min stdout ----
diff of stderr:
- error: `[u8; _]` is forbidden as the type of a const generic parameter
+ error: `[u8; 42]` is forbidden as the type of a const generic parameter
3 |
3 |
4 LL | struct Foo<const N: [u8; Bar::<u32>::value()]>;
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-75047.min/issue-75047.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-75047.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-75047.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-75047.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-75047.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: `[u8; 42]` is forbidden as the type of a const generic parameter
|
|
LL | struct Foo<const N: [u8; Bar::<u32>::value()]>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to previous error
------------------------------------------
---- [ui] src/test/ui/const-generics/min_const_generics/complex-types.rs stdout ----
diff of stderr:
25 = note: the only supported types are integers, `bool` and `char`
26 = help: more complex types are supported with `#![feature(adt_const_params)]`
27
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
30 |
30 |
31 LL | struct Faz<const N: &'static u8>;
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/min_const_generics/complex-types/complex-types.stderr
To update references, rerun the tests and pass the `--bless` flag
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args const-generics/min_const_generics/complex-types.rs`
error: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/min_const_generics/complex-types.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/min_const_generics/complex-types" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/min_const_generics/complex-types/auxiliary"
stdout: none
--- stderr -------------------------------
error: `[u8; 0]` is forbidden as the type of a const generic parameter
|
|
LL | struct Foo<const N: [u8; 0]>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `()` is forbidden as the type of a const generic parameter
|
|
LL | struct Bar<const N: ()>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `No` is forbidden as the type of a const generic parameter
|
|
LL | struct Fez<const N: No>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | struct Faz<const N: &'static u8>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `!` is forbidden as the type of a const generic parameter
|
|
LL | struct Fiz<const N: !>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `()` is forbidden as the type of a const generic parameter
|
|
LL | enum Goo<const N: ()> { A, B }
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `()` is forbidden as the type of a const generic parameter
|
|
LL | union Boo<const N: ()> { a: () }
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
:umbrella: The latest upstream changes (presumably #97905) made this pull request unmergeable. Please resolve the merge conflicts.
The job x86_64-gnu-llvm-12 failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
........................................................................................ 1848/13063
..........................................................................i............. 1936/13063
................................................F....................................... 2024/13063
........................................................................................ 2112/13063
........................F......F...............FF....................................... 2200/13063
....F..F.....F..........................................F............F..F............... 2288/13063
.......F........F.............F......................................................... 2376/13063
........................................................................................ 2552/13063
........................................................................................ 2640/13063
........................................................................................ 2728/13063
........................................................................................ 2816/13063
---
........................................................................................ 11264/13063
........................................................................................ 11352/13063
........................................................................................ 11440/13063
........................................................................................ 11528/13063
......F...................i.....F..i........i.....i............................i........ 11616/13063
........................................................................................ 11792/13063
........................................................................................ 11880/13063
........................................................................................ 11968/13063
........................................................................................ 12056/13063
---
---- [ui] src/test/ui/const-generics/const-param-elided-lifetime.rs#min stdout ----
diff of stderr:
28 LL | fn bar<const N: &u8>() {}
29 | ^ explicit lifetime name needed here
30
- error: `&'static u8` is forbidden as the type of a const generic parameter
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
+ error: `&u8` is forbidden as the type of a const generic parameter
33 |
33 |
34 LL | struct A<const N: &u8>;
37 = note: the only supported types are integers, `bool` and `char`
38 = help: more complex types are supported with `#![feature(adt_const_params)]`
39
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
42 |
42 |
43 LL | impl<const N: &u8> A<N> {
46 = note: the only supported types are integers, `bool` and `char`
47 = help: more complex types are supported with `#![feature(adt_const_params)]`
48
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
51 |
51 |
52 LL | fn foo<const M: &u8>(&self) {}
55 = note: the only supported types are integers, `bool` and `char`
56 = help: more complex types are supported with `#![feature(adt_const_params)]`
57
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
60 |
60 |
61 LL | impl<const N: &u8> B for A<N> {}
64 = note: the only supported types are integers, `bool` and `char`
65 = help: more complex types are supported with `#![feature(adt_const_params)]`
66
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
69 |
69 |
70 LL | fn bar<const N: &u8>() {}
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/const-param-elided-lifetime.min/const-param-elided-lifetime.min.stderr
To update references, rerun the tests and pass the `--bless` flag
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args const-generics/const-param-elided-lifetime.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/const-param-elided-lifetime.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/const-param-elided-lifetime.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/const-param-elided-lifetime.min/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | struct A<const N: &u8>;
| ^ explicit lifetime name needed here
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | impl<const N: &u8> A<N> {
| ^ explicit lifetime name needed here
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | fn foo<const M: &u8>(&self) {}
| ^ explicit lifetime name needed here
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | impl<const N: &u8> B for A<N> {}
| ^ explicit lifetime name needed here
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | fn bar<const N: &u8>() {}
| ^ explicit lifetime name needed here
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | struct A<const N: &u8>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | impl<const N: &u8> A<N> {
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | fn foo<const M: &u8>(&self) {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | impl<const N: &u8> B for A<N> {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | fn bar<const N: &u8>() {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to 10 previous errors
For more information about this error, try `rustc --explain E0637`.
------------------------------------------
------------------------------------------
---- [ui] src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs#min stdout ----
diff of stderr:
7 = note: type parameters may not be used in const expressions
8 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
- error: `&'static str` is forbidden as the type of a const generic parameter
+ error: `&str` is forbidden as the type of a const generic parameter
12 |
12 |
13 LL | trait Trait<const S: &'static str> {}
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/intrinsics-type_name-as-const-argument.min/intrinsics-type_name-as-const-argument.min.stderr
To update references, rerun the tests and pass the `--bless` flag
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args const-generics/intrinsics-type_name-as-const-argument.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/intrinsics-type_name-as-const-argument.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/intrinsics-type_name-as-const-argument.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: generic parameters may not be used in const operations
|
|
LL | T: Trait<{std::intrinsics::type_name::<T>()}>
| ^ cannot perform const operation using `T`
= note: type parameters may not be used in const expressions
= note: type parameters may not be used in const expressions
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
error: `&str` is forbidden as the type of a const generic parameter
|
|
LL | trait Trait<const S: &'static str> {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to 2 previous errors
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-56445-1.rs#min stdout ----
diff of stderr:
6 |
7 = note: for more information, see issue #74052 <https://github.com/rust-lang/rust/issues/74052>
8
- error: `&'static str` is forbidden as the type of a const generic parameter
+ error: `&str` is forbidden as the type of a const generic parameter
11 |
11 |
12 LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-56445-1.min/issue-56445-1.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-56445-1.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-56445-1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-56445-1.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-56445-1.min/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0771]: use of non-static lifetime `'a` in const generic
|
|
LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
|
= note: for more information, see issue #74052 <https://github.com/rust-lang/rust/issues/74052>
error: `&str` is forbidden as the type of a const generic parameter
|
|
LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0771`.
------------------------------------------
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs#min stdout ----
diff of stderr:
- error: `&'static (dyn A + 'static)` is forbidden as the type of a const generic parameter
+ error: `&dyn A` is forbidden as the type of a const generic parameter
3 |
3 |
4 LL | fn test<const T: &'static dyn A>() {
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.min/issue-63322-forbid-dyn.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-63322-forbid-dyn.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: `&dyn A` is forbidden as the type of a const generic parameter
|
|
LL | fn test<const T: &'static dyn A>() {
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to previous error
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs#full stdout ----
diff of stderr:
- error[E0741]: `(dyn A + 'static)` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
+ error[E0741]: `dyn A` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
3 |
3 |
4 LL | fn test<const T: &'static dyn A>() {
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.full/issue-63322-forbid-dyn.full.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-63322-forbid-dyn.rs`
error in revision `full`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "full" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.full" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-63322-forbid-dyn.full/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0741]: `dyn A` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
|
|
LL | fn test<const T: &'static dyn A>() {
error: aborting due to previous error
For more information about this error, try `rustc --explain E0741`.
For more information about this error, try `rustc --explain E0741`.
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-73491.rs#min stdout ----
diff of stderr:
- error: `[u32; _]` is forbidden as the type of a const generic parameter
+ error: `[u32; 1024]` is forbidden as the type of a const generic parameter
3 |
3 |
4 LL | fn hoge<const IN: [u32; LEN]>() {}
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-73491.min/issue-73491.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-73491.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-73491.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-73491.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-73491.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: `[u32; 1024]` is forbidden as the type of a const generic parameter
|
|
LL | fn hoge<const IN: [u32; LEN]>() {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to previous error
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-74101.rs#min stdout ----
diff of stderr:
- error: `[u8; _]` is forbidden as the type of a const generic parameter
+ error: `[u8; 3]` is forbidden as the type of a const generic parameter
3 |
3 |
4 LL | fn test<const N: [u8; 1 + 2]>() {}
7 = note: the only supported types are integers, `bool` and `char`
8 = help: more complex types are supported with `#![feature(adt_const_params)]`
9
- error: `[u8; _]` is forbidden as the type of a const generic parameter
+ error: `[u8; 3]` is forbidden as the type of a const generic parameter
12 |
12 |
13 LL | struct Foo<const N: [u8; 1 + 2]>;
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-74101.min/issue-74101.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-74101.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-74101.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-74101.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-74101.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: `[u8; 3]` is forbidden as the type of a const generic parameter
|
|
LL | fn test<const N: [u8; 1 + 2]>() {}
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `[u8; 3]` is forbidden as the type of a const generic parameter
|
|
LL | struct Foo<const N: [u8; 1 + 2]>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to 2 previous errors
------------------------------------------
---- [ui] src/test/ui/const-generics/issues/issue-75047.rs#min stdout ----
diff of stderr:
- error: `[u8; _]` is forbidden as the type of a const generic parameter
+ error: `[u8; 42]` is forbidden as the type of a const generic parameter
3 |
3 |
4 LL | struct Foo<const N: [u8; Bar::<u32>::value()]>;
The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-75047.min/issue-75047.min.stderr
To only update this specific test, also pass `--test-args const-generics/issues/issue-75047.rs`
error in revision `min`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/issues/issue-75047.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "min" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-75047.min" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/issues/issue-75047.min/auxiliary"
stdout: none
--- stderr -------------------------------
error: `[u8; 42]` is forbidden as the type of a const generic parameter
|
|
LL | struct Foo<const N: [u8; Bar::<u32>::value()]>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: aborting due to previous error
------------------------------------------
---- [ui] src/test/ui/const-generics/min_const_generics/complex-types.rs stdout ----
diff of stderr:
25 = note: the only supported types are integers, `bool` and `char`
26 = help: more complex types are supported with `#![feature(adt_const_params)]`
27
- error: `&'static u8` is forbidden as the type of a const generic parameter
+ error: `&u8` is forbidden as the type of a const generic parameter
30 |
30 |
31 LL | struct Faz<const N: &'static u8>;
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/min_const_generics/complex-types/complex-types.stderr
To update references, rerun the tests and pass the `--bless` flag
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args const-generics/min_const_generics/complex-types.rs`
error: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/min_const_generics/complex-types.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/min_const_generics/complex-types" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/min_const_generics/complex-types/auxiliary"
stdout: none
--- stderr -------------------------------
error: `[u8; 0]` is forbidden as the type of a const generic parameter
|
|
LL | struct Foo<const N: [u8; 0]>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `()` is forbidden as the type of a const generic parameter
|
|
LL | struct Bar<const N: ()>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `No` is forbidden as the type of a const generic parameter
|
|
LL | struct Fez<const N: No>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `&u8` is forbidden as the type of a const generic parameter
|
|
LL | struct Faz<const N: &'static u8>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `!` is forbidden as the type of a const generic parameter
|
|
LL | struct Fiz<const N: !>;
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `()` is forbidden as the type of a const generic parameter
|
|
LL | enum Goo<const N: ()> { A, B }
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
error: `()` is forbidden as the type of a const generic parameter
|
|
LL | union Boo<const N: ()> { a: () }
|
|
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
Only two UI tests are failing now and it's about mangling. I'll wait for the rest to be approved to update them.
The job x86_64-gnu-llvm-12 failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
........................................................................................ 11264/13063
........................................................................................ 11352/13063
........................................................................................ 11440/13063
........................................................................................ 11528/13063
.......F..................i......F.i........i.....i............................i........ 11616/13063
........................................................................................ 11792/13063
........................................................................................ 11880/13063
........................................................................................ 11968/13063
........................................................................................ 12056/13063
---
---- [ui] src/test/ui/symbol-names/basic.rs#legacy stdout ----
diff of stderr:
- error: symbol-name(_ZN5basic4main17hcbad207c0eeb0b3bE)
+ error: symbol-name(_ZN5basic4main17he9f658e438f1cac0E)
3 |
4 LL | #[rustc_symbol_name]
5 | ^^^^^^^^^^^^^^^^^^^^
5 | ^^^^^^^^^^^^^^^^^^^^
6
- error: demangling(basic::main::hcbad207c0eeb0b3b)
+ error: demangling(basic::main::he9f658e438f1cac0)
9 |
10 LL | #[rustc_symbol_name]
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy/basic.legacy.stderr
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
To only update this specific test, also pass `--test-args symbol-names/basic.rs`
error in revision `legacy`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/symbol-names/basic.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "legacy" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-C" "symbol-mangling-version=legacy" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy/auxiliary"
stdout: none
--- stderr -------------------------------
error: symbol-name(_ZN5basic4main17he9f658e438f1cac0E)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling(basic::main::he9f658e438f1cac0)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling-alt(basic::main)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: def-path(main)
--> /checkout/src/test/ui/symbol-names/basic.rs:15:1
|
LL | #[rustc_def_path]
error: aborting due to 4 previous errors
------------------------------------------
---- [ui] src/test/ui/symbol-names/issue-60925.rs#legacy stdout ----
diff of stderr:
- error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h2f2efcf580c9b1eeE)
+ error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h13209029be24b923E)
3 |
4 LL | #[rustc_symbol_name]
5 | ^^^^^^^^^^^^^^^^^^^^
5 | ^^^^^^^^^^^^^^^^^^^^
6
- error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h2f2efcf580c9b1ee)
+ error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h13209029be24b923)
9 |
10 LL | #[rustc_symbol_name]
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy/issue-60925.legacy.stderr
To only update this specific test, also pass `--test-args symbol-names/issue-60925.rs`
error in revision `legacy`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/symbol-names/issue-60925.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "legacy" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-C" "symbol-mangling-version=legacy" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy/auxiliary"
stdout: none
--- stderr -------------------------------
error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h13209029be24b923E)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h13209029be24b923)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling-alt(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
The job x86_64-gnu-llvm-12 failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
........................................................................................ 11264/13063
........................................................................................ 11352/13063
........................................................................................ 11440/13063
........................................................................................ 11528/13063
.....F....................i.....F...i.......i.....i............................i........ 11616/13063
........................................................................................ 11792/13063
........................................................................................ 11880/13063
........................................................................................ 11968/13063
........................................................................................ 12056/13063
---
---- [ui] src/test/ui/symbol-names/basic.rs#legacy stdout ----
diff of stderr:
- error: symbol-name(_ZN5basic4main17hcbad207c0eeb0b3bE)
+ error: symbol-name(_ZN5basic4main17he9f658e438f1cac0E)
3 |
4 LL | #[rustc_symbol_name]
5 | ^^^^^^^^^^^^^^^^^^^^
5 | ^^^^^^^^^^^^^^^^^^^^
6
- error: demangling(basic::main::hcbad207c0eeb0b3b)
+ error: demangling(basic::main::he9f658e438f1cac0)
9 |
10 LL | #[rustc_symbol_name]
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy/basic.legacy.stderr
To only update this specific test, also pass `--test-args symbol-names/basic.rs`
error in revision `legacy`: 1 errors occurred comparing output.
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/symbol-names/basic.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "legacy" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-C" "symbol-mangling-version=legacy" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy/auxiliary"
stdout: none
--- stderr -------------------------------
error: symbol-name(_ZN5basic4main17he9f658e438f1cac0E)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling(basic::main::he9f658e438f1cac0)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling-alt(basic::main)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: def-path(main)
--> /checkout/src/test/ui/symbol-names/basic.rs:15:1
|
LL | #[rustc_def_path]
error: aborting due to 4 previous errors
------------------------------------------
---- [ui] src/test/ui/symbol-names/issue-60925.rs#legacy stdout ----
diff of stderr:
- error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h2f2efcf580c9b1eeE)
+ error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h13209029be24b923E)
3 |
4 LL | #[rustc_symbol_name]
5 | ^^^^^^^^^^^^^^^^^^^^
5 | ^^^^^^^^^^^^^^^^^^^^
6
- error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h2f2efcf580c9b1ee)
+ error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h13209029be24b923)
9 |
10 LL | #[rustc_symbol_name]
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy/issue-60925.legacy.stderr
To only update this specific test, also pass `--test-args symbol-names/issue-60925.rs`
error in revision `legacy`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/symbol-names/issue-60925.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "legacy" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-C" "symbol-mangling-version=legacy" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy/auxiliary"
stdout: none
--- stderr -------------------------------
error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h13209029be24b923E)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h13209029be24b923)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling-alt(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
Replaced the type_of calls and applied the comments.
The job x86_64-gnu-llvm-12 failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
........................................................................................ 11264/13063
........................................................................................ 11352/13063
........................................................................................ 11440/13063
........................................................................................ 11528/13063
......F...................i.....F..i........i.....i............................i........ 11616/13063
........................................................................................ 11792/13063
........................................................................................ 11880/13063
........................................................................................ 11968/13063
........................................................................................ 12056/13063
---
---- [ui] src/test/ui/symbol-names/basic.rs#legacy stdout ----
diff of stderr:
- error: symbol-name(_ZN5basic4main17hcbad207c0eeb0b3bE)
+ error: symbol-name(_ZN5basic4main17he9f658e438f1cac0E)
3 |
4 LL | #[rustc_symbol_name]
5 | ^^^^^^^^^^^^^^^^^^^^
5 | ^^^^^^^^^^^^^^^^^^^^
6
- error: demangling(basic::main::hcbad207c0eeb0b3b)
+ error: demangling(basic::main::he9f658e438f1cac0)
9 |
10 LL | #[rustc_symbol_name]
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy/basic.legacy.stderr
To only update this specific test, also pass `--test-args symbol-names/basic.rs`
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
error in revision `legacy`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/symbol-names/basic.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "legacy" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-C" "symbol-mangling-version=legacy" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy/auxiliary"
stdout: none
--- stderr -------------------------------
error: symbol-name(_ZN5basic4main17he9f658e438f1cac0E)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling(basic::main::he9f658e438f1cac0)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling-alt(basic::main)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: def-path(main)
--> /checkout/src/test/ui/symbol-names/basic.rs:15:1
|
LL | #[rustc_def_path]
error: aborting due to 4 previous errors
------------------------------------------
---- [ui] src/test/ui/symbol-names/issue-60925.rs#legacy stdout ----
diff of stderr:
- error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h2f2efcf580c9b1eeE)
+ error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h13209029be24b923E)
3 |
4 LL | #[rustc_symbol_name]
5 | ^^^^^^^^^^^^^^^^^^^^
5 | ^^^^^^^^^^^^^^^^^^^^
6
- error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h2f2efcf580c9b1ee)
+ error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h13209029be24b923)
9 |
10 LL | #[rustc_symbol_name]
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy/issue-60925.legacy.stderr
To only update this specific test, also pass `--test-args symbol-names/issue-60925.rs`
error in revision `legacy`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/symbol-names/issue-60925.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "legacy" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-C" "symbol-mangling-version=legacy" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy/auxiliary"
stdout: none
--- stderr -------------------------------
error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h13209029be24b923E)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h13209029be24b923)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling-alt(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
@bors try @rust-timer queue
won't get to this before next week
Awaiting bors try build completion.
@rustbot label: +S-waiting-on-perf
:hourglass: Trying commit c9f5d4e227127e9c11e6b0a19b534abcbad6be7a with merge a2a309290e7901fd85bbba6cc69b2f368162312d...
The job x86_64-gnu-llvm-12 failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
........................................................................................ 11264/13063
........................................................................................ 11352/13063
........................................................................................ 11440/13063
........................................................................................ 11528/13063
......F...................i........iF.......i.....i............................i........ 11616/13063
........................................................................................ 11792/13063
........................................................................................ 11880/13063
........................................................................................ 11968/13063
........................................................................................ 12056/13063
---
---- [ui] src/test/ui/symbol-names/basic.rs#legacy stdout ----
diff of stderr:
- error: symbol-name(_ZN5basic4main17hcbad207c0eeb0b3bE)
+ error: symbol-name(_ZN5basic4main17he9f658e438f1cac0E)
3 |
4 LL | #[rustc_symbol_name]
5 | ^^^^^^^^^^^^^^^^^^^^
5 | ^^^^^^^^^^^^^^^^^^^^
6
- error: demangling(basic::main::hcbad207c0eeb0b3b)
+ error: demangling(basic::main::he9f658e438f1cac0)
9 |
10 LL | #[rustc_symbol_name]
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy/basic.legacy.stderr
To only update this specific test, also pass `--test-args symbol-names/basic.rs`
error in revision `legacy`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/symbol-names/basic.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "legacy" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-C" "symbol-mangling-version=legacy" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/basic.legacy/auxiliary"
stdout: none
--- stderr -------------------------------
error: symbol-name(_ZN5basic4main17he9f658e438f1cac0E)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling(basic::main::he9f658e438f1cac0)
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
| ^^^^^^^^^^^^^^^^^^^^
error: demangling-alt(basic::main)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: def-path(main)
--> /checkout/src/test/ui/symbol-names/basic.rs:15:1
|
LL | #[rustc_def_path]
error: aborting due to 4 previous errors
------------------------------------------
---- [ui] src/test/ui/symbol-names/issue-60925.rs#legacy stdout ----
diff of stderr:
- error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h2f2efcf580c9b1eeE)
+ error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h13209029be24b923E)
3 |
4 LL | #[rustc_symbol_name]
5 | ^^^^^^^^^^^^^^^^^^^^
5 | ^^^^^^^^^^^^^^^^^^^^
6
- error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h2f2efcf580c9b1ee)
+ error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h13209029be24b923)
9 |
10 LL | #[rustc_symbol_name]
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy/issue-60925.legacy.stderr
To only update this specific test, also pass `--test-args symbol-names/issue-60925.rs`
error in revision `legacy`: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/symbol-names/issue-60925.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "legacy" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-C" "symbol-mangling-version=legacy" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/symbol-names/issue-60925.legacy/auxiliary"
stdout: none
--- stderr -------------------------------
error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h13209029be24b923E)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h13209029be24b923)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
error: demangling-alt(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo)
|
LL | #[rustc_symbol_name]
| ^^^^^^^^^^^^^^^^^^^^
The job x86_64-gnu-llvm-12 failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
---- [ui] src/test/ui-fulldeps/internal-lints/ty_tykind_usage.rs stdout ----
diff of stderr:
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:13:16
+ error[E0004]: non-exhaustive patterns: `TyAlias(_, _)` not covered
+ --> $DIR/ty_tykind_usage.rs:15:11
- LL | let kind = TyKind::Bool;
- LL | let kind = TyKind::Bool;
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
+ LL | match kind {
+ | ^^^^ pattern `TyAlias(_, _)` not covered
- note: the lint level is defined here
- --> $DIR/ty_tykind_usage.rs:11:8
- --> $DIR/ty_tykind_usage.rs:11:8
+ note: `TyKind<TyCtxt>` defined here
+ --> $COMPILER_DIR/rustc_type_ir/src/sty.rs:86:5
9 |
- LL | #[deny(rustc::usage_of_ty_tykind)]
-
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:16:9
+ LL | / pub enum TyKind<I: Interner> {
+ LL | | /// The primitive boolean type. Written as `bool`.
+ LL | | Bool,
+ LL | |
+ ... |
+ LL | | TyAlias(I::DefId, I::SubstsRef),
+ ... |
+ ... |
+ LL | | Error(I::DelaySpanBugEmitted),
+ LL | | }
+ | |_-
+ = note: the matched value is of type `TyKind<TyCtxt>`
+ help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
15 |
- LL | TyKind::Bool => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:17:9
+ LL ~ TyKind::Error(_) => (),
+ LL ~ TyAlias(_, _) => todo!(),
21 |
- LL | TyKind::Char => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
24
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:18:9
- |
- LL | TyKind::Int(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
+ error: aborting due to previous error
30
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:19:9
- |
- LL | TyKind::Uint(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:20:9
- |
- LL | TyKind::Float(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:21:9
- |
- LL | TyKind::Adt(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:22:9
- |
- LL | TyKind::Foreign(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:23:9
- |
- LL | TyKind::Str => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:24:9
- |
- LL | TyKind::Array(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:25:9
- |
- LL | TyKind::Slice(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:26:9
- |
- LL | TyKind::RawPtr(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:27:9
- |
- LL | TyKind::Ref(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:28:9
- |
- LL | TyKind::FnDef(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:29:9
- |
- LL | TyKind::FnPtr(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:30:9
- |
- LL | TyKind::Dynamic(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:31:9
- |
- LL | TyKind::Closure(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:32:9
- |
- LL | TyKind::Generator(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:33:9
- |
- LL | TyKind::GeneratorWitness(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:34:9
- |
- LL | TyKind::Never => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:35:9
- |
- LL | TyKind::Tuple(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:36:9
- |
- LL | TyKind::Projection(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:37:9
- |
- LL | TyKind::Opaque(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:38:9
- |
- LL | TyKind::Param(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:39:9
- |
- LL | TyKind::Bound(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:40:9
- |
- LL | TyKind::Placeholder(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:41:9
- |
- LL | TyKind::Infer(..) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:42:9
- |
- LL | TyKind::Error(_) => (),
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:47:12
- |
- LL | if let TyKind::Int(int_ty) = kind {}
- | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
- error: usage of `ty::TyKind`
- --> $DIR/ty_tykind_usage.rs:49:24
- |
- |
- LL | fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
- |
- = help: try using `Ty` instead
-
- error: usage of `ty::TyKind`
- error: usage of `ty::TyKind`
- --> $DIR/ty_tykind_usage.rs:51:37
- |
- LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
- |
- = help: try using `Ty` instead
-
- error: usage of `ty::TyKind`
- error: usage of `ty::TyKind`
- --> $DIR/ty_tykind_usage.rs:51:53
- |
- LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
- |
- = help: try using `Ty` instead
-
-
- error: usage of `ty::TyKind::<kind>`
- --> $DIR/ty_tykind_usage.rs:54:9
- |
- LL | IrTyKind::Bool
- | |
- | |
- | help: try using `ty::<kind>` directly: `ty`
- error: aborting due to 33 previous errors
-
+ For more information about this error, try `rustc --explain E0004`.
215
---
To only update this specific test, also pass `--test-args internal-lints/ty_tykind_usage.rs`
error: 1 errors occurred comparing output.
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui-fulldeps/internal-lints/ty_tykind_usage.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/ty_tykind_usage" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "unstable-options" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/ty_tykind_usage/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0004]: non-exhaustive patterns: `TyAlias(_, _)` not covered
|
LL | match kind {
LL | match kind {
| ^^^^ pattern `TyAlias(_, _)` not covered
|
note: `TyKind<TyCtxt>` defined here
--> /checkout/compiler/rustc_type_ir/src/sty.rs:86:5
|
LL | / pub enum TyKind<I: Interner> {
LL | | /// The primitive boolean type. Written as `bool`.
LL | | Bool,
LL | |
... |
LL | | TyAlias(I::DefId, I::SubstsRef),
... |
... |
LL | | Error(I::DelaySpanBugEmitted),
LL | | }
| |_-
= note: the matched value is of type `TyKind<TyCtxt>`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
LL ~ TyKind::Error(_) => (), //~ ERROR usage of `ty::TyKind::<kind>`
LL ~ TyAlias(_, _) => todo!(), //~ ERROR usage of `ty::TyKind::<kind>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0004`.
@rust-timer build a2a309290e7901fd85bbba6cc69b2f368162312d
Queued a2a309290e7901fd85bbba6cc69b2f368162312d with parent 083721a1a7365d3afe1521cd2661b2201aac0450, future comparison URL.
Finished benchmarking commit (a2a309290e7901fd85bbba6cc69b2f368162312d): comparison url.
Instruction count
- Primary benchmarks: mixed results
- Secondary benchmarks: mixed results
| mean[^1] | max | count[^2] | |
|---|---|---|---|
| Regressions πΏ (primary) |
0.5% | 0.8% | 9 |
| Regressions πΏ (secondary) |
1.2% | 4.2% | 24 |
| Improvements π (primary) |
-0.5% | -0.6% | 2 |
| Improvements π (secondary) |
-1.4% | -1.6% | 6 |
| All πΏπ (primary) | 0.3% | 0.8% | 11 |
Max RSS (memory usage)
Results
- Primary benchmarks: no relevant changes found
- Secondary benchmarks: π relevant improvement found
| mean[^1] | max | count[^2] | |
|---|---|---|---|
| Regressions πΏ (primary) |
N/A | N/A | 0 |
| Regressions πΏ (secondary) |
N/A | N/A | 0 |
| Improvements π (primary) |
N/A | N/A | 0 |
| Improvements π (secondary) |
-3.0% | -3.0% | 1 |
| All πΏπ (primary) | N/A | N/A | 0 |
Cycles
Results
- Primary benchmarks: mixed results
- Secondary benchmarks: no relevant changes found
| mean[^1] | max | count[^2] | |
|---|---|---|---|
| Regressions πΏ (primary) |
2.5% | 2.7% | 2 |
| Regressions πΏ (secondary) |
N/A | N/A | 0 |
| Improvements π (primary) |
-2.6% | -2.6% | 1 |
| Improvements π (secondary) |
N/A | N/A | 0 |
| All πΏπ (primary) | 0.8% | 2.7% | 3 |
[^1]: the arithmetic mean of the percent change [^2]: number of relevant changes
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.
Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.
Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.
@bors rollup=never @rustbot label: +S-waiting-on-review -S-waiting-on-perf +perf-regression
deeply nested (biggest regression) in cachegrind:
57,039,437 ???:<&rustc_middle::ty::list::List<rustc_middle::ty::Ty> as rustc_middle::ty::fold::TypeFoldable>::try_fold_with::<rustc_middle::ty::fold::RegionFolder>
18,020,280 ???:<rustc_middle::ty::Ty as rustc_middle::ty::fold::TypeSuperFoldable>::super_fold_with::<rustc_middle::ty::fold::RegionFolder>
-17,691,750 ???:<rustc_middle::ty::fold::RegionFolder as rustc_middle::ty::fold::FallibleTypeFolder>::try_fold_binder::<&rustc_middle::ty::list::List<rustc_middle::ty::Ty>>
17,691,750 ???:<rustc_middle::ty::sty::Binder<&rustc_middle::ty::list::List<rustc_middle::ty::Ty>> as rustc_middle::ty::fold::TypeFoldable>::try_fold_with::<rustc_middle::ty::fold::RegionFolder>
15,780,887 ???:<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg> as rustc_middle::ty::fold::TypeFoldable>::try_fold_with::<rustc_middle::ty::fold::RegionFolder>
7,517,816 ???:<rustc_middle::ty::fold::RegionFolder as rustc_middle::ty::fold::FallibleTypeFolder>::try_fold_ty
2,328,794 ???:<rustc_type_ir::sty::TyKind<rustc_middle::ty::context::TyCtxt> as core::cmp::PartialEq>::eq
2,136,544 ???:<rustc_infer::infer::InferCtxt>::commit_unconditionally::<rustc_middle::traits::ImplSourceUserDefinedData<rustc_infer::traits::Obligation<rustc_middle::ty::Predicate>>, <rustc_trait_selection::traits::select::SelectionContext>::confirm_impl_candidate::{closure
2,124,505 ???:<rustc_infer::infer::resolve::OpportunisticVarResolver as rustc_middle::ty::fold::TypeFolder>::fold_ty
-2,063,444 ???:<rustc_trait_selection::traits::select::SelectionContext>::vtable_impl
2,030,069 ???:<rustc_middle::ty::context::CtxtInterners>::intern_ty
-1,822,536 ???:<rustc_middle::ty::Ty as rustc_middle::ty::fold::TypeSuperFoldable>::super_fold_with::<rustc_infer::infer::resolve::OpportunisticVarResolver>
1,252,075 ???:<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg> as rustc_middle::ty::fold::TypeFoldable>::try_fold_with::<rustc_infer::infer::resolve::OpportunisticVarResolver>
-660,499 ???:<rustc_infer::infer::resolve::OpportunisticVarResolver as rustc_middle::ty::fold::FallibleTypeFolder>::try_fold_ty
:umbrella: The latest upstream changes (presumably #98123) made this pull request unmergeable. Please resolve the merge conflicts.
Seems like CI passed this time. So what is the next step here? There is the regression mentioned by @oli-obk but is there something else?
:umbrella: The latest upstream changes (presumably #98247) made this pull request unmergeable. Please resolve the merge conflicts.
For my own sanity I would like to crater this change before merging it.
With all the change requests addressed, run it through crater in check mode
@rustbot author
The job mingw-check failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
configure: rust.debug-assertions := True
configure: rust.overflow-checks := True
configure: llvm.assertions := True
configure: dist.missing-tools := True
configure: build.configure-args := ['--enable-sccache', '--disable-manage-submodu ...
configure: writing `config.toml` in current directory
configure:
configure: run `python /checkout/x.py --help`
configure:
---
skip untracked path cpu-usage.csv during rustfmt invocations
skip untracked path src/doc/book/ during rustfmt invocations
skip untracked path src/doc/rust-by-example/ during rustfmt invocations
skip untracked path src/llvm-project/ during rustfmt invocations
Diff in /checkout/compiler/rustc_const_eval/src/interpret/intrinsics.rs at line 10:
interpret::{ConstValue, GlobalId, InterpResult, Scalar},
};
+use rustc_middle::ty;
use rustc_middle::ty::layout::LayoutOf as _;
use rustc_middle::ty::layout::LayoutOf as _;
use rustc_middle::ty::subst::SubstsRef;
-use rustc_middle::ty;
use rustc_middle::ty::{Ty, TyCtxt};
use rustc_span::symbol::{sym, Symbol};
use rustc_target::abi::{Abi, Align, InitKind, Primitive, Size};
Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/compiler/rustc_const_eval/src/interpret/traits.rs" "/checkout/compiler/rustc_const_eval/src/interpret/terminator.rs" "/checkout/compiler/rustc_const_eval/src/interpret/intern.rs" "/checkout/compiler/rustc_span/src/symbol/tests.rs" "/checkout/compiler/rustc_const_eval/src/interpret/step.rs" "/checkout/compiler/rustc_const_eval/src/interpret/operand.rs" "/checkout/compiler/rustc_const_eval/src/interpret/mod.rs" "/checkout/compiler/rustc_const_eval/src/interpret/intrinsics.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
The job mingw-check failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
configure: rust.debug-assertions := True
configure: rust.overflow-checks := True
configure: llvm.assertions := True
configure: dist.missing-tools := True
configure: build.configure-args := ['--enable-sccache', '--disable-manage-submodu ...
configure: writing `config.toml` in current directory
configure:
configure: run `python /checkout/x.py --help`
configure:
---
skip untracked path cpu-usage.csv during rustfmt invocations
skip untracked path src/doc/book/ during rustfmt invocations
skip untracked path src/doc/rust-by-example/ during rustfmt invocations
skip untracked path src/llvm-project/ during rustfmt invocations
Diff in /checkout/compiler/rustc_const_eval/src/interpret/intrinsics.rs at line 10:
interpret::{ConstValue, GlobalId, InterpResult, Scalar},
};
+use rustc_middle::ty;
use rustc_middle::ty::layout::LayoutOf as _;
use rustc_middle::ty::layout::LayoutOf as _;
use rustc_middle::ty::subst::SubstsRef;
-use rustc_middle::ty;
use rustc_middle::ty::{Ty, TyCtxt};
use rustc_span::symbol::{sym, Symbol};
use rustc_target::abi::{Abi, Align, InitKind, Primitive, Size};
Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/compiler/rustc_const_eval/src/util/find_self_call.rs" "/checkout/compiler/rustc_const_eval/src/interpret/intrinsics/type_name.rs" "/checkout/compiler/rustc_const_eval/src/interpret/intrinsics.rs" "/checkout/compiler/rustc_const_eval/src/interpret/intrinsics/caller_location.rs" "/checkout/compiler/rustc_const_eval/src/interpret/traits.rs" "/checkout/compiler/rustc_const_eval/src/interpret/terminator.rs" "/checkout/compiler/rustc_const_eval/src/interpret/step.rs" "/checkout/compiler/rustc_const_eval/src/interpret/intern.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
Even with changing how we handle TyAlias in print_type, the mangling change remains so it's apparently not coming from this place. But if not from there, I have no idea where it could come from...
Apart from that, I applied all @oli-obk's suggestions.
@rustbot ready
Add TyAlias into rustc_hir TyKind enum
This title is a bit out of date. Maybe "Add TyAlias as a distinct type in typeck" or something that makes this not so HIR-focused, since we're mostly changing stuff below HIR/astconv.
Good point. I updated the title.
@bors try