about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-10-07 14:23:56 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-10-15 13:55:43 -0700
commit190589f8a732393047bd0dc10b27a9aae4410944 (patch)
treeb22eab92f84259e3bea7c3f7bdbecec7f339ccb2 /src/rustllvm/RustWrapper.cpp
parent237d54ff6c4fb3577e02d4c5af02813c11b63d01 (diff)
downloadrust-190589f8a732393047bd0dc10b27a9aae4410944.tar.gz
rust-190589f8a732393047bd0dc10b27a9aae4410944.zip
Use structured suggestion for restricting bounds
When a trait bound is not met and restricting a type parameter would
make the restriction hold, use a structured suggestion pointing at an
appropriate place (type param in param list or `where` clause).

Account for opaque parameters where instead of suggesting extending
the `where` clause, we suggest appending the new restriction:
`fn foo(impl Trait + UnmetTrait)`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions