Skip to content

Commit 863caf8

Browse files
committed
Move btreemap, hashmap tests into collections subdir
1 parent 1612988 commit 863caf8

20 files changed

Lines changed: 1 addition & 11 deletions

tests/ui/README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ See:
172172
- [`std::box::Boxed`](https://doc.rust-lang.org/std/boxed/struct.Box.html)
173173
- [Tracking issue for `box_patterns` feature #29641](https://github.com/rust-lang/rust/issues/29641)
174174

175-
## `tests/ui/btreemap/`: B-Tree Maps
176-
177-
Tests focused on `BTreeMap` collections and their compiler interactions. E.g. collection patterns, iterator behavior, and trait implementations specific to `BTreeMap`. See [`std::collections::BTreeMap`](https://doc.rust-lang.org/std/collections/struct.BTreeMap.html).
178-
179175
## `tests/ui/builtin-superkinds/`: Built-in Trait Hierarchy Tests
180176

181177
Tests for built-in trait hierarchy (Send, Sync, Sized, etc.) and their supertrait relationships. E.g. auto traits and marker trait constraints.
@@ -262,12 +258,10 @@ This directory only contains one highly specific test. Other coinduction tests c
262258

263259
## `tests/ui/collections`
264260

265-
These tests exercise the `collections` library.
261+
These tests exercise the `collections` library. For example, `BTreeMap` and `HashMap`.
266262

267263
See [`std::collections`](https://doc.rust-lang.org/std/collections/index.html)
268264

269-
**FIXME**: consider merge with `tests/ui/btreemap` and `tests/ui/hashmap`
270-
271265
## `tests/ui/command/`: `std::process::Command`
272266

273267
This directory is actually for the standard library [`std::process::Command`](https://doc.rust-lang.org/std/process/struct.Command.html) type, where some tests are too difficult or inconvenient to write as unit tests or integration tests within the standard library itself.
@@ -684,10 +678,6 @@ Tests on range patterns where one of the bounds is not a direct value.
684678

685679
**FIXME**: Overlaps with `ui/range`. `impossible_range.rs` is particularly suspected to be a duplicate test.
686680

687-
## `tests/ui/hashmap/`
688-
689-
Tests for the standard library collection [`std::collections::HashMap`](https://doc.rust-lang.org/std/collections/struct.HashMap.html).
690-
691681
## `tests/ui/higher-ranked/`
692682

693683
Tests for higher-ranked trait bounds.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/ui/btreemap/btreemap_into_iterator_lifetime.rs renamed to tests/ui/collections/btreemap/btreemap_into_iterator_lifetime.rs

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)