about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection
diff options
context:
space:
mode:
authorJack Huey <jack.huey@umassmed.edu>2021-01-04 01:58:33 -0500
committerJack Huey <jack.huey@umassmed.edu>2021-01-16 18:40:47 -0500
commite76476afe4179fb0c430cfcd86d061cc990a7bf7 (patch)
tree65164a5f07f9ffb0ed49e917350471f3f3f2233a /compiler/rustc_trait_selection
parent876192e8cda7d9a557326527328423587747ca88 (diff)
downloadrust-e76476afe4179fb0c430cfcd86d061cc990a7bf7.tar.gz
rust-e76476afe4179fb0c430cfcd86d061cc990a7bf7.zip
Cleanup
Diffstat (limited to 'compiler/rustc_trait_selection')
-rw-r--r--compiler/rustc_trait_selection/src/traits/fulfill.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/fulfill.rs b/compiler/rustc_trait_selection/src/traits/fulfill.rs
index aa7f746e52f..86c5209354c 100644
--- a/compiler/rustc_trait_selection/src/traits/fulfill.rs
+++ b/compiler/rustc_trait_selection/src/traits/fulfill.rs
@@ -345,7 +345,7 @@ impl<'a, 'b, 'tcx> FulfillProcessor<'a, 'b, 'tcx> {
 
         let infcx = self.selcx.infcx();
 
-        let binder = obligation.predicate.kind();
+        let binder = obligation.predicate.bound_atom();
         if binder.skip_binder().has_escaping_bound_vars() {
             match binder.skip_binder() {
                 // Evaluation will discard candidates using the leak check.