rust/src/test
bors d83da1d05d Auto merge of #88083 - m-ou-se:non-fmt-panics-suggest-debug, r=estebank
Improve non_fmt_panics suggestion based on trait impls.

This improves the non_fmt_panics lint suggestions by checking first which trait (Display or Debug) are actually implemented on the type.

Fixes https://github.com/rust-lang/rust/issues/87313

Fixes https://github.com/rust-lang/rust/issues/87999

Before:

```
help: add a "{}" format string to Display the message
  |
2 |     panic!("{}", Some(1));
  |            +++++
help: or use std::panic::panic_any instead
  |
2 |     std::panic::panic_any(Some(1));
  |     ~~~~~~~~~~~~~~~~~~~~~
```

After:

```
help: add a "{:?}" format string to use the Debug implementation of `Option<i32>`
  |
2 |     panic!("{:?}", Some(1));
  |            +++++++
help: or use std::panic::panic_any instead
  |
2 |     std::panic::panic_any(Some(1));
  |     ~~~~~~~~~~~~~~~~~~~~~
```

r? `@estebank`
2021-08-17 16:43:40 +00:00
..
assembly Re-Annotate the tests with needs-llvm-components 2021-06-24 23:13:08 +03:00
auxiliary
codegen Auto merge of #88032 - hyd-dev:no-mangle-method, r=petrochenkov 2021-08-16 09:38:18 +00:00
codegen-units
debuginfo Auto merge of #85020 - lrh2000:named-upvars, r=tmandry 2021-08-14 07:01:36 +00:00
incremental Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, r=oli-obk" 2021-08-15 23:44:34 -04:00
mir-opt Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, r=oli-obk" 2021-08-15 23:44:34 -04:00
pretty Auto merge of #83491 - jyn514:remove-pretty, r=pnkfelix 2021-07-27 03:12:40 +00:00
run-make Auto merge of #88056 - erikdesjardins:revertzst, r=oli-obk 2021-08-17 14:02:55 +00:00
run-make-fulldeps Fix assertions in coverage-reports test 2021-08-04 07:47:09 -07:00
run-pass-valgrind
rustdoc Fix URL conflict for std type 2021-08-05 23:33:43 +02:00
rustdoc-gui Merge the two test files as they are testing the same features 2021-08-16 21:50:13 +02:00
rustdoc-js fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-js-std fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-json
rustdoc-ui feature gate doc(primitive) 2021-08-16 05:41:16 +00:00
rustfix
ui Auto merge of #88083 - m-ou-se:non-fmt-panics-suggest-debug, r=estebank 2021-08-17 16:43:40 +00:00
ui-fulldeps Introduce hir::ExprKind::Let - Take 2 2021-08-15 16:18:26 -03:00
COMPILER_TESTS.md