Skip to content

Commit 2e17245

Browse files
committed
Replace is_global call on data with call on predicate
1 parent 4709f45 commit 2e17245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trait_selection/traits/fulfill.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ impl<'a, 'b, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'b, 'tcx> {
321321
ty::PredicateKind::Trait(ref data, _) => {
322322
let trait_obligation = obligation.with(*data);
323323

324-
if data.is_global() {
324+
if obligation.predicate.is_global() {
325325
// no type variables present, can use evaluation for better caching.
326326
// FIXME: consider caching errors too.
327327
if infcx.predicate_must_hold_considering_regions(&obligation) {

0 commit comments

Comments
 (0)