rust/compiler
Aaron Hill e78e9d4a06
Treat trailing semicolon as a statement in macro call
See https://github.com/rust-lang/rust/issues/61733#issuecomment-716188981

We now preserve the trailing semicolon in a macro invocation, even if
the macro expands to nothing. As a result, the following code no longer
compiles:

```rust
macro_rules! empty {
    () => { }
}

fn foo() -> bool { //~ ERROR mismatched
    { true } //~ ERROR mismatched
    empty!();
}
```

Previously, `{ true }` would be considered the trailing expression, even
though there's a semicolon in `empty!();`

This makes macro expansion more token-based.
2020-11-02 13:03:13 -05:00
..
rustc
rustc_apfloat
rustc_arena Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_ast Treat trailing semicolon as a statement in macro call 2020-11-02 13:03:13 -05:00
rustc_ast_lowering Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
rustc_ast_passes Fix typos 2020-10-29 16:51:46 +01:00
rustc_ast_pretty Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_attr Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_builtin_macros
rustc_codegen_cranelift Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff25d3dda92' 2020-10-26 09:53:27 +01:00
rustc_codegen_llvm Implement -Z relax-elf-relocations=yes|no 2020-10-31 17:16:56 +01:00
rustc_codegen_ssa Rollup merge of #78396 - josephlr:ermsb, r=petrochenkov 2020-10-27 08:45:24 +09:00
rustc_data_structures Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_driver Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_error_codes Rollup merge of #78332 - PoignardAzur:doc_E0308, r=camelid 2020-10-27 08:44:54 +09:00
rustc_errors Some work 2020-10-30 20:02:14 -04:00
rustc_expand Treat trailing semicolon as a statement in macro call 2020-11-02 13:03:13 -05:00
rustc_feature Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_fs_util
rustc_graphviz
rustc_hir Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_hir_pretty Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_incremental
rustc_index
rustc_infer Remove implicit Continue type 2020-10-30 12:27:47 +01:00
rustc_interface Rollup merge of #78610 - petrochenkov:nostriptok, r=Aaron1011 2020-11-02 14:14:34 +09:00
rustc_lexer Add back missing comments 2020-10-30 10:13:41 -04:00
rustc_lint Treat trailing semicolon as a statement in macro call 2020-11-02 13:03:13 -05:00
rustc_lint_defs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
rustc_llvm Auto merge of #78531 - cuviper:unwrap-metadata, r=tmandry 2020-11-01 09:30:11 +00:00
rustc_macros Remove implicit Continue type 2020-10-30 12:27:47 +01:00
rustc_metadata Fix some more clippy warnings 2020-10-30 10:12:56 -04:00
rustc_middle Auto merge of #75534 - Aaron1011:feature/new-future-breakage, r=pnkfelix 2020-11-01 16:52:28 +00:00
rustc_mir Auto merge of #78592 - fpoli:nll-facts-dir, r=matthewjasper 2020-11-02 04:39:05 +00:00
rustc_mir_build Auto merge of #78553 - Nadrieril:fix-78549, r=varkor 2020-11-01 14:37:50 +00:00
rustc_parse parser: Cleanup LazyTokenStream and avoid some clones 2020-10-31 01:56:34 +03:00
rustc_parse_format
rustc_passes Rollup merge of #78208 - liketechnik:issue-69399, r=oli-obk 2020-10-25 18:43:40 +09:00
rustc_plugin_impl
rustc_privacy Auto merge of #78182 - LeSeulArtichaut:ty-visitor-contolflow, r=lcnr,oli-obk 2020-10-30 22:53:55 +00:00
rustc_query_system Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_resolve Auto merge of #78420 - estebank:suggest-assoc-fn, r=petrochenkov 2020-11-01 06:49:16 +00:00
rustc_save_analysis Rollup merge of #78349 - JohnTitor:issue-75962, r=davidtwco 2020-10-27 08:45:07 +09:00
rustc_serialize
rustc_session Auto merge of #78592 - fpoli:nll-facts-dir, r=matthewjasper 2020-11-02 04:39:05 +00:00
rustc_span Rollup merge of #78524 - tmiasko:source-files-borrow, r=Aaron1011 2020-10-30 18:00:54 +09:00
rustc_symbol_mangling Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_target Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_trait_selection Fix format 2020-11-02 16:59:11 +09:00
rustc_traits Auto merge of #78182 - LeSeulArtichaut:ty-visitor-contolflow, r=lcnr,oli-obk 2020-10-30 22:53:55 +00:00
rustc_ty
rustc_typeck Add delay_span_bug to no longer ICE 2020-11-01 22:31:19 +00:00