1
Fork 0

Use do yeet () and do yeet _ instead of None? and Err(_)? in compiler

This prevents breakage when `?` no longer skews inference.
This commit is contained in:
Maybe Waffle 2024-03-15 11:37:42 +00:00
parent defcc44238
commit 75d940f637
4 changed files with 5 additions and 3 deletions

View file

@ -62,7 +62,7 @@ pub(crate) fn parse_external_mod(
// Ensure file paths are acyclic.
if let Some(pos) = module.file_path_stack.iter().position(|p| p == &mp.file_path) {
Err(ModError::CircularInclusion(module.file_path_stack[pos..].to_vec()))?;
do yeet ModError::CircularInclusion(module.file_path_stack[pos..].to_vec());
}
// Actually parse the external file as a module.