mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
consider types of const generics
This commit is contained in:
parent
5ac07a89ef
commit
204a1561b2
6 changed files with 86 additions and 56 deletions
|
@ -154,6 +154,10 @@ impl TyBuilder<()> {
|
|||
TyKind::Tuple(0, Substitution::empty(Interner)).intern(Interner)
|
||||
}
|
||||
|
||||
pub fn usize() -> Ty {
|
||||
TyKind::Scalar(chalk_ir::Scalar::Uint(chalk_ir::UintTy::Usize)).intern(Interner)
|
||||
}
|
||||
|
||||
pub fn fn_ptr(sig: CallableSig) -> Ty {
|
||||
TyKind::Function(sig.to_fn_ptr()).intern(Interner)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue