diff options
| author | bors <bors@rust-lang.org> | 2024-10-30 07:49:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-30 07:49:46 +0000 |
| commit | 8b9f0f9c1cf26c8685d3f62341de4b2132b372af (patch) | |
| tree | b1100b304655f5dc346c0e3e2f996008273fe8e5 /compiler/rustc_parse/src/parser | |
| parent | 16422dbd8958179379214e8f43fdb73a06b2eada (diff) | |
| parent | 879c4d5cccef1e826c491002eefa638b4c9b1ccc (diff) | |
| download | rust-8b9f0f9c1cf26c8685d3f62341de4b2132b372af.tar.gz rust-8b9f0f9c1cf26c8685d3f62341de4b2132b372af.zip | |
Auto merge of #132349 - matthiaskrgr:rollup-9g6s4p2, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - #129394 (Don't lint `irrefutable_let_patterns` on leading patterns if `else if` let-chains) - #131856 (TypingMode: merge intercrate, reveal, and defining_opaque_types) - #132322 (powerpc64-ibm-aix: update maintainters) - #132327 (Point to Fuchsia team in platform support docs) - #132332 (Use `token_descr` more in error messages) - #132338 (Remove `Engine`) - #132340 (cg_llvm: Consistently use safe wrapper function `set_section`) - #132342 (cg_llvm: Clean up FFI calls for operand bundles) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 77ad4fdeeb1..50a8b6542df 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -424,7 +424,7 @@ impl TokenDescription { } } -pub(super) fn token_descr(token: &Token) -> String { +pub fn token_descr(token: &Token) -> String { let name = pprust::token_to_string(token).to_string(); let kind = match (TokenDescription::from_token(token), &token.kind) { |
