Replace some bool
params with an enum
This commit is contained in:
parent
38b0865248
commit
d86f9cd464
7 changed files with 63 additions and 47 deletions
6
compiler/rustc_ast/src/util/case.rs
Normal file
6
compiler/rustc_ast/src/util/case.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
/// Whatever to ignore case (`fn` vs `Fn` vs `FN`) or not. Used for recovering.
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub enum Case {
|
||||
Sensitive,
|
||||
Insensitive,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue