-
- Downloads
gccrs: Add feature gate for "rust-intrinsic".
This commit implemented a feature gate to check `intrinsics`.
gcc/rust/ChangeLog:
* checks/errors/rust-feature-gate.cc: Add implementation for
`void FeatureGate::visit (AST::ExternBlock &block)`. Add `valid_feature`
construction process in `FeatureGate::check`.
* checks/errors/rust-feature-gate.h: Add declaration for
`void FeatureGate::visit (AST::ExternBlock &block)`. Add private
variable `valid_feature`.
* checks/errors/rust-feature.h: Change `issue` to `m_issue`.
gcc/testsuite/ChangeLog:
* rust/compile/const-issue1440.rs: Add crate feature: `intrinsics`.
* rust/compile/feature_intrinsics.rs: New file.
* rust/compile/issue-1031.rs: Add crate feature: `intrinsics`.
* rust/compile/issue-1130.rs: Add crate feature: `intrinsics`.
* rust/compile/issue-1131.rs: Add crate feature: `intrinsics`.
* rust/compile/issue-1237.rs: Add crate feature: `intrinsics`.
* rust/compile/issue-1289.rs: Add crate feature: `intrinsics`.
* rust/compile/rust-const-blog-issue.rs: Add crate feature: `intrinsics`.
* rust/compile/torture/intrinsics-3.rs: Add crate feature: `intrinsics`.
* rust/compile/torture/intrinsics-4.rs: Add crate feature: `intrinsics`.
* rust/compile/torture/intrinsics-5.rs: Add crate feature: `intrinsics`.
* rust/compile/torture/intrinsics-6.rs: Add crate feature: `intrinsics`.
* rust/compile/torture/intrinsics-7.rs: Add crate feature: `intrinsics`.
* rust/compile/torture/issue-1024.rs: Add crate feature: `intrinsics`.
* rust/compile/torture/issue-1075.rs: Add crate feature: `intrinsics`.
* rust/compile/torture/issue-1432.rs: Add crate feature: `intrinsics`.
* rust/compile/unsafe10.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/atomic_load.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/atomic_store.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/copy_nonoverlapping1.rs: Add crate feature:
`intrinsics`.
* rust/execute/torture/issue-1120.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/issue-1133.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/issue-1232.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/slice-magic.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/slice-magic2.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/str-layout1.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/transmute1.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/wrapping_op1.rs: Add crate feature: `intrinsics`.
* rust/execute/torture/wrapping_op2.rs: Add crate feature: `intrinsics`.
Signed-off-by:
Xiao Ma <mxlol233@outlook.com>
Showing
- gcc/rust/checks/errors/rust-feature-gate.cc 53 additions, 8 deletionsgcc/rust/checks/errors/rust-feature-gate.cc
- gcc/rust/checks/errors/rust-feature-gate.h 6 additions, 1 deletiongcc/rust/checks/errors/rust-feature-gate.h
- gcc/rust/checks/errors/rust-feature.h 3 additions, 2 deletionsgcc/rust/checks/errors/rust-feature.h
- gcc/testsuite/rust/compile/const-issue1440.rs 1 addition, 0 deletionsgcc/testsuite/rust/compile/const-issue1440.rs
- gcc/testsuite/rust/compile/feature_intrinsics.rs 7 additions, 0 deletionsgcc/testsuite/rust/compile/feature_intrinsics.rs
- gcc/testsuite/rust/compile/issue-1031.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/issue-1031.rs
- gcc/testsuite/rust/compile/issue-1130.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/issue-1130.rs
- gcc/testsuite/rust/compile/issue-1131.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/issue-1131.rs
- gcc/testsuite/rust/compile/issue-1237.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/issue-1237.rs
- gcc/testsuite/rust/compile/issue-1289.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/issue-1289.rs
- gcc/testsuite/rust/compile/rust-const-blog-issue.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/rust-const-blog-issue.rs
- gcc/testsuite/rust/compile/torture/intrinsics-3.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/torture/intrinsics-3.rs
- gcc/testsuite/rust/compile/torture/intrinsics-4.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/torture/intrinsics-4.rs
- gcc/testsuite/rust/compile/torture/intrinsics-5.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/torture/intrinsics-5.rs
- gcc/testsuite/rust/compile/torture/intrinsics-6.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/torture/intrinsics-6.rs
- gcc/testsuite/rust/compile/torture/intrinsics-7.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/torture/intrinsics-7.rs
- gcc/testsuite/rust/compile/torture/issue-1024.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/torture/issue-1024.rs
- gcc/testsuite/rust/compile/torture/issue-1075.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/torture/issue-1075.rs
- gcc/testsuite/rust/compile/torture/issue-1432.rs 1 addition, 0 deletionsgcc/testsuite/rust/compile/torture/issue-1432.rs
- gcc/testsuite/rust/compile/unsafe10.rs 2 additions, 0 deletionsgcc/testsuite/rust/compile/unsafe10.rs
Loading
Please register or sign in to comment