rust/crates
bors[bot] 97ade89993 Merge #692
692: [WIP] Correctly parse attributes  r=matklad a=DJMcNab

Reference - https://doc.rust-lang.org/reference/attributes.html
This fixes/investigates inner attributes for:

- [x] `impl` blocks
- [x] `extern` blocks
- [x] `fn`s (fixes #689)
- [x] `mod`s (already supported)
- [x] 'block expressions' (the long text just describes all 'blocks' used as statements)

This also investigates/fixes outer attributes for:

- [ ] 'most statements' (see also: #685, https://doc.rust-lang.org/reference/expressions.html#expression-attributes)
- [x] Enum variants, Struct and Union fields (Fixed in #507)
- [ ] 'Match expression arms' (@matklad can you provide a test case which explains what this means?)
- [ ] 'Generic lifetime or type parameters'
- [ ] 'Elements of array expressions, tuple expressions, call expressions, tuple-style struct and enum variant expressions'
- [ ] 'The tail expression of block expressions'

Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
2019-01-31 07:06:31 +00:00
..
gen_lsp_server Bumpup lsp-types to v0.55.0 2019-01-24 02:47:03 +09:00
ra_arena use positional ids for fields 2019-01-25 14:21:14 +03:00
ra_cli rename TreePtr -> TreeArc 2019-01-11 19:59:06 +03:00
ra_db update salsa 2019-01-28 13:53:32 +03:00
ra_hir Merge #701 2019-01-30 20:51:47 +00:00
ra_ide_api Merge #702 2019-01-30 19:19:31 +00:00
ra_ide_api_light Some improvements to introduce_variable. 2019-01-30 23:01:01 +01:00
ra_lsp_server Merge #702 2019-01-30 19:19:31 +00:00
ra_syntax Merge #692 2019-01-31 07:06:31 +00:00
ra_text_edit kill text utils 2019-01-08 22:03:13 +03:00
ra_vfs remove watcher ctx 2019-01-26 17:17:28 +03:00
test_utils refactor import resolution 2019-01-25 10:08:21 +03:00
thread_worker ⬆️ crossbeam 2018-12-30 23:23:31 +03:00
tools fix verification on CI 2019-01-27 02:30:54 +03:00