rust/compiler/rustc_codegen_ssa/src
bors 4ae328bef4 Auto merge of #78296 - Aaron1011:fix/stmt-tokens, r=petrochenkov
Properly handle attributes on statements

We now collect tokens for the underlying node wrapped by `StmtKind`
nstead of storing tokens directly in `Stmt`.

`LazyTokenStream` now supports capturing a trailing semicolon after it
is initially constructed. This allows us to avoid refactoring statement
parsing to wrap the parsing of the semicolon in `parse_tokens`.

Attributes on item statements
(e.g. `fn foo() { #[bar] struct MyStruct; }`) are now treated as
item attributes, not statement attributes, which is consistent with how
we handle attributes on other kinds of statements. The feature-gating
code is adjusted so that proc-macro attributes are still allowed on item
statements on stable.

Two built-in macros (`#[global_allocator]` and `#[test]`) needed to be
adjusted to support being passed `Annotatable::Stmt`.
2020-11-28 07:48:56 +00:00
..
back Add support for Arm64 Catalyst on ARM Macs 2020-11-26 11:31:59 +01:00
coverageinfo Updated links to LLVM 11 docs and types 2020-11-23 19:15:10 -08:00
debuginfo compiler: fold by value 2020-11-16 22:34:57 +01:00
mir Fix new 'unnecessary trailing semicolon' warnings 2020-11-26 17:08:36 -05:00
traits rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
base.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
common.rs
glue.rs
lib.rs Move finalize_session_directory call out of cg_llvm 2020-10-10 15:20:35 +02:00
meth.rs
mono_item.rs
target_features.rs Rollup merge of #78361 - DevJPM:master, r=workingjubilee 2020-11-18 15:46:19 +01:00