From e16c63de14d74e759643c28fae04af5d7b9ad9e2 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Mon, 8 Jan 2024 09:25:57 +0000 Subject: [PATCH] Add list of extra used unstable features Signed-off-by: Nick Spinale --- hacking/unstable-feature-monitoring/Makefile | 2 +- ...atures-used.sh => enumerate-used-unstable-features.sh} | 4 +++- .../extra-used-unstable-features.rs | 8 ++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) rename hacking/unstable-feature-monitoring/{enumerate-unstable-features-used.sh => enumerate-used-unstable-features.sh} (76%) create mode 100644 hacking/unstable-feature-monitoring/extra-used-unstable-features.rs diff --git a/hacking/unstable-feature-monitoring/Makefile b/hacking/unstable-feature-monitoring/Makefile index e61c037cf..720cddf74 100644 --- a/hacking/unstable-feature-monitoring/Makefile +++ b/hacking/unstable-feature-monitoring/Makefile @@ -13,7 +13,7 @@ clean: .PHONY: used used: - ./enumerate-unstable-features-used.sh + ./enumerate-used-unstable-features.sh .PHONY: wishlist wishlist: diff --git a/hacking/unstable-feature-monitoring/enumerate-unstable-features-used.sh b/hacking/unstable-feature-monitoring/enumerate-used-unstable-features.sh similarity index 76% rename from hacking/unstable-feature-monitoring/enumerate-unstable-features-used.sh rename to hacking/unstable-feature-monitoring/enumerate-used-unstable-features.sh index 118962d77..ecb97e51d 100755 --- a/hacking/unstable-feature-monitoring/enumerate-unstable-features-used.sh +++ b/hacking/unstable-feature-monitoring/enumerate-used-unstable-features.sh @@ -10,7 +10,9 @@ set -eu -o pipefail here=$(realpath $(dirname $0)) top_level_dir=$here/../.. -find $top_level_dir/crates \ +find \ + $top_level_dir/crates \ + $here/extra-used-unstable-features.rs \ -type f -name '*.rs' \ -exec grep '^#!\[feature(' '{}' ';' \ | sort \ diff --git a/hacking/unstable-feature-monitoring/extra-used-unstable-features.rs b/hacking/unstable-feature-monitoring/extra-used-unstable-features.rs new file mode 100644 index 000000000..cb1c28eb1 --- /dev/null +++ b/hacking/unstable-feature-monitoring/extra-used-unstable-features.rs @@ -0,0 +1,8 @@ +// +// Copyright 2024, Colias Group, LLC +// +// SPDX-License-Identifier: BSD-2-Clause +// + +#![feature(riscv_ext_intrinsics)] +#![feature(stdsimd)]