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
|
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
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
@craterbot p=1 |
|
📝 Configuration of the ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
@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 |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
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?
|
@bors delegate |
|
@bors r=lcnr |
Error on projection of dyn noncompat type in old trait solver Trying to fix rust-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 fix rust-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 fix rust-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)
Rollup merge of #154992 - spirali:fix-dyn-projection, r=lcnr Error on projection of dyn noncompat type in old trait solver Trying to fix rust-lang/trait-system-refactor-initiative#269 I am not sure that the check is placed into the right place in the code. r? lcnr
|
I noticed some breakage in todays nightly #161536 and my LLM pointed me at this issue |
View all comments
Trying to fix rust-lang/trait-system-refactor-initiative#269
I am not sure that the check is placed into the right place in the code.
r? lcnr