diff options
| author | jooert <jooert@users.noreply.github.com> | 2015-04-29 10:36:43 +0200 |
|---|---|---|
| committer | jooert <jooert@users.noreply.github.com> | 2015-04-29 10:36:43 +0200 |
| commit | f99658d7c7522a76b4fb7ff0d09b53183c136e79 (patch) | |
| tree | 68a4eff1255a867b600057ad8a315871bcbffdf6 /src/doc/trpl | |
| parent | d4cedea80a70d61931e4442dde90bd136a60deeb (diff) | |
| download | rust-f99658d7c7522a76b4fb7ff0d09b53183c136e79.tar.gz rust-f99658d7c7522a76b4fb7ff0d09b53183c136e79.zip | |
Adapt benchmark tests to unit test guidelines
Since #24783, the style guidelines recommend that unit tests should live in a submodule `tests` rather than `test` to not clash with the possible use of libtest. This is especially important for benchmark tests as they require libtest. Fixes #24923.
Diffstat (limited to 'src/doc/trpl')
| -rw-r--r-- | src/doc/trpl/benchmark-tests.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/benchmark-tests.md b/src/doc/trpl/benchmark-tests.md index 890a2f8ae7d..88796537593 100644 --- a/src/doc/trpl/benchmark-tests.md +++ b/src/doc/trpl/benchmark-tests.md @@ -13,7 +13,7 @@ pub fn add_two(a: i32) -> i32 { } #[cfg(test)] -mod test { +mod tests { use super::*; use test::Bencher; |
