Skip to content

Commit

Permalink
Merge pull request #227 from HigherOrderCO/fix-merge-error
Browse files Browse the repository at this point in the history
Fix pr merge error
  • Loading branch information
developedby authored Mar 7, 2024
2 parents 90c81f0 + cd9bab4 commit 5eec674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/term/check/repeated_bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Ctx<'_> {
for rule in &def.rules {
let mut binds = HashSet::new();
for pat in &rule.pats {
for nam in pat.named_binds() {
for nam in pat.binds().flatten() {
if !binds.insert(nam) {
self.info.warning(def_name.clone(), RepeatedBindWarn::Rule(nam.clone()));
}
Expand Down Expand Up @@ -52,7 +52,7 @@ impl Term {
for rule in rules {
let mut binds = HashSet::new();
for pat in &rule.pats {
for nam in pat.named_binds() {
for nam in pat.binds().flatten() {
if !binds.insert(nam) {
repeated.push(RepeatedBindWarn::Match(nam.clone()));
}
Expand Down

0 comments on commit 5eec674

Please sign in to comment.