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:
parent
defcc44238
commit
75d940f637
4 changed files with 5 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue