diff options
| author | lcnr <rust@lcnr.de> | 2025-03-12 10:12:02 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-03-12 10:12:53 +0100 |
| commit | adbcb910f0fc63b9a4bf6daa89c1a534a08b1f02 (patch) | |
| tree | b797377e427c312aea529d5f3f030ad9476ccb1d /compiler/rustc_ty_utils/src/instance.rs | |
| parent | a21d9789e24c8e0a070cf58830422f5b1c68a1f2 (diff) | |
| download | rust-adbcb910f0fc63b9a4bf6daa89c1a534a08b1f02.tar.gz rust-adbcb910f0fc63b9a4bf6daa89c1a534a08b1f02.zip | |
remove unnecessary variant
Diffstat (limited to 'compiler/rustc_ty_utils/src/instance.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/instance.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs index 6dc5a9c4a47..90b3517eded 100644 --- a/compiler/rustc_ty_utils/src/instance.rs +++ b/compiler/rustc_ty_utils/src/instance.rs @@ -107,11 +107,9 @@ fn resolve_associated_item<'tcx>( let input = typing_env.as_query_input(trait_ref); let vtbl = match tcx.codegen_select_candidate(input) { Ok(vtbl) => vtbl, - Err( - CodegenObligationError::Ambiguity - | CodegenObligationError::Unimplemented - | CodegenObligationError::FulfillmentError, - ) => return Ok(None), + Err(CodegenObligationError::Ambiguity | CodegenObligationError::Unimplemented) => { + return Ok(None); + } Err(CodegenObligationError::UnconstrainedParam(guar)) => return Err(guar), }; |
