Skip to content

Commit e7c8af4

Browse files
committed
Remove issue number for link_cfg
1 parent 7281249 commit e7c8af4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler/rustc_feature/src/active.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ declare_features! (
160160
(active, intrinsics, "1.0.0", None, None),
161161
/// Allows using `#[lang = ".."]` attribute for linking items to special compiler logic.
162162
(active, lang_items, "1.0.0", None, None),
163+
/// Allows `#[link(..., cfg(..))]`; perma-unstable per #37406
164+
(active, link_cfg, "1.14.0", None, None),
163165
/// Allows the `multiple_supertrait_upcastable` lint.
164166
(active, multiple_supertrait_upcastable, "CURRENT_RUSTC_VERSION", None, None),
165167
/// Allows using `#[omit_gdb_pretty_printer_section]`.
@@ -438,8 +440,6 @@ declare_features! (
438440
(active, large_assignments, "1.52.0", Some(83518), None),
439441
/// Allows `if/while p && let q = r && ...` chains.
440442
(active, let_chains, "1.37.0", Some(53667), None),
441-
/// Allows `#[link(..., cfg(..))]`.
442-
(active, link_cfg, "1.14.0", Some(37406), None),
443443
/// Allows using `reason` in lint attributes and the `#[expect(lint)]` lint check.
444444
(active, lint_reasons, "1.31.0", Some(54503), None),
445445
/// Give access to additional metadata about declarative macro meta-variables.

tests/ui/feature-gates/feature-gate-link_cfg.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ error[E0658]: link cfg is unstable
44
LL | #[link(name = "foo", cfg(foo))]
55
| ^^^^^^^^
66
|
7-
= note: see issue #37406 <https://github.com/rust-lang/rust/issues/37406> for more information
87
= help: add `#![feature(link_cfg)]` to the crate attributes to enable
98

109
error: aborting due to previous error

0 commit comments

Comments
 (0)