rust/compiler/rustc_expand/src
Matthias Krüger bdc4480914
Rollup merge of #119231 - aDotInTheVoid:PatKind-struct-bool-docs, r=compiler-errors
Clairify `ast::PatKind::Struct` presese of `..` by using an enum instead of a bool

The bool is mainly used for when a `..` is present, but it is also set on recovery to avoid errors. The doc comment not describes both of these cases.

See cee794ee98/compiler/rustc_parse/src/parser/pat.rs (L890-L897) for the only place this is constructed.

r? ``@compiler-errors``
2023-12-23 16:23:54 +01:00
..
mbe Improve some names. 2023-12-23 13:23:28 +11:00
mut_visit rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant 2021-10-18 00:23:24 +03:00
parse Add spacing information to delimiters. 2023-12-11 09:36:40 +11:00
tokenstream Remove TokenStreamBuilder. 2022-10-05 12:42:54 +11:00
base.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
build.rs Rollup merge of #119231 - aDotInTheVoid:PatKind-struct-bool-docs, r=compiler-errors 2023-12-23 16:23:54 +01:00
config.rs Rollup merge of #118802 - ehuss:remove-edition-preview, r=TaKO8Ki 2023-12-11 11:40:36 +01:00
errors.rs Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
expand.rs update cfg(bootstrap)s 2023-12-22 11:14:11 +01:00
lib.rs Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00
mbe.rs Add spacing information to delimiters. 2023-12-11 09:36:40 +11:00
module.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
placeholders.rs Give VariantData::Struct named fields, to clairfy recovered. 2023-12-20 00:07:34 +00:00
proc_macro.rs Rename Session::span_diagnostic as Session::dcx. 2023-12-18 16:06:21 +11:00
proc_macro_server.rs Remove render_span args from Diagnostic::{sub,sub_with_highlight}. 2023-12-23 13:23:28 +11:00
tests.rs Rename many DiagCtxt and EarlyDiagCtxt locals. 2023-12-18 16:06:22 +11:00