about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/module.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2024-03-15 11:37:42 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2024-03-15 11:37:42 +0000
commit75d940f6379572631209a64791cdb317a0279dac (patch)
treeea6be7eb754b33d9d50af1ae33a0ffcdb25e3e85 /compiler/rustc_expand/src/module.rs
parentdefcc44238d9d79b7bcf5dfae2ec33001f568dd0 (diff)
downloadrust-75d940f6379572631209a64791cdb317a0279dac.tar.gz
rust-75d940f6379572631209a64791cdb317a0279dac.zip
Use `do yeet ()` and `do yeet _` instead of `None?` and `Err(_)?` in compiler
This prevents breakage when `?` no longer skews inference.
Diffstat (limited to 'compiler/rustc_expand/src/module.rs')
-rw-r--r--compiler/rustc_expand/src/module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/module.rs b/compiler/rustc_expand/src/module.rs
index 8a68b39e496..c8983619e70 100644
--- a/compiler/rustc_expand/src/module.rs
+++ b/compiler/rustc_expand/src/module.rs
@@ -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.