rust/compiler
Aaron Hill 758834d3e2
Only eat semicolons for statements that need them
When parsing a statement (e.g. inside a function body),
we now consider `struct Foo {};` and `$stmt;` to each consist
of two statements: `struct Foo {}` and `;`, and `$stmt` and `;`.

As a result, an attribute macro invoke as
`fn foo() { #[attr] struct Bar{}; }` will see `struct Bar{}` as its
input. Additionally, the 'unused semicolon' lint now fires in more
places.
2020-11-26 17:08:35 -05:00
..
rustc just max_level_info 2020-09-11 09:37:51 -07:00
rustc_apfloat Backport another LLVM commit to rustc_apfloat 2020-10-04 02:02:25 +02:00
rustc_arena Use specialization to avoid copying 2020-11-20 21:02:09 +01:00
rustc_ast Properly handle attributes on statements 2020-11-26 17:08:35 -05:00
rustc_ast_lowering Remove Pat pre-lowering. 2020-11-23 19:02:47 +01:00
rustc_ast_passes Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
rustc_ast_pretty Rollup merge of #79016 - fanzier:underscore-expressions, r=petrochenkov 2020-11-15 13:39:48 +01:00
rustc_attr Never inline naked functions 2020-11-20 00:00:00 +00:00
rustc_builtin_macros Properly handle attributes on statements 2020-11-26 17:08:35 -05:00
rustc_codegen_cranelift Auto merge of #79336 - camelid:rename-feature-oibit-to-auto, r=oli-obk 2020-11-25 07:25:19 +00:00
rustc_codegen_llvm Rollup merge of #79365 - richkadel:llvm-cov-map-version-4, r=wesleywiser 2020-11-26 13:39:09 +01:00
rustc_codegen_ssa Updated links to LLVM 11 docs and types 2020-11-23 19:15:10 -08:00
rustc_data_structures Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
rustc_driver Auto merge of #77671 - flip1995:lint_list_always_plugins, r=oli-obk,Manishearth 2020-11-26 18:51:45 +00:00
rustc_error_codes Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
rustc_errors Rollup merge of #74293 - GuillaumeGomez:rustdoc-test-compiler-output-color, r=jyn514 2020-11-17 16:13:46 +01:00
rustc_expand Properly handle attributes on statements 2020-11-26 17:08:35 -05:00
rustc_feature Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
rustc_fs_util Remove unused code from remaining compiler crates 2020-10-14 04:14:32 +02:00
rustc_graphviz Rust coverage before splitting instrument_coverage.rs 2020-11-05 18:24:12 -08:00
rustc_hir resolve: Introduce a separate NonMacroAttrKind for legacy derive helpers 2020-11-19 19:25:20 +03:00
rustc_hir_pretty Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
rustc_incremental Only create OnDiskCache in incremental compilation mode 2020-11-19 15:50:55 -05:00
rustc_index Stabilise then 2020-11-22 13:45:14 +00:00
rustc_infer Rollup merge of #77758 - Stupremee:turbofish-help-for-const, r=varkor 2020-11-26 13:39:00 +01:00
rustc_interface Properly handle attributes on statements 2020-11-26 17:08:35 -05:00
rustc_lexer Add back missing comments 2020-10-30 10:13:41 -04:00
rustc_lint Move lev_distance to rustc_ast, make non-generic 2020-11-24 16:12:23 -08:00
rustc_lint_defs More consistently use spaces after commas in lists in docs 2020-11-21 14:43:34 -05:00
rustc_llvm Improved version check 2020-11-25 09:45:33 -08:00
rustc_macros Only create OnDiskCache in incremental compilation mode 2020-11-19 15:50:55 -05:00
rustc_metadata Stabilise then 2020-11-22 13:45:14 +00:00
rustc_middle Rollup merge of #79402 - bugadani:typos, r=matthewjasper 2020-11-26 13:39:11 +01:00
rustc_mir Fixup compiler docs 2020-11-25 13:15:48 -08:00
rustc_mir_build Rollup merge of #79421 - camelid:_match-docs-fmt, r=petrochenkov 2020-11-26 13:39:18 +01:00
rustc_parse Only eat semicolons for statements that need them 2020-11-26 17:08:35 -05:00
rustc_parse_format /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_passes Validate use of parameters in naked functions 2020-11-25 00:00:00 +00:00
rustc_plugin_impl /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_privacy Fix typo in comment 2020-11-22 20:32:36 -05:00
rustc_query_system Fix typos 2020-11-21 09:06:45 +01:00
rustc_resolve Move lev_distance to rustc_ast, make non-generic 2020-11-24 16:12:23 -08:00
rustc_save_analysis Rollup merge of #78352 - JohnTitor:issue-75229, r=Dylan-DPC 2020-11-15 03:02:34 +01:00
rustc_serialize Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_session TRACK '-Z polonius' flag 2020-11-24 20:08:54 -08:00
rustc_span Rollup merge of #79000 - sivadeilra:user/ardavis/lev_distance, r=wesleywiser 2020-11-26 13:39:05 +01:00
rustc_symbol_mangling compiler: fold by value 2020-11-16 22:34:57 +01:00
rustc_target Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
rustc_trait_selection Rollup merge of #79325 - LingMan:try_op, r=jonas-schievink 2020-11-23 15:25:47 +01:00
rustc_traits Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
rustc_ty_utils Move rustc_ty -> rustc_ty_utils 2020-11-19 21:57:29 +01:00
rustc_typeck Auto merge of #79441 - jonas-schievink:rollup-l9v00bl, r=jonas-schievink 2020-11-26 14:14:57 +00:00