about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/codec.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-06-19 20:48:46 +0000
committerMichael Goulet <michael@errs.io>2023-06-22 18:34:24 +0000
commit2fa796a3c796c819b53421577d5fd2e0f6a9f920 (patch)
tree773546aed27261b207b12aa8803e137819680a5c /compiler/rustc_middle/src/ty/codec.rs
parent46a650f4e0783da10513e6d41c5f3c69e42b0198 (diff)
downloadrust-2fa796a3c796c819b53421577d5fd2e0f6a9f920.tar.gz
rust-2fa796a3c796c819b53421577d5fd2e0f6a9f920.zip
Expect clause more
Diffstat (limited to 'compiler/rustc_middle/src/ty/codec.rs')
-rw-r--r--compiler/rustc_middle/src/ty/codec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/codec.rs b/compiler/rustc_middle/src/ty/codec.rs
index d252a3fda54..e2771fc53e7 100644
--- a/compiler/rustc_middle/src/ty/codec.rs
+++ b/compiler/rustc_middle/src/ty/codec.rs
@@ -250,7 +250,7 @@ impl<'tcx, D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<D> for ty::Predicate<'tcx>
 impl<'tcx, D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<D> for ty::Clause<'tcx> {
     fn decode(decoder: &mut D) -> ty::Clause<'tcx> {
         let pred: ty::Predicate<'tcx> = Decodable::decode(decoder);
-        pred.as_clause().unwrap()
+        pred.expect_clause()
     }
 }