]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
committerPhilip Herron <philip.herron@embecosm.com>
Mon, 11 Dec 2023 10:47:45 +0000 (10:47 +0000)
commit1b6adb1a09ab5236f86d7243d9765bc17af4ab25
treed71e316338896662ff6d3d97e9c5893e2e366791
parent358932954b219b914cd950f067484b89e3e92790
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]