diff options
| author | Lukas Markeffsky <@> | 2025-02-21 18:34:14 +0100 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2025-02-21 20:32:37 +0100 |
| commit | 7fea935ec5e2e5ab7f0c86e3b4f89c0da8d646c6 (patch) | |
| tree | b9cb0c4867dcff0a6ed0a3696d9175486ba1b5dd /compiler/rustc_middle/src/traits/mod.rs | |
| parent | a825e37fe4dba0e8b33ed05611ba130d396a5509 (diff) | |
| download | rust-7fea935ec5e2e5ab7f0c86e3b4f89c0da8d646c6.tar.gz rust-7fea935ec5e2e5ab7f0c86e3b4f89c0da8d646c6.zip | |
don't leave assoc const unnormalized due to unconstrained params
Diffstat (limited to 'compiler/rustc_middle/src/traits/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/traits/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs index 53bc9eb7e46..54cd8cc3efe 100644 --- a/compiler/rustc_middle/src/traits/mod.rs +++ b/compiler/rustc_middle/src/traits/mod.rs @@ -12,7 +12,7 @@ use std::borrow::Cow; use std::hash::{Hash, Hasher}; use std::sync::Arc; -use rustc_errors::{Applicability, Diag, EmissionGuarantee}; +use rustc_errors::{Applicability, Diag, EmissionGuarantee, ErrorGuaranteed}; use rustc_hir as hir; use rustc_hir::HirId; use rustc_hir::def_id::DefId; @@ -996,4 +996,7 @@ pub enum CodegenObligationError { /// but was included during typeck due to the trivial_bounds feature. Unimplemented, FulfillmentError, + /// The selected impl has unconstrained generic parameters. This will emit an error + /// during impl WF checking. + UnconstrainedParam(ErrorGuaranteed), } |
