Skip to content

Commit d4f9196

Browse files
committed
Rename attr
1 parent 364055a commit d4f9196

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl CombineAttributeParser for AllowInternalUnstableParser {
2424

2525
pub(crate) struct AllowUnstableFeatureParser;
2626
impl CombineAttributeParser for AllowUnstableFeatureParser {
27-
const PATH: &'static [rustc_span::Symbol] = &[sym::allow_unstable_feature];
27+
const PATH: &'static [rustc_span::Symbol] = &[sym::unstable_feature_bound];
2828
type Item = (Symbol, Span);
2929
const CONVERT: ConvertFn<Self::Item> = AttributeKind::AllowUnstableFeature;
3030

compiler/rustc_feature/src/builtin_attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
656656
"allow_internal_unstable side-steps feature gating and stability checks",
657657
),
658658
gated!(
659-
allow_unstable_feature, Normal, template!(Word, List: "feat1, feat2, ..."),
659+
unstable_feature_bound, Normal, template!(Word, List: "feat1, feat2, ..."),
660660
DuplicatesOk, EncodeCrossCrate::No, impl_stability,
661661
"allow unstable impl",
662662
),

compiler/rustc_hir_analysis/src/collect/predicates_of.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
318318
predicates.extend(const_evaluatable_predicates_of(tcx, def_id, &predicates));
319319
}
320320

321-
for attr in tcx.get_attrs(def_id, sym::allow_unstable_feature) {
321+
for attr in tcx.get_attrs(def_id, sym::unstable_feature_bound) {
322322
if let Some(list) = attr.meta_item_list() {
323323
for item in list.iter() {
324324
if let Some(feature_name) = item.name() {

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ symbols! {
442442
allow_fail,
443443
allow_internal_unsafe,
444444
allow_internal_unstable,
445-
allow_unstable_feature,
446445
altivec,
447446
alu32,
448447
always,
@@ -2248,6 +2247,7 @@ symbols! {
22482247
unsized_locals,
22492248
unsized_tuple_coercion,
22502249
unstable,
2250+
unstable_feature_bound,
22512251
unstable_location_reason_default: "this crate is being loaded from the sysroot, an \
22522252
unstable location; did you mean to load this crate \
22532253
from crates.io via `Cargo.toml` instead?",

0 commit comments

Comments
 (0)