about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-04 15:03:00 +0000
committerbors <bors@rust-lang.org>2017-08-04 15:03:00 +0000
commitdae8864dbe1b81e4cd3b2a6b046a95db337b3098 (patch)
treedba045764cfc1edd13ab4d60866110e8836f20e2 /src/rustllvm/RustWrapper.cpp
parentf2a5af7a4c7424acc9acc52161fb57210a4bb219 (diff)
parente7e620d0cc4ca1a971d8381a65e64efd5b66e489 (diff)
downloadrust-dae8864dbe1b81e4cd3b2a6b046a95db337b3098.tar.gz
rust-dae8864dbe1b81e4cd3b2a6b046a95db337b3098.zip
Auto merge of #43600 - scalexm:issue-35976, r=nikomatsakis
Add a more precise error message for issue #35976

When trying to perform static dispatch on something which derefs to a trait object, and the target trait is not in scope, we had confusing error messages if the target method had a `Self: Sized` bound. We add a more precise error message in this case: "consider using trait ...".

Fixes #35976.

r? @nikomatsakis
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions