diff options
Diffstat (limited to 'crates/ra_hir/src/ty/traits')
-rw-r--r-- | crates/ra_hir/src/ty/traits/chalk.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/traits/chalk.rs b/crates/ra_hir/src/ty/traits/chalk.rs index e18c28cf6..aec484feb 100644 --- a/crates/ra_hir/src/ty/traits/chalk.rs +++ b/crates/ra_hir/src/ty/traits/chalk.rs | |||
@@ -537,7 +537,7 @@ pub(crate) fn trait_datum_query( | |||
537 | let trait_ref = trait_.trait_ref(db).subst(&bound_vars).to_chalk(db); | 537 | let trait_ref = trait_.trait_ref(db).subst(&bound_vars).to_chalk(db); |
538 | let flags = chalk_rust_ir::TraitFlags { | 538 | let flags = chalk_rust_ir::TraitFlags { |
539 | auto: trait_.is_auto(db), | 539 | auto: trait_.is_auto(db), |
540 | upstream: trait_.module(db).krate(db) != Some(krate), | 540 | upstream: trait_.module(db).krate() != krate, |
541 | non_enumerable: true, | 541 | non_enumerable: true, |
542 | // FIXME set these flags correctly | 542 | // FIXME set these flags correctly |
543 | marker: false, | 543 | marker: false, |
@@ -625,7 +625,7 @@ fn impl_block_datum( | |||
625 | .target_trait_ref(db) | 625 | .target_trait_ref(db) |
626 | .expect("FIXME handle unresolved impl block trait ref") | 626 | .expect("FIXME handle unresolved impl block trait ref") |
627 | .subst(&bound_vars); | 627 | .subst(&bound_vars); |
628 | let impl_type = if impl_block.module().krate(db) == Some(krate) { | 628 | let impl_type = if impl_block.module().krate() == krate { |
629 | chalk_rust_ir::ImplType::Local | 629 | chalk_rust_ir::ImplType::Local |
630 | } else { | 630 | } else { |
631 | chalk_rust_ir::ImplType::External | 631 | chalk_rust_ir::ImplType::External |