about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2025-03-12 10:19:32 -0700
committerGitHub <noreply@github.com>2025-03-12 10:19:32 -0700
commit84a2b689aca2485fe9abf21e4d2bc4c5eb15a246 (patch)
tree7e03356527a5be7c8aa538310f84e28bee5185f0 /compiler/rustc_ty_utils/src
parent74c3794ece4c0317b8c50105a119724bf219b668 (diff)
parentadbcb910f0fc63b9a4bf6daa89c1a534a08b1f02 (diff)
downloadrust-84a2b689aca2485fe9abf21e4d2bc4c5eb15a246.tar.gz
rust-84a2b689aca2485fe9abf21e4d2bc4c5eb15a246.zip
Rollup merge of #138394 - lcnr:yeet-variant, r=compiler-errors
remove unnecessary variant
Diffstat (limited to 'compiler/rustc_ty_utils/src')
-rw-r--r--compiler/rustc_ty_utils/src/instance.rs8
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),
     };