mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 05:53:10 +00:00
![]() We now collect tokens for the underlying node wrapped by `StmtKind` instead 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`. |
||
---|---|---|
.. | ||
deriving | ||
format_foreign | ||
asm.rs | ||
assert.rs | ||
cfg_accessible.rs | ||
cfg.rs | ||
cmdline_attrs.rs | ||
compile_error.rs | ||
concat_idents.rs | ||
concat.rs | ||
env.rs | ||
format_foreign.rs | ||
format.rs | ||
global_allocator.rs | ||
global_asm.rs | ||
lib.rs | ||
llvm_asm.rs | ||
log_syntax.rs | ||
proc_macro_harness.rs | ||
source_util.rs | ||
standard_library_imports.rs | ||
test_harness.rs | ||
test.rs | ||
trace_macros.rs | ||
util.rs |