Skip to content

Commit

Permalink
Replace is_global call on data with call on predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Jun 21, 2020
1 parent f802ee1 commit 6e12272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trait_selection/traits/fulfill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ impl<'a, 'b, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'b, 'tcx> {
ty::PredicateKind::Trait(ref data, _) => {
let trait_obligation = obligation.with(*data);

if data.is_global() {
if obligation.predicate.is_global() {
// no type variables present, can use evaluation for better caching.
// FIXME: consider caching errors too.
if infcx.predicate_must_hold_considering_regions(&obligation) {
Expand Down

0 comments on commit 6e12272

Please sign in to comment.