From 6a60997a6b72bfcf2d59fb4790c1c5cdf25c45e3 Mon Sep 17 00:00:00 2001 From: ReversedGravity Date: Sat, 16 Sep 2023 19:58:51 +0100 Subject: [PATCH] Unbreak the loop macro since rust doesn't scope macros in modules. --- luisa_compute/src/lang/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luisa_compute/src/lang/mod.rs b/luisa_compute/src/lang/mod.rs index 4b87f51..16fa16f 100644 --- a/luisa_compute/src/lang/mod.rs +++ b/luisa_compute/src/lang/mod.rs @@ -2614,7 +2614,7 @@ macro_rules! while_ { #[macro_export] macro_rules! loop_ { ($body:block) => { - $crate::lang::while_!(const_(true), $body) + $crate::while_!(const_(true), $body) }; } pub trait ForLoopRange {