diff options
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins-include.cc')
-rw-r--r-- | gcc/rust/expand/rust-macro-builtins-include.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/rust/expand/rust-macro-builtins-include.cc b/gcc/rust/expand/rust-macro-builtins-include.cc index acfbfbb..49596a84 100644 --- a/gcc/rust/expand/rust-macro-builtins-include.cc +++ b/gcc/rust/expand/rust-macro-builtins-include.cc @@ -16,6 +16,7 @@ // along with GCC; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. +#include "rust-common.h" #include "rust-macro-builtins.h" #include "rust-macro-builtins-helpers.h" #include "optional.h" @@ -77,7 +78,9 @@ MacroBuiltin::include_bytes_handler (location_t invoc_locus, new AST::ArrayExpr (std::move (elems), {}, {}, invoc_locus)); auto borrow = std::unique_ptr<AST::Expr> ( - new AST::BorrowExpr (std::move (array), false, false, {}, invoc_locus)); + new AST::BorrowExpr (std::move (array), Mutability::Imm, + /* raw borrow */ false, + /* double borrow */ false, {}, invoc_locus)); auto node = AST::SingleASTNode (std::move (borrow)); @@ -246,4 +249,4 @@ MacroBuiltin::include_handler (location_t invoc_locus, // string literal. return AST::Fragment (nodes, std::vector<std::unique_ptr<AST::Token>> ()); } -} // namespace Rust
\ No newline at end of file +} // namespace Rust |