rust-analyzer/crates/syntax
bors[bot] a57bd59f35
Merge #8813
8813: Get some more array lengths! r=lf- a=lf-

This is built on #8799 and thus contains its changes. I'll rebase it onto master when that one gets merged. It adds support for r-a understanding the length of:

* `let a: [u8; 2] = ...`
* `let a = b"aaa"`
* `let a = [0u8; 4]`

I have added support for getting the values of byte strings, which was not previously there. I am least confident in the correctness of this part and it probably needs some more tests, as we currently have only one test that exercised that part (!).

Fixes #2922.

Co-authored-by: Jade <software@lfcode.ca>
2021-05-16 01:53:12 +00:00
..
fuzz Add cargo file tidy test 2021-02-03 22:01:09 +08:00
src Merge #8813 2021-05-16 01:53:12 +00:00
test_data Attach comments to ast::Impl 2021-05-15 17:32:28 +02:00
Cargo.toml internal: remove one more immutable tree 2021-05-14 16:19:27 +03:00