rust/crates
bors[bot] 670895a49c
Merge #3482
3482: Fix regression from #3451 r=matklad a=edwin0cheng

There is a regression from #3451 such that the following code has failed to parse in raw item collecting phase:

```rust
macro_rules! with_std { 
 	($($i:item)*) => ($(#[cfg(feature = "std")]$i)*) 
}

with_std! {
	mod macros;
	mod others;
}
```

### Rationale

We always assume the last token of an statement will not end with a whitespace, which is true. It is because in parsing phase,  we always emit `SyntaxNode` before any whitespace. Such that in various parts of RA code, we solely check the semi-colon by using `SyntaxNode::last_child_token() == ";"` . 

However, in #3451, we insert some whitespaces between puncts such that we broke above assumption. This PR fixed this bug by make sure we don't add any whitespace if it is a semicolon.


Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-03-06 10:03:54 +00:00
..
ra_arena
ra_assists Remove old find refs infra 2020-03-04 14:25:22 +01:00
ra_cargo_watch lsp-types 0.72 2020-03-02 11:52:46 -05:00
ra_cfg Update versions 2020-02-18 16:12:40 +02:00
ra_db ra_db: removed a couple of explicit lifetimes 2020-02-22 17:00:39 +02:00
ra_fmt When joining lines, unwrap trivial diverging blocks 2020-02-24 17:17:05 +01:00
ra_hir Move PathResolution 2020-03-05 11:08:31 +01:00
ra_hir_def Add profiling calls 2020-03-05 14:22:31 +01:00
ra_hir_expand Add comment for parents logging 2020-03-05 03:02:51 +08:00
ra_hir_ty Fix panic on eager expansion 2020-03-04 02:41:33 +08:00
ra_ide Prime open files on load 2020-03-05 13:40:53 +01:00
ra_ide_db Fix docs 2020-03-04 12:48:50 +01:00
ra_mbe fix regression from #3451 2020-03-06 04:32:08 +08:00
ra_parser Implement concat macro 2020-03-04 01:21:14 +08:00
ra_prof Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_project_model ra_project_model: migrate to Sysroot::alloc() 2020-03-01 00:16:57 +02:00
ra_syntax Add with_use_tree 2020-03-05 18:38:52 +01:00
ra_text_edit Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_tt Update versions 2020-02-18 16:12:40 +02:00
rust-analyzer Merge #3475 2020-03-05 12:58:41 +00:00
test_utils Support cross-crate marks 2020-03-04 11:55:25 +01:00