fix: address suggestions

This commit is contained in:
Artur Sinila 2022-07-17 18:22:11 +03:00
parent 15f73008f8
commit 83177a7cfe
No known key found for this signature in database
GPG key ID: 770E69D690735C61
12 changed files with 72 additions and 65 deletions

View file

@ -13,7 +13,7 @@
//! See also a neighboring `body` module.
use hir_expand::name::Name;
use la_arena::Idx;
use la_arena::{Idx, RawIdx};
use crate::{
builtin_type::{BuiltinFloat, BuiltinInt, BuiltinUint},
@ -27,6 +27,11 @@ pub use syntax::ast::{ArithOp, BinaryOp, CmpOp, LogicOp, Ordering, RangeOp, Unar
pub type ExprId = Idx<Expr>;
/// FIXME: this is a hacky function which should be removed
pub(crate) fn dummy_expr_id() -> ExprId {
ExprId::from_raw(RawIdx::from(u32::MAX))
}
pub type PatId = Idx<Pat>;
#[derive(Debug, Clone, Eq, PartialEq)]