about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-04 20:41:34 +0200
committerGitHub <noreply@github.com>2022-04-04 20:41:34 +0200
commit0c5f8792037e860351ddb7c5cd9e6761d2bba704 (patch)
tree6559ee6a4a1bc1aa5e0e1fbe8783bfc11b393d86 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent4cbc0035776d2d56a58f3d077cfd8d292593c5ed (diff)
parent7d7715fbbce214b242cad15e06aea088cdfaa141 (diff)
downloadrust-0c5f8792037e860351ddb7c5cd9e6761d2bba704.tar.gz
rust-0c5f8792037e860351ddb7c5cd9e6761d2bba704.zip
Rollup merge of #95609 - compiler-errors:borrow-unsized-to-dyn, r=nagisa
Suggest borrowing when trying to coerce unsized type into `dyn Trait`

A helpful error in response to #95598, since we can't coerce e.g. `&str` into `&dyn Display`, but we can coerce `&&str` into `&dyn Display` :)

Not sure if the suggestion message needs some help. Let me know, and I can refine this PR.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions