gccrs
gccrs copied to clipboard
GCC Front-End for Rust
Follow up for https://github.com/Rust-GCC/gccrs/pull/1241 This test case ``` fn main() -> i32 { enum E { X(u8), } let v = E::X(4); 0 } ``` fails with the error ```...
`pub(crate)` and `crate` are specifiers for the same visibility, with `crate` being feature gated (https://doc.rust-lang.org/beta/unstable-book/language-features/crate-visibility-modifier.html)f
Ticking all these boxes will already provide some code for reporting more complex privacy violations (such as those related to Traits etc) and some feedback. - [ ] Use of...
It seems that the `:vis` fragment specifier might be optional in some cases. We should look into how rustc handles it and make sure that we add addequate testing to...
As pointed out by @bjorn3, there is a special attribute used in the rust standard library regarding builtin macros. We should look for this attribute on an `AST::MacroRulesDefinition` and if...
I tried this code: ```rust macro_rules! include_str { () => {{}}; } fn main() -> i32 { let _ = include_str!(file!()); 0 } ``` I expected to see this happen:...
We need to add a visitor to allow handling of the various `pub` variations. `pub(restricted)` is interesting as it has a direct effect on surrounding modules: You can specify that...
A special "metavar" exists in macro invocations, which helps reference items from the module in macro invocations. We must implement its handling properly for the Imports and Visibility milestone as...
- [ ] Implement attribute behavior (reference on the MBE page) - [x] #1531 - [x] #1533 - [ ] #1535 - [ ] #1078 also needs to be handled...
- [ ] Implement base attribute - [ ] Decide if we want to handle `#[macro_export(local_inner_macros)]`