diff options
| author | Folkert de Vries <folkert@folkertdev.nl> | 2025-07-04 23:56:16 +0200 |
|---|---|---|
| committer | Folkert de Vries <folkert@folkertdev.nl> | 2025-07-13 14:34:40 +0200 |
| commit | 3689b80b75bb400e740897ec83e64be332098c0d (patch) | |
| tree | db23b5f9d95c0f4613ae1599111c0c7c595be85a /compiler/rustc_parse/src/parser/mod.rs | |
| parent | 1b0bc594a75dfc1cdedc6c17052cf44de101e632 (diff) | |
| download | rust-3689b80b75bb400e740897ec83e64be332098c0d.tar.gz rust-3689b80b75bb400e740897ec83e64be332098c0d.zip | |
make `cfg_select` a builtin macro
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index cfc0399b0ca..bc939b8f5a7 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1,4 +1,3 @@ -pub mod asm; pub mod attr; mod attr_wrapper; mod diagnostics; @@ -12,6 +11,11 @@ mod stmt; pub mod token_type; mod ty; +// Parsers for non-functionlike builtin macros are defined in rustc_parse so they can be used by +// both rustc_builtin_macros and rustfmt. +pub mod asm; +pub mod cfg_select; + use std::assert_matches::debug_assert_matches; use std::{fmt, mem, slice}; |
