rust/tests
Jubilee 519a322392
Rollup merge of #126187 - surechen:fix_125997, r=oli-obk
For E0277 suggest adding `Result` return type for function when using QuestionMark `?` in the body.

Adding suggestions for following function in E0277.

```rust
fn main() {
    let mut _file = File::create("foo.txt")?;
}
```

to

```rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut _file = File::create("foo.txt")?;

    return Ok(());
}
```

According to the issue #125997, only the code examples in the issue are targeted, but the issue covers a wider range of situations.

<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r​? <reviewer name>
-->
2024-06-12 03:57:20 -07:00
..
assembly Rollup merge of #125980 - kjetilkjeka:nvptx_remove_direct_passmode, r=davidtwco 2024-06-12 03:57:20 -07:00
auxiliary
codegen Rollup merge of #125963 - workingjubilee:remove-hashes-from-codegen-tests, r=Mark-Simulacrum 2024-06-09 19:16:21 +01:00
codegen-units Detect pub structs never constructed and unused associated constants in traits 2024-06-05 23:20:09 +08:00
coverage
coverage-run-rustdoc
crashes Rollup merge of #126236 - Bryanskiy:delegation-no-entry-ice-2, r=petrochenkov 2024-06-11 14:16:46 +01:00
debuginfo remove const arg windows debug info tests 2024-06-05 22:39:42 +01:00
incremental
mir-opt Delete ConstDebugInfo pass 2024-06-10 00:06:02 -07:00
pretty Auto merge of #125918 - oli-obk:const_block_ice, r=compiler-errors 2024-06-07 09:08:59 +00:00
run-make Rollup merge of #126174 - GuillaumeGomez:migrate-run-make-prefer-dylib, r=jieyouxu 2024-06-11 21:27:47 +01:00
run-pass-valgrind
rustdoc
rustdoc-gui
rustdoc-js rustdoc-search: use lowercase, non-normalized name for type search 2024-06-09 11:56:52 -07:00
rustdoc-js-std Update tests 2024-06-07 11:55:52 +08:00
rustdoc-json
rustdoc-ui rustdoc: Add support for --remap-path-prefix 2024-06-09 10:34:54 -07:00
ui Rollup merge of #126187 - surechen:fix_125997, r=oli-obk 2024-06-12 03:57:20 -07:00
ui-fulldeps Auto merge of #126111 - Zalathar:fulldeps-hotplug, r=jieyouxu 2024-06-08 07:23:17 +00:00
COMPILER_TESTS.md