about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-11 02:07:52 +0000
committerbors <bors@rust-lang.org>2022-11-11 02:07:52 +0000
commit5b82ea74b705799665b5a676b162f30d26f5108c (patch)
treecc33383afaa05322b5afac097aa27d0ad0236001 /compiler/rustc_ast/src/lib.rs
parentc1a859b25a95999ba276075bbd8e284ea675b41a (diff)
parentd86f9cd4640c9ad81ad4aec45c358d1931d40f30 (diff)
downloadrust-5b82ea74b705799665b5a676b162f30d26f5108c.tar.gz
rust-5b82ea74b705799665b5a676b162f30d26f5108c.zip
Auto merge of #99918 - WaffleLapkin:fnFnfun, r=estebank
Recover wrong-cased keywords that start items

(_this pr was inspired by [this tweet](https://twitter.com/Azumanga/status/1552982326409367561)_)

r? `@estebank`

We've talked a bit about this recovery, but I just wanted to make sure that this is the right approach :)

For now I've only added the case insensitive recovery to `use`s, since most other items like `impl` blocks, modules, functions can start with multiple keywords which complicates the matter.
Diffstat (limited to 'compiler/rustc_ast/src/lib.rs')
-rw-r--r--compiler/rustc_ast/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/lib.rs b/compiler/rustc_ast/src/lib.rs
index eeb7e56e2b1..9c1dfeb1a61 100644
--- a/compiler/rustc_ast/src/lib.rs
+++ b/compiler/rustc_ast/src/lib.rs
@@ -29,6 +29,7 @@ extern crate rustc_macros;
 extern crate tracing;
 
 pub mod util {
+    pub mod case;
     pub mod classify;
     pub mod comments;
     pub mod literal;