diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-10-07 14:23:56 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-10-15 13:55:43 -0700 |
| commit | 190589f8a732393047bd0dc10b27a9aae4410944 (patch) | |
| tree | b22eab92f84259e3bea7c3f7bdbecec7f339ccb2 /src/rustllvm/RustWrapper.cpp | |
| parent | 237d54ff6c4fb3577e02d4c5af02813c11b63d01 (diff) | |
| download | rust-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
