don't leave assoc const unnormalized due to unconstrained params
This commit is contained in:
parent
a825e37fe4
commit
7fea935ec5
5 changed files with 14 additions and 12 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue