public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1711
@ 2023-01-12 7:44 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-01-12 7:44 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:68b0212c81a9c8187976eb27a932ee4bf65643a1
commit 68b0212c81a9c8187976eb27a932ee4bf65643a1
Merge: fc72441e83f aa7698dca97
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Thu Jan 5 15:17:27 2023 +0000
Merge #1711
1711: unsafe: check use of `target_feature` attribute r=CohenArthur a=snprajwal
The `target_feature` attribute is for conditional compilation and may or may not compile on all platforms. Using it requires an unsafe function or block.
Addresses #1411
Co-authored-by: Prajwal S N <prajwalnadig21@gmail.com>
Diff:
gcc/rust/checks/errors/rust-unsafe-checker.cc | 29 ++++++++++++++++++++++++++-
gcc/rust/checks/errors/rust-unsafe-checker.h | 5 +++++
gcc/rust/util/rust-attributes.cc | 3 +++
gcc/testsuite/rust/compile/unsafe11.rs | 8 ++++++++
4 files changed, 44 insertions(+), 1 deletion(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-12 7:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-12 7:44 [gcc/devel/rust/master] Merge #1711 Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).