diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-22 17:35:32 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-22 17:35:32 +0200 | 
| commit | 371426334b976e5f889c477584e9d293ab1120c6 (patch) | |
| tree | 2041446cd33a8fda5a1d73704377fadf6dde131a /compiler/rustc_middle/src/traits/mod.rs | |
| parent | a30f1783fe136d92545423dd30b12eb619973cdb (diff) | |
| parent | 1d41c2c01c9d32b22b1b702cfe04e2f7aae477af (diff) | |
| download | rust-371426334b976e5f889c477584e9d293ab1120c6.tar.gz rust-371426334b976e5f889c477584e9d293ab1120c6.zip | |
Rollup merge of #142458 - oli-obk:dyn-incompat, r=compiler-errors
Merge unboxed trait object error suggestion into regular dyn incompat error Another hir-walker removed from the well-formed queries. This error was always a duplicate of another, but it was able to provide more information because it could invoke `is_dyn_compatible` without worrying about cycle errors. That's also the reason we can't put the error directly into hir_ty_lowering when lowering a `dyn Trait` within an associated item signature. So instead I packed it into the error handling of wf obligation checking.
Diffstat (limited to 'compiler/rustc_middle/src/traits/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/traits/mod.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs index 27079af06fc..d877bd5c626 100644 --- a/compiler/rustc_middle/src/traits/mod.rs +++ b/compiler/rustc_middle/src/traits/mod.rs @@ -397,6 +397,8 @@ pub enum ObligationCauseCode<'tcx> { RustCall, + DynCompatible(Span), + /// Obligations to prove that a `Drop` or negative auto trait impl is not stronger than /// the ADT it's being implemented for. AlwaysApplicableImpl, | 
