rust-analyzer/crates/hir/src
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
..
semantics Unleash macro 2.0 in hightlight and more 2021-03-27 14:42:49 +08:00
attrs.rs Don't store call-site text offsets in hygiene info 2021-05-06 19:59:54 +02:00
db.rs Glob-reexport hir_def database types 2021-04-04 01:29:59 +02:00
diagnostics.rs For unresolved macros, hightlight only the last segment 2021-02-28 14:29:10 +03:00
display.rs internal: normalize name 2021-04-30 11:52:31 +03:00
from_id.rs Remove useless code_model indirection 2021-03-08 22:08:30 +03:00
has_source.rs Return Either from MacroDefId::ast_id 2021-03-19 19:56:13 +01:00
lib.rs Merge #8813 2021-05-16 01:53:12 +00:00
semantics.rs Reuse database in LowerCtx 2021-05-06 23:23:50 +02:00
source_analyzer.rs Reuse database in LowerCtx 2021-05-06 23:23:50 +02:00