]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Allow enabling lang_items and no_core features
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 9 Dec 2023 06:22:02 +0000 (01:22 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:49 +0000 (12:36 +0100)
commitbdbc24c36cad3dc26324c4d5ea38f8bd0f02c9a8
treee146c2d382a684f6eaac96273f52a1ffe656dd97
parentd7b2d6704f3350917b16f454163927e4c823802b
gccrs: Allow enabling lang_items and no_core features

gcc/rust/ChangeLog:

* checks/errors/rust-feature.cc
(Feature::name_hash_map):
Add entries for Name::LANG_ITEMS and Name::NO_CORE.
* checks/errors/rust-feature.h
(Feature::Name::LANG_ITEMS): New.
(Feature::Name::NO_CORE): New.

gcc/testsuite/ChangeLog:

* rust/compile/sized-stub.rs: New test.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/checks/errors/rust-feature.cc
gcc/rust/checks/errors/rust-feature.h
gcc/testsuite/rust/compile/sized-stub.rs [new file with mode: 0644]