aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-12 09:07:47 +0000
committerAleksey Kladov <[email protected]>2019-11-12 09:07:47 +0000
commitf5e1b0f97c9e46b5186f99d744f4587b2aee397e (patch)
treed3ec974d07c36ce1007dbc8d65c25a811ea444b2 /crates/ra_hir
parentfc055281a5c1c81a6df0e4c10cde71e4799bd329 (diff)
Minor refactoring
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/ty/lower.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/ty/lower.rs b/crates/ra_hir/src/ty/lower.rs
index 1fed5025e..52d24e24d 100644
--- a/crates/ra_hir/src/ty/lower.rs
+++ b/crates/ra_hir/src/ty/lower.rs
@@ -9,7 +9,7 @@ use std::iter;
9use std::sync::Arc; 9use std::sync::Arc;
10 10
11use hir_def::{ 11use hir_def::{
12 builtin_type::BuiltinType, 12 builtin_type::{BuiltinFloat, BuiltinInt, BuiltinType},
13 path::{GenericArg, PathSegment}, 13 path::{GenericArg, PathSegment},
14 type_ref::{TypeBound, TypeRef}, 14 type_ref::{TypeBound, TypeRef},
15}; 15};
@@ -657,10 +657,10 @@ fn type_for_builtin(def: BuiltinType) -> Ty {
657 BuiltinType::Char => TypeCtor::Char, 657 BuiltinType::Char => TypeCtor::Char,
658 BuiltinType::Bool => TypeCtor::Bool, 658 BuiltinType::Bool => TypeCtor::Bool,
659 BuiltinType::Str => TypeCtor::Str, 659 BuiltinType::Str => TypeCtor::Str,
660 BuiltinType::Int { signedness, bitness } => { 660 BuiltinType::Int(BuiltinInt { signedness, bitness }) => {
661 TypeCtor::Int(IntTy { signedness, bitness }.into()) 661 TypeCtor::Int(IntTy { signedness, bitness }.into())
662 } 662 }
663 BuiltinType::Float { bitness } => TypeCtor::Float(FloatTy { bitness }.into()), 663 BuiltinType::Float(BuiltinFloat { bitness }) => TypeCtor::Float(FloatTy { bitness }.into()),
664 }) 664 })
665} 665}
666 666