diff options
| author | bors <bors@rust-lang.org> | 2020-02-06 05:19:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-06 05:19:52 +0000 |
| commit | 333c32a5a4a51cae562c47e0669bc5aeaf741c45 (patch) | |
| tree | 2770b103250aa48e823361c46ea0b79a221b958c /src/libstd/sys/unix/stack_overflow.rs | |
| parent | ed853b861993ee5f3798037a3560f573c62b17cd (diff) | |
| parent | 609a37407f6fbaeae66500c840cedc81a50960be (diff) | |
| download | rust-333c32a5a4a51cae562c47e0669bc5aeaf741c45.tar.gz rust-333c32a5a4a51cae562c47e0669bc5aeaf741c45.zip | |
Auto merge of #68583 - estebank:hrlt, r=oli-obk
Account for HR lifetimes when suggesting introduction of named lifetime ``` error[E0106]: missing lifetime specifier --> src/test/ui/suggestions/fn-missing-lifetime-in-item.rs:2:32 | 2 | struct S2<F: Fn(&i32, &i32) -> &i32>(F); | ---- ---- ^ expected named lifetime parameter | = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from argument 1 or argument 2 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html help: consider making the bound lifetime-generic with a new `'a` lifetime | 2 | struct S2<F: for<'a> Fn(&'a i32, &'a i32) -> &'a i32>(F); | ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^ help: consider introducing a named lifetime parameter | 2 | struct S2<'a, F: Fn(&'a i32, &'a i32) -> &'a i32>(F);= | ^^^ ^^^^^^^ ^^^^^^^ ^^^ ``` Follow up to #68267. Addresses the diagnostics part of #49287.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
