rust/src/test
Matthias Krüger 26f505c433
Rollup merge of #90430 - jkugelman:must-use-std-a-through-n, r=joshtriplett
Add #[must_use] to remaining std functions (A-N)

I've run out of compelling reasons to group functions together across crates so I'm just going to go module-by-module. This is half of the remaining items from the `std` crate, from A-N.

I added these functions myself. Clippy predictably ignored the `mut` ones, but I don't know why the rest weren't flagged. Check them closely, please? Maybe I overlooked good reasons.

```rust
std::backtrace::Backtrace                                   const fn disabled() -> Backtrace;
std::backtrace::Backtrace<'a>                               fn frames(&'a self) -> &'a [BacktraceFrame];
std::collections::hash_map::RawOccupiedEntryMut<'a, K, V>   fn key_mut(&mut self) -> &mut K;
std::collections::hash_map::RawOccupiedEntryMut<'a, K, V>   fn get_mut(&mut self) -> &mut V;
std::collections::hash_map::RawOccupiedEntryMut<'a, K, V>   fn get_key_value(&mut self) -> (&K, &V);
std::collections::hash_map::RawOccupiedEntryMut<'a, K, V>   fn get_key_value_mut(&mut self) -> (&mut K, &mut V);
std::env                                                    fn var_os<K: AsRef<OsStr>>(key: K) -> Option<OsString>;
std::env                                                    fn split_paths<T: AsRef<OsStr> + ?Sized>(unparsed: &T) -> SplitPaths<'_>;
std::io::Error                                              fn get_mut(&mut self) -> Option<&mut (dyn error::Error + Send + Sync + 'static)>;
```

Parent issue: #89692

r? `@joshtriplett`
2021-10-31 13:20:06 +01:00
..
assembly
auxiliary
codegen Auto merge of #89652 - rcvalle:rust-cfi, r=nagisa 2021-10-27 09:19:42 +00:00
codegen-units
debuginfo
incremental
mir-opt
pretty
run-make Auto merge of #90205 - mati865:link-modifiers-in-rustc, r=petrochenkov 2021-10-30 16:22:49 +00:00
run-make-fulldeps Auto merge of #90205 - mati865:link-modifiers-in-rustc, r=petrochenkov 2021-10-30 16:22:49 +00:00
run-pass-valgrind
rustdoc Document tests a bit more 2021-10-30 16:30:14 +02:00
rustdoc-gui Remove underlines from non-top docblocks. 2021-10-30 09:22:28 -07:00
rustdoc-js Fix invalid handling of generics 2021-10-29 20:54:15 +02:00
rustdoc-js-std
rustdoc-json
rustdoc-ui Rollup merge of #90183 - GuillaumeGomez:recurse-deref, r=jyn514 2021-10-30 20:30:26 +02:00
ui Rollup merge of #90430 - jkugelman:must-use-std-a-through-n, r=joshtriplett 2021-10-31 13:20:06 +01:00
ui-fulldeps Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
COMPILER_TESTS.md