From: Pierre-Emmanuel Patry <[email protected]>
no_std is a builtin attribute required for rust-for-linux but was
missing from the builtin attribute list and instead considered an unknown
attribute macro invocation.
gcc/rust/ChangeLog:
* util/rust-attributes.cc: Add no_std to list of builtin attributes.
Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/13cfa5da574bed2514d06308beafbf420e0ff7bb
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4466
gcc/rust/util/rust-attributes.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc
index d246cc672..93d71a490 100644
--- a/gcc/rust/util/rust-attributes.cc
+++ b/gcc/rust/util/rust-attributes.cc
@@ -98,6 +98,7 @@ static const BuiltinAttrDefinition __definitions[]
// #![feature(rustc_attrs)]
{Attrs::FEATURE, STATIC_ANALYSIS},
{Attrs::NO_CORE, CODE_GENERATION},
+ {Attrs::NO_STD, CODE_GENERATION},
{Attrs::DOC, EXTERNAL},
{Attrs::CRATE_NAME, CODE_GENERATION},
{Attrs::CRATE_TYPE, CODE_GENERATION},
base-commit: 7aa3e7792737ab5ce818fdd240a37c9a80cc919d
--
2.53.0