This project is archived. Its data is read-only.

Can't compile

When trying to compile, either on nightly on stable, I get these error in the impl_array_scalar macro in memory/scalar.rs:

error: missing angle brackets in associated item path
  --> accel/accel/src/memory/scalar.rs:39:26
   |
39 |                     Some($le::from_le_bytes(self.to_le_bytes()))
   |                          ^^^^^^^^^^^^^^^^^^ help: try: `<$le>::from_le_bytes`
...
46 | impl_array_scalar!(u8, u8, CU_AD_FORMAT_UNSIGNED_INT8);
   | ------------------------------------------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `u8`
  --> accel/accel/src/memory/scalar.rs:38:49
   |
38 |                     assert_eq!(Self::size_of(), $le::size_of());
   |                                                 ^^^ no rules expected this token in macro call
...
46 | impl_array_scalar!(u8, u8, CU_AD_FORMAT_UNSIGNED_INT8);
   | ------------------------------------------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

Same for u16 and u32. I had to put angle brackets around the symbol, as the compiler suggested.

As an aside, why isn't this on GitHub? I think that would be much more convenient.

Assignee Loading
Time tracking Loading