Uh oh!
There was an error while loading. Please reload this page.
Error on projection of dyn noncompat type in old trait solver - #154992
Conversation
| //~^ ERROR the trait `Foo` is not dyn compatible | ||
| x.method(); | ||
| //~^ ERROR the trait `Foo` is not dyn compatible | ||
| //~^ ERROR no method named `method` found for reference `&dyn Foo` |
There was a problem hiding this comment.
that's annoying :< ideally we'd silence method errors if the self type is not well-formed, tracking that is non-trivial and I don't know how we'd do so myself rn
lcnr
commented
Apr 9, 2026
lgtm, let's do a crater run, there should be exactly 1 regression from this @bors try |
This comment has been minimized.
This comment has been minimized.
Error on projection of dyn noncompat type in old trait solver
lcnr
commented
Apr 9, 2026
@craterbot check |
craterbot
commented
Apr 9, 2026
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
craterbot
commented
Apr 20, 2026
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
craterbot
commented
Apr 22, 2026
🎉 Experiment
Footnotes
|
lcnr
commented
Apr 27, 2026
craterbot
commented
Apr 27, 2026
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
lcnr
commented
Apr 27, 2026
@craterbot p=1 |
craterbot
commented
Apr 27, 2026
📝 Configuration of the ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
craterbot
commented
Apr 27, 2026
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
craterbot
commented
Apr 27, 2026
🎉 Experiment
Footnotes
|
lcnr
commented
Apr 29, 2026
@craterbot check crates=https://crater-reports.s3.amazonaws.com/pr-154992-1/retry-regressed-list.txt p=1 surprising that we have that many spurious regressions still? it's caused by build OOMs and unlike the new solver, this PR shouldn't really change max-rss in any way 😅 cc @rust-lang/infra |
craterbot
commented
Apr 29, 2026
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
rust-rfcbot
commented
Aug 16, 2026
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
| let tcx = selcx.tcx(); | ||
| if !tcx.is_dyn_compatible(def_id) { | ||
| let span = obligation.cause.span; | ||
| let guar = if span.is_dummy() |
There was a problem hiding this comment.
comment why we can delay bug here
I guess it's that this should be handled in WF instead?
Kobzol
commented
Aug 17, 2026
@bors delegate |
spirali
commented
Aug 22, 2026
@bors r=lcnr |
Error on projection of dyn noncompat type in old trait solver Trying to fixrust-lang/trait-system-refactor-initiative#269 I am not sure that the check is placed into the right place in the code. r? lcnr
Error on projection of dyn noncompat type in old trait solver Trying to fixrust-lang/trait-system-refactor-initiative#269 I am not sure that the check is placed into the right place in the code. r? lcnr
Error on projection of dyn noncompat type in old trait solver Trying to fixrust-lang/trait-system-refactor-initiative#269 I am not sure that the check is placed into the right place in the code. r? lcnr
…uwer Rollup of 19 pull requests Successful merges: - #151061 (Build rustc and codegen backends with -Zembed-metadata=no) - #154992 (Error on projection of dyn noncompat type in old trait solver) - #157949 (Allow self in const generics) - #158588 (trait_selection: fix assumptions-on-binders diagnostics) - #159954 (core: implement float conversion methods) - #160136 (Add `Default` implementation for `std::sync::Once`) - #160835 (resolver diagnostics: don't swallow labels and point out similar items as a note, not a label) - #161048 (Improve the ABI between the panic runtime and libstd) - #161292 (Add safety comments in alloc::Wtf8) - #161444 (Add some `rustc_type_ir` comments) - #161465 (Remove leftover immediate creation) - #159098 (Add Arc/Rc::strong_count_from_raw) - #159282 (Update documentation for `-Zdump-dep-graph`) - #161401 (Remove fields from TypeKind: Bool, Char, Float and Int) - #161431 (bootstrap: (offload) be stricter about selected compiler and paths) - #161451 (Avoid arming the Windows TLS destructor guard in fibers) - #161463 (Add myself to mailmap) - #161476 (Use bitset for locals_with_use_data) - #161483 (Warn about running ui-fulldeps tests in stage 1) Failed merges: - #161443 (add internal DSL for testing binders)
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #154992 - spirali:fix-dyn-projection, r=lcnr Error on projection of dyn noncompat type in old trait solver Trying to fixrust-lang/trait-system-refactor-initiative#269 I am not sure that the check is placed into the right place in the code. r? lcnr
dimpolo
commented
Aug 23, 2026
I noticed some breakage in todays nightly #161536 and my LLM pointed me at this issue |
…uwer Rollup of 19 pull requests Successful merges: - rust-lang/rust#151061 (Build rustc and codegen backends with -Zembed-metadata=no) - rust-lang/rust#154992 (Error on projection of dyn noncompat type in old trait solver) - rust-lang/rust#157949 (Allow self in const generics) - rust-lang/rust#158588 (trait_selection: fix assumptions-on-binders diagnostics) - rust-lang/rust#159954 (core: implement float conversion methods) - rust-lang/rust#160136 (Add `Default` implementation for `std::sync::Once`) - rust-lang/rust#160835 (resolver diagnostics: don't swallow labels and point out similar items as a note, not a label) - rust-lang/rust#161048 (Improve the ABI between the panic runtime and libstd) - rust-lang/rust#161292 (Add safety comments in alloc::Wtf8) - rust-lang/rust#161444 (Add some `rustc_type_ir` comments) - rust-lang/rust#161465 (Remove leftover immediate creation) - rust-lang/rust#159098 (Add Arc/Rc::strong_count_from_raw) - rust-lang/rust#159282 (Update documentation for `-Zdump-dep-graph`) - rust-lang/rust#161401 (Remove fields from TypeKind: Bool, Char, Float and Int) - rust-lang/rust#161431 (bootstrap: (offload) be stricter about selected compiler and paths) - rust-lang/rust#161451 (Avoid arming the Windows TLS destructor guard in fibers) - rust-lang/rust#161463 (Add myself to mailmap) - rust-lang/rust#161476 (Use bitset for locals_with_use_data) - rust-lang/rust#161483 (Warn about running ui-fulldeps tests in stage 1) Failed merges: - rust-lang/rust#161443 (add internal DSL for testing binders)
View all comments
Trying to fixrust-lang/trait-system-refactor-initiative#269
I am not sure that the check is placed into the right place in the code.
r? lcnr