mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 22:24:14 +00:00
0ba6f4eda0
feat: add preliminary support for `+ use<..>` `precise_capturing` syntax ## Summary This PR adds basic support for the following syntax. ```rs fn captures<'a: 'a, 'b: 'b, T>() -> impl Sized + use<'b, T> {} // ~~~~~~~~~~~~~~~~~~~~~~~ // This opaque type does not capture `'a`. fn outlives<'o, T: 'o>(_: T) {} fn caller<'o, 'a, 'b: 'o, T: 'o>() { // ~~ // ^ Note that we don't need `'a: 'o`. outlives::<'o>(captures::<'a, 'b, T>()); } ``` Related to #17598 |
||
---|---|---|
.. | ||
ast | ||
parsing | ||
validation | ||
algo.rs | ||
ast.rs | ||
fuzz.rs | ||
hacks.rs | ||
lib.rs | ||
parsing.rs | ||
ptr.rs | ||
syntax_error.rs | ||
syntax_node.rs | ||
ted.rs | ||
tests.rs | ||
token_text.rs | ||
utils.rs | ||
validation.rs |