File tree Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ GRS_OBJS = \
75
75
rust/rust-compile-resolve-path.o \
76
76
rust/rust-macro-expand.o \
77
77
rust/rust-macro-invoc-lexer.o \
78
+ rust/rust-macro-builtins.o \
78
79
rust/rust-hir-full-test.o \
79
80
rust/rust-hir-map.o \
80
81
rust/rust-attributes.o \
Original file line number Diff line number Diff line change
1
+ // Copyright (C) 2020-2022 Free Software Foundation, Inc.
2
+
3
+ // This file is part of GCC.
4
+
5
+ // GCC is free software; you can redistribute it and/or modify it under
6
+ // the terms of the GNU General Public License as published by the Free
7
+ // Software Foundation; either version 3, or (at your option) any later
8
+ // version.
9
+
10
+ // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ // WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
+ // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
+ // for more details.
14
+
15
+ // You should have received a copy of the GNU General Public License
16
+ // along with GCC; see the file COPYING3. If not see
17
+ // <http://www.gnu.org/licenses/>.
18
+
19
+ #include " rust-macro-builtins.h"
20
+ #include " rust-diagnostics.h"
21
+
22
+ namespace Rust {
23
+ AST::ASTFragment
24
+ MacroBuiltin::assert (Location invoc_locus, AST::MacroInvocData &invoc)
25
+ {
26
+ rust_debug (" assert!() called" );
27
+
28
+ return AST::ASTFragment::create_empty ();
29
+ }
30
+ } // namespace Rust
Original file line number Diff line number Diff line change
1
+ // Copyright (C) 2020-2022 Free Software Foundation, Inc.
2
+
3
+ // This file is part of GCC.
4
+
5
+ // GCC is free software; you can redistribute it and/or modify it under
6
+ // the terms of the GNU General Public License as published by the Free
7
+ // Software Foundation; either version 3, or (at your option) any later
8
+ // version.
9
+
10
+ // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ // WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
+ // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
+ // for more details.
14
+
15
+ // You should have received a copy of the GNU General Public License
16
+ // along with GCC; see the file COPYING3. If not see
17
+ // <http://www.gnu.org/licenses/>.
18
+
19
+ #ifndef RUST_MACRO_BUILTINS_H
20
+ #define RUST_MACRO_BUILTINS_H
21
+
22
+ #include " rust-ast.h"
23
+ #include " rust-location.h"
24
+
25
+ namespace Rust {
26
+ class MacroBuiltin
27
+ {
28
+ public:
29
+ static AST::ASTFragment assert (Location invoc_locus,
30
+ AST::MacroInvocData &invoc);
31
+ };
32
+ } // namespace Rust
33
+
34
+ #endif // RUST_MACRO_BUILTINS_H
You can’t perform that action at this time.
0 commit comments