Skip to content

Commit

Permalink
Force travis to build on trusty
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDan64 committed Aug 15, 2019
1 parent 673a3d5 commit dd64c40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: rust

dist: trusty
sudo: required
cache:
directories:
Expand Down
2 changes: 2 additions & 0 deletions src/types/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pub trait BasicType: AnyType {
/// let int_basic_type = int.as_basic_type_enum();
/// assert_eq!(int_basic_type.array_type(32), int.array_type(32));
/// ```
// FIXME: We shouldn't be able to create arrays of void types
fn array_type(&self, size: u32) -> ArrayType {
Type::new(self.as_type_ref()).array_type(size)
}
Expand All @@ -85,6 +86,7 @@ pub trait BasicType: AnyType {
/// let addr_space = AddressSpace::Generic;
/// assert_eq!(int_basic_type.ptr_type(addr_space), int.ptr_type(addr_space));
/// ```
// FIXME: We shouldn't be able to create pointer of void types
fn ptr_type(&self, address_space: AddressSpace) -> PointerType {
Type::new(self.as_type_ref()).ptr_type(address_space)
}
Expand Down

0 comments on commit dd64c40

Please sign in to comment.