mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Don't log type mismatch info in release builds
This commit is contained in:
parent
c386192e8b
commit
f31e260e2f
1 changed files with 10 additions and 6 deletions
|
@ -17,6 +17,7 @@ macro_rules! mismatch {
|
||||||
column!()
|
column!()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
vec![Mismatch::TypeMismatch]
|
vec![Mismatch::TypeMismatch]
|
||||||
}};
|
}};
|
||||||
($msg:expr) => {{
|
($msg:expr) => {{
|
||||||
|
@ -27,9 +28,10 @@ macro_rules! mismatch {
|
||||||
line!(),
|
line!(),
|
||||||
column!()
|
column!()
|
||||||
);
|
);
|
||||||
|
println!($msg);
|
||||||
|
println!("");
|
||||||
}
|
}
|
||||||
println!($msg);
|
|
||||||
println!("");
|
|
||||||
vec![Mismatch::TypeMismatch]
|
vec![Mismatch::TypeMismatch]
|
||||||
}};
|
}};
|
||||||
($msg:expr,) => {{
|
($msg:expr,) => {{
|
||||||
|
@ -40,9 +42,10 @@ macro_rules! mismatch {
|
||||||
line!(),
|
line!(),
|
||||||
column!()
|
column!()
|
||||||
);
|
);
|
||||||
|
println!($msg);
|
||||||
|
println!("");
|
||||||
}
|
}
|
||||||
println!($msg);
|
|
||||||
println!("");
|
|
||||||
vec![Mismatch::TypeMismatch]
|
vec![Mismatch::TypeMismatch]
|
||||||
}};
|
}};
|
||||||
($msg:expr, $($arg:tt)*) => {{
|
($msg:expr, $($arg:tt)*) => {{
|
||||||
|
@ -53,9 +56,10 @@ macro_rules! mismatch {
|
||||||
line!(),
|
line!(),
|
||||||
column!()
|
column!()
|
||||||
);
|
);
|
||||||
|
println!($msg, $($arg)*);
|
||||||
|
println!("");
|
||||||
}
|
}
|
||||||
println!($msg, $($arg)*);
|
|
||||||
println!("");
|
|
||||||
vec![Mismatch::TypeMismatch]
|
vec![Mismatch::TypeMismatch]
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue