Commit 95e08b8
gccrs: fix cfg attribute error with literal predicate
gcc/rust/ChangeLog:
* ast/rust-ast.cc (MetaItemLitExpr::check_cfg_predicate): Make error.
gcc/testsuite/ChangeLog:
* rust/compile/issue-4222.rs: New test.
Signed-off-by: Lucas Ly Ba <lucas.ly-ba@outlook.com>1 parent d4d1fc1 commit 95e08b8
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3834 | 3834 | | |
3835 | 3835 | | |
3836 | 3836 | | |
| 3837 | + | |
| 3838 | + | |
| 3839 | + | |
3837 | 3840 | | |
3838 | 3841 | | |
3839 | 3842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments