File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
2
3
+ dist : trusty
3
4
sudo : required
4
5
cache :
5
6
directories :
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ pub trait BasicType: AnyType {
67
67
/// let int_basic_type = int.as_basic_type_enum();
68
68
/// assert_eq!(int_basic_type.array_type(32), int.array_type(32));
69
69
/// ```
70
+ // FIXME: We shouldn't be able to create arrays of void types
70
71
fn array_type ( & self , size : u32 ) -> ArrayType {
71
72
Type :: new ( self . as_type_ref ( ) ) . array_type ( size)
72
73
}
@@ -85,6 +86,7 @@ pub trait BasicType: AnyType {
85
86
/// let addr_space = AddressSpace::Generic;
86
87
/// assert_eq!(int_basic_type.ptr_type(addr_space), int.ptr_type(addr_space));
87
88
/// ```
89
+ // FIXME: We shouldn't be able to create pointer of void types
88
90
fn ptr_type ( & self , address_space : AddressSpace ) -> PointerType {
89
91
Type :: new ( self . as_type_ref ( ) ) . ptr_type ( address_space)
90
92
}
You can’t perform that action at this time.
0 commit comments