mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
fix comments/warnings
This commit is contained in:
parent
77eb20f9ce
commit
ad8e9db896
3 changed files with 4 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
use roc_collections::all::{MutMap, MutSet};
|
||||
use roc_collections::all::MutSet;
|
||||
use roc_types::subs::Subs;
|
||||
|
||||
pub fn helper_without_uniqueness<'a>(
|
||||
|
|
|
@ -2220,7 +2220,7 @@ mod solve_uniq_expr {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn list_walkRight_sum() {
|
||||
fn list_walk_right_sum() {
|
||||
infer_eq(
|
||||
indoc!(
|
||||
r#"
|
||||
|
@ -2290,14 +2290,6 @@ mod solve_uniq_expr {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn list_walkRight() {
|
||||
infer_eq(
|
||||
"List.walkRight",
|
||||
"Attr * (Attr (* | b) (List (Attr b a)), Attr Shared (Attr b a, c -> c), c -> c)",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn list_push_singleton() {
|
||||
infer_eq(
|
||||
|
@ -2313,7 +2305,7 @@ mod solve_uniq_expr {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn list_walkRight_reverse() {
|
||||
fn list_walk_right_reverse() {
|
||||
infer_eq(
|
||||
indoc!(
|
||||
r#"
|
||||
|
|
|
@ -644,7 +644,6 @@ fn unify_shared_tags(
|
|||
};
|
||||
|
||||
if problems.is_empty() {
|
||||
// debug_assert_eq!(subs.get_root_key(actual), subs.get_root_key(expected));
|
||||
matching_vars.push(actual);
|
||||
}
|
||||
}
|
||||
|
@ -737,7 +736,7 @@ fn unify_flat_type(
|
|||
}
|
||||
|
||||
(RecursiveTagUnion(recursion_var, tags1, ext1), TagUnion(tags2, ext2)) => {
|
||||
// unreachable!("unify of recursive with non-recursive tag union should not occur");
|
||||
// this never happens in type-correct programs, but may happen if there is a type error
|
||||
let union1 = gather_tags(subs, tags1.clone(), *ext1);
|
||||
let union2 = gather_tags(subs, tags2.clone(), *ext2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue