We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c07c71 commit ee584c1Copy full SHA for ee584c1
src/tools/rust-analyzer/crates/hir-def/src/nameres/tests/macros.rs
@@ -1,4 +1,5 @@
1
use super::*;
2
+use itertools::Itertools;
3
4
#[test]
5
fn macro_rules_are_globally_visible() {
@@ -1171,11 +1172,15 @@ fn proc_attr(a: TokenStream, b: TokenStream) -> TokenStream { a }
1171
1172
);
1173
1174
let root = &def_map[def_map.root()].scope;
- let actual = root.legacy_macros().map(|(name, _)| format!("{name}\n")).collect::<String>();
1175
+ let actual = root
1176
+ .legacy_macros()
1177
+ .sorted_by(|a, b| std::cmp::Ord::cmp(&a.0, &b.0))
1178
+ .map(|(name, _)| format!("{name}\n"))
1179
+ .collect::<String>();
1180
1181
expect![[r#"
- macro20
1182
legacy
1183
+ macro20
1184
proc_attr
1185
"#]]
1186
.assert_eq(&actual);
0 commit comments