We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87873d9 commit 8b5e7a2Copy full SHA for 8b5e7a2
crates/formality-check/src/adts.rs
@@ -11,7 +11,7 @@ impl super::Check<'_> {
11
12
// names is used to check that there are no name conflicts
13
let mut names = HashSet::new();
14
- for Variant { name, fields } in &adt.binder.open().1.variants {
+ for Variant { name, fields } in &adt.binder.peek().variants {
15
if !names.insert((name, None)) {
16
bail!("variant \"{name:?}\" defined multiple times");
17
}
0 commit comments