-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Move std::io tests to alloctests & add prelude
#156527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c4d12cb
Setup `core::io::prelude`
bushrat011899 0791c08
Setup `alloc::io::prelude`
bushrat011899 d951987
Expand documentation for `alloc::io`
bushrat011899 32117cd
Move general IO tests to `alloctests`
bushrat011899 125be4b
Move `std::io::util` tests to `alloctests`
bushrat011899 39bf757
Move `std::io::cursor` tests to `alloctests`
bushrat011899 f67f57d
Move `std::io::buffered` tests to `alloctests`
bushrat011899 29da936
Move `std::io::impls` benchmarks to `alloctests`
bushrat011899 5b49a9d
Move `std::io::copy` tests to `alloctests`
bushrat011899 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| //! The I/O Prelude. | ||
| //! | ||
| //! The purpose of this module is to alleviate imports of many common I/O traits | ||
| //! by adding a glob import to the top of I/O heavy modules: | ||
| //! | ||
| //! ``` | ||
| //! # #![allow(unused_imports)] | ||
| //! use std::io::prelude::*; | ||
| //! ``` | ||
|
|
||
| #[stable(feature = "rust1", since = "1.0.0")] | ||
| pub use crate::io::{BufRead, Read, Seek, Write}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ extern crate test; | |
|
|
||
| mod binary_heap; | ||
| mod btree; | ||
| mod io; | ||
| mod linked_list; | ||
| mod slice; | ||
| mod str; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
library/std/src/io/cursor/tests.rs → library/alloctests/tests/io/cursor.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.