about summary refs log tree commit diff
path: root/library/test/src/term
AgeCommit message (Collapse)AuthorLines
2025-02-17Rollup merge of #136844 - thaliaarchi:const-io-error, r=ChrisDentonMatthias Krüger-2/+2
Use `const_error!` when possible Replace usages of `io::Error::new(io::ErrorKind::Variant, "constant string")` with `io::const_error!(io::ErrorKind::Variant, "constant string")` to avoid allocations when possible. Additionally, fix `&&str` error messages in SGX and missing/misplaced trailing commas in `const_error!`.
2025-02-13test: Apply deprecated_safe_2024Eric Huss-2/+6
2025-02-10Use io::const_error! when possible over io::Error::newThalia Archibald-2/+2
2025-02-09Mark extern blocks as unsafeMichael Goulet-1/+1
2024-09-24Dogfood `feature(file_buffered)`Josh Stone-4/+2
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-3/+3
2024-07-29Reformat `use` declarations.Nicholas Nethercote-14/+11
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-26Fix doc nitsJohn Arundel-1/+1
Many tiny changes to stdlib doc comments to make them consistent (for example "Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph breaks, backticks for monospace style, and other minor nits. https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
2024-05-30Apply x clippy --fix and x fmtr0cky-1/+1
2024-05-26use proper name instead of magic numberLzu Tao-7/+5
2023-12-10remove redundant importssurechen-2/+0
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-08-02test_get_dbpath_for_term(): handle non-utf8 pathsMartin Nordholts-6/+4
2023-08-02test_get_dbpath_for_term(): Use assert_eq!()Martin Nordholts-3/+3
For better failure messages.
2023-01-14Remove various double spaces in source comments.André Vennberg-1/+1
2023-01-03Fix a few clippy lints in libtestJoshua Nelson-9/+9
- Remove unnecessary references and dereferences - Use `.contains` instead of `a <= x && x <= b` - Use `mem::take` instead of `mem::replace` where possible
2022-10-21WinConsole::new is not actually fallibleRalf Jung-4/+3
2022-08-07test: skip terminfo parsing in MiriRalf Jung-0/+20
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-5/+5
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2021-09-09Ignore automatically derived impls of `Clone` and `Debug` in dead code analysisFabian Wolff-0/+1
2021-07-18Remove unused stuff and switch to pub(crate) whenever possible.Charles Lew-191/+39
2021-07-18Fix compilation errors.Charles Lew-200/+6
2021-07-18Move `library/term/src` to `library/test/src/term/`.Charles Lew-0/+1788