rust/src/test
Mara Bos b4d06bfa8f
Rollup merge of #88657 - camelid:fix-dyn-sugg, r=m-ou-se
Fix 2021 `dyn` suggestion that used code as label

The arguments to `span_suggestion` were in the wrong order, so the error
looked like this:

    error[E0783]: trait objects without an explicit `dyn` are deprecated
      --> src/test/ui/editions/dyn-trait-sugg-2021.rs:10:5
       |
    10 |     Foo::hi(123);
       |     ^^^ help: <dyn Foo>: `use `dyn``

Now the error looks like this, as expected:

    error[E0783]: trait objects without an explicit `dyn` are deprecated
      --> src/test/ui/editions/dyn-trait-sugg-2021.rs:10:5
       |
    10 |     Foo::hi(123);
       |     ^^^ help: use `dyn`: `<dyn Foo>`

This issue was only present in the 2021 error; the 2018 lint was
correct.

r? `@m-ou-se`
2021-09-05 10:32:24 +02:00
..
assembly Rollup merge of #88350 - programmerjake:add-ppc-cr-xer-clobbers, r=Amanieu 2021-09-01 09:23:26 +02:00
auxiliary
codegen Rollup merge of #88350 - programmerjake:add-ppc-cr-xer-clobbers, r=Amanieu 2021-09-01 09:23:26 +02:00
codegen-units
debuginfo feature(const_param_types) -> feature(adt_const_params) 2021-08-30 12:07:36 +02:00
incremental Report cycle error using 'deepest' obligation in the cycle 2021-09-02 11:49:32 -05:00
mir-opt Update coverage tests 2021-09-03 19:51:27 +01:00
pretty Make Arguments constructors unsafe 2021-08-16 16:28:16 +00:00
run-make Auto merge of #88482 - athei:add-import-test, r=the8472 2021-09-03 23:12:35 +00:00
run-make-fulldeps Update coverage tests 2021-09-03 19:51:27 +01:00
run-pass-valgrind
rustdoc Auto merge of #88490 - GuillaumeGomez:associated-types-implementors-display, r=camelid,Manishearth 2021-09-01 21:31:16 +00:00
rustdoc-gui Auto merge of #88490 - GuillaumeGomez:associated-types-implementors-display, r=camelid,Manishearth 2021-09-01 21:31:16 +00: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 Add rustdonc-json tests for enum variants 2021-08-29 16:00:48 +02:00
rustdoc-ui rustdoc: Don't panic on ambiguous inherent associated types 2021-09-01 15:04:50 -07:00
ui Rollup merge of #88657 - camelid:fix-dyn-sugg, r=m-ou-se 2021-09-05 10:32:24 +02:00
ui-fulldeps Detect bare blocks with type ascription that were meant to be a struct literal 2021-09-03 14:43:04 +00:00
COMPILER_TESTS.md