mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-17 14:47:21 +03:00
Fix pr merge error
This commit is contained in:
parent
90c81f0547
commit
cd9bab42c7
@ -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()));
|
||||
}
|
||||
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user