CohenArthur
CohenArthur
This is a great! It's interesting that they're not part of the [list of builtin macros](https://github.com/Rust-GCC/gccrs/issues/927). They are implemented in the `rustc_lint_defs` crate in `rustc`. I think there might be...
@bjorn3 this was mostly created by looking [here](https://github.com/rust-lang/rust/tree/master/compiler/rustc_builtin_macros/src) and by grepping for `compiler built-in` in the rust repo. I do think it needs some adjustments, so thanks a lot! I'll...
Yeah, `format_args` is a big blocker at the moment for a lot of macros including std ones. I wonder how hard it would be to implement it in our current...
I think `asm` is a very difficult one indeed. It's a whole other syntax than what `gcc` currently supports too, but I think we'll eventually be able to translate one...
Yes, that looks like a good assumption. You can look into the AST lowering pass, which is located in `gcc/rust/hir/rust-ast-lower*`. The code responsible for lowering `AST::If*` nodes is in `rust-ast-lower-expr.h`,...
Now that @abbasfaisal 's const folder has been merged, I've adapted the testcase to parry our shortocomings (such as not handling indexing into `&[u8]` yet or other similar errors within...
> > Mutation of layout constrained field > > What do you mean with a layout constrained field? A field of a packed struct? Or a field of a type...
Thank you! Adding it to the list to make sure I don't miss it
Oh wow, this is really cool. Thank you for checking that out @davidmalcolm. Regarding the missing `unsafe` part, yeah we haven't had the time to implement proper unsafe checks, but...
The corresponding struct in `rustc` simply contains one `Vec` and no optional tail expression: https://github.com/rust-lang/rust/blob/77972d2d0134fb597249b3b64dcf9510a790c34e/compiler/rustc_ast/src/ast.rs#L567-L583