Skip to content

make TyKind artificially bigger#153606

Draft
WaffleLapkin wants to merge 1 commit intorust-lang:mainfrom
WaffleLapkin:chonky-ty-kind-perf-test
Draft

make TyKind artificially bigger#153606
WaffleLapkin wants to merge 1 commit intorust-lang:mainfrom
WaffleLapkin:chonky-ty-kind-perf-test

Conversation

@WaffleLapkin
Copy link
Member

No description provided.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Mar 9, 2026
@WaffleLapkin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 9, 2026
@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Mar 9, 2026
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-gcc failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
/dev/sda15      105M  6.2M   99M   6% /boot/efi
tmpfs           1.6G   12K  1.6G   1% /run/user/1001
================================================================================

Sufficient disk space available (94885516KB >= 52428800KB). Skipping cleanup.
##[group]Run echo "[CI_PR_NUMBER=$num]"
echo "[CI_PR_NUMBER=$num]"
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
---
---- [run-make] tests/run-make-cargo/rustc-crates-on-stable stdout ----

error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make-cargo/rustc-crates-on-stable/rmake_out" && env -u RUSTFLAGS -u __RUSTC_DEBUG_ASSERTIONS_ENABLED -u __STD_DEBUG_ASSERTIONS_ENABLED -u __STD_REMAP_DEBUGINFO_ENABLED AR="ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CARGO="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools-bin/cargo" CC="cc" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -m64" CXX="c++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -m64" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils abi aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cas cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfodwarflowlevel debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dtlto dwarfcfichecker dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddirective frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes plugins powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support supportlsp symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" PYTHON="/usr/bin/python3" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="x86_64-unknown-linux-gnu" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" __BOOTSTRAP_JOBS="4" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make-cargo/rustc-crates-on-stable/rmake"
stdout: none
--- stderr -------------------------------
command failed at line 41
Command { cmd: LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make-cargo/rustc-crates-on-stable/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTC_STAGE="0" RUSTFLAGS="-Zallow-features=" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools-bin/cargo" "build" "--manifest-path" "/checkout/Cargo.toml" "--no-default-features" "--target-dir" "target" "-p" "rustc_type_ir" "-p" "rustc_next_trait_solver" "-p" "rustc_pattern_analysis" "-p" "rustc_lexer" "-p" "rustc_abi" "-p" "rustc_parse_format" "-p" "rustc_hashes", stdin_buf: None, stdin: None, stdout: None, stderr: None, drop_bomb: DropBomb { command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools-bin/cargo", defused: true, armed_location: Location { file: "src/tools/run-make-support/src/external_deps/cargo.rs", line: 14, column: 19 } }, already_executed: true, context: "" }
output status: `exit status: 101`
=== STDOUT ===



=== STDERR ===
    Blocking waiting for file lock on package cache
---
   |
25 | impl HomogeneousAggregate {
   | ------------------------- method in this implementation
...
38 |     fn merge(self, other: HomogeneousAggregate) -> Result<HomogeneousAggregate, Heterogeneous> {
   |        ^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

   Compiling rustc_type_ir v0.0.0 (/checkout/compiler/rustc_type_ir)
warning: `rustc_abi` (lib) generated 1 warning
error[E0405]: cannot find trait `HashStable` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:297:31
    |
297 | impl<CTX, T: HashStable<CTX>> HashStable<CTX> for Spacer<T> {
    |                               ^^^^^^^^^^ not found in this scope
    |
note: found an item that was configured out
   --> compiler/rustc_type_ir/src/const_kind.rs:5:44
    |
---

error[E0405]: cannot find trait `HashStable` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:297:14
    |
297 | impl<CTX, T: HashStable<CTX>> HashStable<CTX> for Spacer<T> {
    |              ^^^^^^^^^^ not found in this scope
    |
note: found an item that was configured out
   --> compiler/rustc_type_ir/src/const_kind.rs:5:44
    |
---

error[E0425]: cannot find type `StableHasher` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:298:50
    |
298 |     fn hash_stable(&self, ctx: &mut CTX, h: &mut StableHasher) {
    |                                                  ^^^^^^^^^^^^ not found in this scope
    |
note: found an item that was configured out
   --> compiler/rustc_type_ir/src/const_kind.rs:5:56
    |
---

error[E0433]: cannot find module or crate `rustc_serialize` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:281:69
    |
281 | impl<E: rustc_serialize::Encoder, T: rustc_serialize::Encodable<E>> rustc_serialize::Encodable<E>
    |                                                                     ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `rustc_serialize`
    |
    = help: if you wanted to use a crate named `rustc_serialize`, use `cargo add rustc_serialize` to add it to your `Cargo.toml`

error[E0433]: cannot find module or crate `rustc_serialize` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:281:9
    |
281 | impl<E: rustc_serialize::Encoder, T: rustc_serialize::Encodable<E>> rustc_serialize::Encodable<E>
    |         ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `rustc_serialize`
    |
    = help: if you wanted to use a crate named `rustc_serialize`, use `cargo add rustc_serialize` to add it to your `Cargo.toml`

error[E0433]: cannot find module or crate `rustc_serialize` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:281:38
    |
281 | impl<E: rustc_serialize::Encoder, T: rustc_serialize::Encodable<E>> rustc_serialize::Encodable<E>
    |                                      ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `rustc_serialize`
    |
    = help: if you wanted to use a crate named `rustc_serialize`, use `cargo add rustc_serialize` to add it to your `Cargo.toml`

error[E0433]: cannot find module or crate `rustc_serialize` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:289:69
    |
289 | impl<E: rustc_serialize::Decoder, T: rustc_serialize::Decodable<E>> rustc_serialize::Decodable<E>
    |                                                                     ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `rustc_serialize`
    |
    = help: if you wanted to use a crate named `rustc_serialize`, use `cargo add rustc_serialize` to add it to your `Cargo.toml`

error[E0433]: cannot find module or crate `rustc_serialize` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:289:9
    |
289 | impl<E: rustc_serialize::Decoder, T: rustc_serialize::Decodable<E>> rustc_serialize::Decodable<E>
    |         ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `rustc_serialize`
    |
    = help: if you wanted to use a crate named `rustc_serialize`, use `cargo add rustc_serialize` to add it to your `Cargo.toml`

error[E0433]: cannot find module or crate `rustc_serialize` in this scope
##[error]   --> compiler/rustc_type_ir/src/ty_kind.rs:289:38
    |
289 | impl<E: rustc_serialize::Decoder, T: rustc_serialize::Decodable<E>> rustc_serialize::Decodable<E>
    |                                      ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `rustc_serialize`
    |
    = help: if you wanted to use a crate named `rustc_serialize`, use `cargo add rustc_serialize` to add it to your `Cargo.toml`

Some errors have detailed explanations: E0405, E0425, E0433.
For more information about an error, try `rustc --explain E0405`.

For more information how to resolve CI failures of this job, visit this link.

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 9, 2026

☀️ Try build successful (CI)
Build commit: 7bd0f72 (7bd0f72fc3e779ad5616bf791ed23016efd83d4f, parent: 98e7077b903559d7a4fafb775cd5292cc9427b67)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (7bd0f72): comparison URL.

Overall result: ❌ regressions - no action needed

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.1% [0.1%, 0.1%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary 1.0%, secondary -1.8%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
1.0% [0.9%, 1.0%] 2
Regressions ❌
(secondary)
1.6% [1.2%, 2.2%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.8% [-6.7%, -1.6%] 7
All ❌✅ (primary) 1.0% [0.9%, 1.0%] 2

Cycles

Results (primary 2.1%, secondary 0.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.1% [1.5%, 2.8%] 2
Regressions ❌
(secondary)
3.0% [3.0%, 3.0%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.9% [-1.9%, -1.9%] 1
All ❌✅ (primary) 2.1% [1.5%, 2.8%] 2

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 479.865s -> 478.913s (-0.20%)
Artifact size: 395.05 MiB -> 395.05 MiB (0.00%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants