public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1737
@ 2023-02-07 17:54 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-02-07 17:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:868b0626e50af583e396761d87522e3c58c412bd
commit 868b0626e50af583e396761d87522e3c58c412bd
Merge: 278f7616efc c255fb2ca25
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Fri Feb 3 17:04:01 2023 +0000
Merge #1737
1737: Add support for feature check. r=CohenArthur a=TuringKi
This commit implements a very basic feature checking module.
The results like this:
```
../gcc/testsuite/rust/compile/feature.rs:1:12: error: unknown feature 'AA'
1 | #![feature(AA)] //{ dg-error "unknown feature 'AA'" }
| ^
```
This commit is split from pr https://github.com/Rust-GCC/gccrs/pull/1718.
Signed-off-by: Xiao Ma <mxlol233@outlook.com>
Co-authored-by: mxlol233 <mxlol233@outlook.com>
Diff:
gcc/rust/Make-lang.in | 2 +
gcc/rust/checks/errors/rust-feature-gate.cc | 63 +++++++++
gcc/rust/checks/errors/rust-feature-gate.h | 191 ++++++++++++++++++++++++++++
gcc/rust/checks/errors/rust-feature.cc | 66 ++++++++++
gcc/rust/checks/errors/rust-feature.h | 76 +++++++++++
gcc/rust/rust-session-manager.cc | 4 +
gcc/testsuite/rust/compile/feature.rs | 4 +
7 files changed, 406 insertions(+)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-07 17:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-07 17:54 [gcc/devel/rust/master] Merge #1737 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).