Skip to content

Commit 8772968

Browse files
committed
fixup 2
1 parent 9935035 commit 8772968

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

gcc/rust/resolve/rust-ast-resolve-item.cc

+4-6
Original file line numberDiff line numberDiff line change
@@ -1209,9 +1209,9 @@ rust_flatten_rebind (void)
12091209
Rust::Resolver::flatten_rebind (rebind, imports);
12101210

12111211
ASSERT_TRUE (!imports.empty ());
1212-
ASSERT_EQ (imports.size (), 2);
1212+
ASSERT_EQ (imports.size (), 1);
12131213
ASSERT_EQ (imports[0].get_path (), "frobulator");
1214-
ASSERT_EQ (imports[1].get_path (), "saindoux");
1214+
ASSERT_EQ (imports[0].get_name (), "saindoux");
12151215
}
12161216

12171217
static void
@@ -1230,13 +1230,11 @@ rust_flatten_rebind_nested (void)
12301230
Rust::Resolver::flatten_rebind (rebind, imports);
12311231

12321232
ASSERT_TRUE (!imports.empty ());
1233-
ASSERT_EQ (imports.size (), 2);
1233+
ASSERT_EQ (imports.size (), 1);
12341234
ASSERT_EQ (imports[0].get_path ().get_segments ()[0].as_string (), "foo");
12351235
ASSERT_EQ (imports[0].get_path ().get_segments ()[1].as_string (), "bar");
12361236
ASSERT_EQ (imports[0].get_path ().get_segments ()[2].as_string (), "baz");
1237-
ASSERT_EQ (imports[1].get_path ().get_segments ()[0].as_string (), "foo");
1238-
ASSERT_EQ (imports[1].get_path ().get_segments ()[1].as_string (), "bar");
1239-
ASSERT_EQ (imports[1].get_path ().get_segments ()[2].as_string (), "saindoux");
1237+
ASSERT_EQ (imports[0].get_name (), "saindoux");
12401238
}
12411239

12421240
static void

0 commit comments

Comments
 (0)