Skip to content

Commit

Permalink
Fix frontend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Jul 25, 2024
1 parent 7a9fa2d commit ab9f908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/elaborator/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ impl<'context> Elaborator<'context> {
path: &Path,
) -> Option<(TraitMethodId, TraitConstraint, bool)> {
let trait_impl = self.current_trait_impl?;
let trait_id = self.interner.get_trait_implementation(trait_impl).borrow().trait_id;
let trait_id = self.interner.try_get_trait_implementation(trait_impl)?.borrow().trait_id;

if path.kind == PathKind::Plain && path.segments.len() == 2 {
let name = &path.segments[0].0.contents;
Expand Down

0 comments on commit ab9f908

Please sign in to comment.