We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18886e5 commit 30e9f57Copy full SHA for 30e9f57
src/types/traits.rs
@@ -103,6 +103,7 @@ pub trait BasicType<'ctx>: AnyType<'ctx> {
103
/// let int_basic_type = int.as_basic_type_enum();
104
/// assert_eq!(int_basic_type.array_type(32), int.array_type(32));
105
/// ```
106
+ // FIXME: This likely doesn't belong on the trait, since not all basic types can be turned into arrays?
107
fn array_type(&self, size: u32) -> ArrayType<'ctx> {
108
Type::new(self.as_type_ref()).array_type(size)
109
}
0 commit comments