macros: fix the hygiene issue of join! and try_join! (#7766)

Signed-off-by: ADD-SP <[email protected]>
This commit is contained in:
Qi
2025-12-08 18:39:29 +08:00
committed by GitHub
parent b5054e1dff
commit 97d06ae1a6
7 changed files with 227 additions and 23 deletions
+6
View File
@@ -18,6 +18,12 @@ fn compile_fail_full() {
#[cfg(feature = "full")]
t.compile_fail("tests/fail/macros_dead_code.rs");
#[cfg(feature = "full")]
t.compile_fail("tests/fail/macros_join.rs");
#[cfg(feature = "full")]
t.compile_fail("tests/fail/macros_try_join.rs");
#[cfg(feature = "full")]
t.compile_fail("tests/fail/macros_type_mismatch.rs");