mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Use internal_error! instead of assert_debug!
This commit is contained in:
parent
d4e558d327
commit
78ba0ca701
1 changed files with 3 additions and 4 deletions
|
@ -335,10 +335,9 @@ fn annotate_module(loaded: &mut LoadedModule) -> String {
|
|||
let mut file_progress = 0;
|
||||
|
||||
for (position, edit) in edits {
|
||||
debug_assert!(
|
||||
file_progress <= position,
|
||||
"Module definitions are out of order"
|
||||
);
|
||||
if file_progress > position {
|
||||
internal_error!("Module definitions are out of order");
|
||||
};
|
||||
|
||||
buffer.push_str(&src[file_progress..position]);
|
||||
buffer.push_str(&edit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue