about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-09-05 10:32:24 +0200
committerGitHub <noreply@github.com>2021-09-05 10:32:24 +0200
commitb4d06bfa8f7c3a836fb124307bdd3ec5007fac73 (patch)
treebf8ed52aa1f3310e6be200e545f9913b7c555f2d /compiler/rustc_mir_transform/src/coverage/mod.rs
parent5fdc8eb2e8ea8b54fbd83b291ab0db8d0a573a82 (diff)
parent486d79f1243135564931c574ce5cfff946ee3867 (diff)
downloadrust-b4d06bfa8f7c3a836fb124307bdd3ec5007fac73.tar.gz
rust-b4d06bfa8f7c3a836fb124307bdd3ec5007fac73.zip
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`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions