Skip to content

[WIP] Polymorphization - #160300

Draft
camelid wants to merge 4 commits into
rust-lang:mainfrom
camelid:poly
Draft

camelid wants to merge 4 commits into
rust-lang:mainfrom
camelid:poly

Conversation

@camelid

@camelid camelid commented Jul 31, 2026

Copy link
Copy Markdown
Member

No description provided.

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Jul 31, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-bors

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

For now it's fine to just check if conflicting CLI flags are passed.
Though it may still be good to ensure correctness by construction for
layouts (wrt randomization) in the future.
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
1090 | |         fields: _,
1091 | |         variants: _,
1092 | |         backend_repr,
...    |
1099 | |         randomization_seed: _,
1100 | |     } = *layout.0.0;
     | |_____^ missing field `repr_c`
     |
help: include the missing field in the pattern
     |
1099 -         randomization_seed: _,
1100 -     } = *layout.0.0;
1099 +         randomization_seed: _, repr_c } = *layout.0.0;
     |
help: if you don't care about this missing field, you can explicitly ignore it
     |
1099 -         randomization_seed: _,
1100 -     } = *layout.0.0;
1099 +         randomization_seed: _, repr_c: _ } = *layout.0.0;
     |
help: or always ignore missing fields here
     |
1099 -         randomization_seed: _,
1100 -     } = *layout.0.0;
1099 +         randomization_seed: _, .. } = *layout.0.0;
     |

For more information about this error, try `rustc --explain E0027`.
[RUSTC-TIMING] rustc_middle test:false 16.925
error: could not compile `rustc_middle` (lib) due to 1 previous error

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc 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.

3 participants