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_ty_utils/src/instance.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_ty_utils/src/instance.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/instance.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs index 8c6e3c86bf5..d059d6dcd13 100644 --- a/compiler/rustc_ty_utils/src/instance.rs +++ b/compiler/rustc_ty_utils/src/instance.rs @@ -112,6 +112,7 @@ fn resolve_associated_item<'tcx>( | CodegenObligationError::Unimplemented | CodegenObligationError::FulfillmentError, ) => return Ok(None), + Err(CodegenObligationError::UnconstrainedParam(guar)) => return Err(guar), }; // Now that we know which impl is being used, we can dispatch to |
