mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Prefer unreachable! to panic!
This commit is contained in:
+1
-1
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user