Logo
Explore Help
Sign In
itsscb/rust
1
0
Fork 0
You've already forked rust
mirror of https://github.com/rust-lang/rust.git synced 2026-01-08 20:45:29 +00:00
Code Issues Packages Projects Releases Wiki Activity
rust/compiler
History
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
…
rustc_apfloat
…
rustc_arena
…
rustc_ast
…
rustc_ast_lowering
…
rustc_ast_passes
…
rustc_ast_pretty
…
rustc_attr
…
rustc_builtin_macros
…
rustc_codegen_cranelift
…
rustc_codegen_llvm
…
rustc_codegen_ssa
…
rustc_data_structures
…
rustc_driver
…
rustc_error_codes
…
rustc_errors
…
rustc_expand
…
rustc_feature
…
rustc_fs_util
…
rustc_graphviz
…
rustc_hir
…
rustc_hir_pretty
…
rustc_incremental
…
rustc_index
…
rustc_infer
…
rustc_interface
…
rustc_lexer
…
rustc_lint
…
rustc_lint_defs
…
rustc_llvm
…
rustc_macros
…
rustc_metadata
…
rustc_middle
…
rustc_mir
…
rustc_mir_build
…
rustc_parse
…
rustc_parse_format
…
rustc_passes
…
rustc_plugin_impl
…
rustc_privacy
…
rustc_query_system
…
rustc_resolve
…
rustc_save_analysis
…
rustc_serialize
…
rustc_session
…
rustc_span
…
rustc_symbol_mangling
…
rustc_target
…
rustc_trait_selection
…
rustc_traits
…
rustc_ty_utils
…
rustc_typeck
…
Powered by Gitea Version: 1.23.6 Page: 3142ms Template: 298ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API