CohenArthur
CohenArthur
I am trying to use `goblin` in a project to check the `e_type` of a binary file. I noticed that there are no `type` methods on the `Header` struct, but...
## Bang macros - [ ] asm #1566 - [ ] assert #1998 - [ ] cfg - [x] column #1004 - [ ] compile_error - [ ] concat_bytes -...
This code should cause errors since `mem::size_of` and `mem::transmute` are private functions used outside of their (sub)module(s). ```rust mod intrinsics { extern "rust-intrinsic" { pub fn wrapping_add(a: T, b: T)...
Handle all const contexts properly: - [x] [Array type length expressions](https://doc.rust-lang.org/reference/types/array.html) - [x] [Array repeat length expressions](https://doc.rust-lang.org/reference/expressions/array-expr.html) - [x] [constants](https://doc.rust-lang.org/reference/items/constant-items.html) - [x] [statics](https://doc.rust-lang.org/reference/items/static-items.html) - [x] [enum discriminants](https://doc.rust-lang.org/reference/items/enumerations.html#custom-discriminant-values-for-fieldless-enumerations) - [ ]...
```rust type A = B; struct B; ``` Fails with the following error: ```rust test.rs:1:10: error: failed to lookup HIR 6 for node 'B' 1 | type A = B;...
```rust fn main() { let arr0: [i32; 5] = [1, 2, 3, 4, 5]; let arr1: [i32; 5] = [1, 2, 3, 4, 5]; let arr2: [i32; 5] = [1,...
I tried this code: ```rust fn foo(a: fn(i32)) {} fn bar(a: fn()) {} fn baz(a: fn(i32) -> i32) {} // no issue ``` I expected to see this happen: No...
- [ ] #1360 - [ ] Type check default expressions - [ ] Report errors when default expressions are used in const functions or other restricted items #1310 -...
Per the documentation on const generics: > The only allowed types of const parameters are u8, u16, u32, u64, u128, usize i8, i16, i32, i64, i128, isize, char and bool....