Skip to content

Commit 86cb657

Browse files
authored
chore: change map name inside hash_map macro due to hygiene.
1 parent b57040d commit 86cb657

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@ macro_rules! hash_map {
422422
}};
423423

424424
( $( $key:expr => $value:expr ),* $(,)? ) => {{
425-
let mut __map = ::std::collections::HashMap::new();
426-
$( __map.insert($key, $value); )*
427-
__map
425+
let mut map = ::std::collections::HashMap::new();
426+
$( map.insert($key, $value); )*
427+
map
428428
}}
429429
}

0 commit comments

Comments
 (0)