]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add unsafety member to modules
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 21 Nov 2023 16:56:10 +0000 (17:56 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:46 +0000 (12:36 +0100)
commit7a4c2f8e43fca4e18e821fc2df24b6949d09be36
tree8562c0bbd714426bac21d22a0df4a0f016c6d77c
parentb71668068b1d7bf912fc345252bbc5f9ed6d3927
gccrs: Add unsafety member to modules

The rust syntax allows unsafe module even if those are rejected at a
later stage.

gcc/rust/ChangeLog:

* ast/rust-item.h: Add safety status to Modules in the AST.
* parse/rust-parse-impl.h (Parser::parse_module): Adapt constructors.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-item.h
gcc/rust/parse/rust-parse-impl.h