gccrs
gccrs copied to clipboard
GCC Front-End for Rust
This issue tracks: - [ ] #1006 - [ ] #1178 - [ ] #1272 - [ ] #1073 - [ ] #1006
`IdentifierExpr`s are our hack, and it would be good to remove eventually in favor of just using Path expressions. https://github.com/Rust-GCC/gccrs/blob/eca2ac2c23e0c8b438fd696d4f85e35c9210d8dd/gcc/rust/hir/tree/rust-hir.h#L370-L374 https://github.com/Rust-GCC/gccrs/blob/eca2ac2c23e0c8b438fd696d4f85e35c9210d8dd/gcc/rust/parse/rust-parse-impl.h#L12525-L12533 According to [the reference](https://doc.rust-lang.org/reference/expressions/path-expr.html), references to local variables etc....
`transmute` has two restrictions I'm not sure you have added here: 1. Input and output size must be identical. 2. Input and output size must be statically known before monomorphization...
I tried this code: ```rust pub(crate) struct Foo; ``` I expected to see this happen: Compiles Instead, this happened: ``` rust1: error: cannot use non-module path as privacy restrictor Compiler...
I tried this code: ```rust fn to_le(this: u32) -> u32 { #[cfg(target_endian = "little")] { this } #[cfg(not(target_endian = "little"))] { this.swap_bytes() } } ``` I expected to see this...
This is an interesting testcase thanks to @bjorn3 Related Bugs: - [ ] #1048 - [x] #1125 - [ ] #1126 - [ ] #1127 - [x] #1237 - [...
### Code ```rust // http://phpsadness.com/sad/1 fn main() { ::; //~ ERROR expected identifier, found `;` } ``` Origin: https://github.com/rust-lang/rust/blob/master/src/test/ui/parser/paamayim-nekudotayim.rs ### Meta - 7beea479c5a1e7e415223f3fbd4e16c20c3214ec ### Error output ``` rust1: note: Preparing...
There is a rust project here: https://github.com/BLAKE3-team/BLAKE3/blob/master/reference_impl/reference_impl.rs Which is a nice simple test case of rust which does not require much of the stdlib and no macros or attributes. This...