We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae03f89 commit 614e793Copy full SHA for 614e793
library/std/src/sys/pal/windows/api.rs
@@ -48,7 +48,9 @@ macro_rules! wide_str {
48
49
/// Creates a UTF-16 string from a str without null termination.
50
macro_rules! utf16 {
51
- // Note: this macro uses triple underscores to avoid const cycles
+ // Note: this macro uses triple underscores to avoid const cycles which,
52
+ // despite macro hygienics, occur if we use a const with the same name
53
+ // as an argument to the macro, see issue rust-lang/rust#123691
54
($str:expr) => {{
55
const ___UTF8: &str = $str;
56
const ___UTF16_LEN: usize = crate::sys::pal::windows::api::utf16_len(___UTF8);
0 commit comments