Prefer unreachable! to panic!
@@ -76,6 +76,6 @@ fn module_file(
match parser::Parser::default_submod_path(id, dir_path, codemap).result {
Ok(parser::ModulePathSuccess { path, .. }) => path,
- Err(_) => panic!("Couldn't find module {}", id),
+ Err(_) => unreachable!("Couldn't find module {}", id),
}
}
