rust-analyzer/crates/syntax/src/ast
bors 0ba6f4eda0 Auto merge of #17676 - winstxnhdw:precise-capturing, r=Veykril
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
2024-07-25 11:10:56 +00:00
..
generated Auto merge of #17676 - winstxnhdw:precise-capturing, r=Veykril 2024-07-25 11:10:56 +00:00
edit.rs ⬆️ rust-analyzer 2023-01-09 10:36:22 -08:00
edit_in_place.rs HasGenericArgs syntax trait 2024-07-07 11:18:28 +02:00
expr_ext.rs Add always disabled gen parse support 2024-07-17 10:49:12 +02:00
generated.rs Deny unreachable-pub 2020-11-02 14:07:08 +01:00
make.rs Avoid ref when using format! in compiler 2024-07-19 14:41:59 -04:00
node_ext.rs Auto merge of #17676 - winstxnhdw:precise-capturing, r=Veykril 2024-07-25 11:10:56 +00:00
operators.rs ⬆️ rust-analyzer 2022-08-16 11:24:50 +03:00
prec.rs fix: don't remove parentheses for calls of function-like pointers that are members of a struct or union 2024-06-21 17:57:53 +03:00
token_ext.rs Add f16 and f128 support 2024-07-10 10:43:14 +01:00
traits.rs HasGenericArgs syntax trait 2024-07-07 11:18:28 +02:00