Put checking if anonct is a default into a method on hir map
This commit is contained in:
parent
e276b860e2
commit
8c40360ed4
4 changed files with 28 additions and 29 deletions
|
@ -1422,6 +1422,9 @@ pub type Lit = Spanned<LitKind>;
|
|||
/// These are usually found nested inside types (e.g., array lengths)
|
||||
/// or expressions (e.g., repeat counts), and also used to define
|
||||
/// explicit discriminant values for enum variants.
|
||||
///
|
||||
/// You can check if this anon const is a default in a const param
|
||||
/// `const N: usize = { ... }` with [Map::opt_const_param_default_param_hir_id]
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Debug, HashStable_Generic)]
|
||||
pub struct AnonConst {
|
||||
pub hir_id: HirId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue