about summary refs log tree commit diff
path: root/compiler/rustc_feature/src/unstable.rs
diff options
context:
space:
mode:
authorzetanumbers <dariasukhonina@gmail.com>2023-11-29 02:13:58 -0800
committerzetanumbers <dariasukhonina@gmail.com>2023-11-30 08:26:13 -0800
commitf7617c1cd4d1910613ffecdfd8de28889002f6cc (patch)
tree0e59cdec0aa2c45e9378af5cb273d7f37aabfa28 /compiler/rustc_feature/src/unstable.rs
parent1670ff64bf1ccb2ad71068254b53725631c55864 (diff)
downloadrust-f7617c1cd4d1910613ffecdfd8de28889002f6cc.tar.gz
rust-f7617c1cd4d1910613ffecdfd8de28889002f6cc.zip
Enable link-arg link kind inside of #[link] attribute
- Implement link-arg as an attribute
- Apply suggestions from review
  - Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
- Add unstable book entry
Diffstat (limited to 'compiler/rustc_feature/src/unstable.rs')
-rw-r--r--compiler/rustc_feature/src/unstable.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs
index 8182c8779ff..87acb6f27c5 100644
--- a/compiler/rustc_feature/src/unstable.rs
+++ b/compiler/rustc_feature/src/unstable.rs
@@ -500,6 +500,9 @@ declare_features! (
     (incomplete, lazy_type_alias, "1.72.0", Some(112792), None),
     /// Allows `if/while p && let q = r && ...` chains.
     (unstable, let_chains, "1.37.0", Some(53667), None),
+    /// Allows using `#[link(kind = "link-arg", name = "...")]`
+    /// to pass custom arguments to the linker.
+    (unstable, link_arg_attribute, "CURRENT_RUSTC_VERSION", Some(99427), None),
     /// Allows using `reason` in lint attributes and the `#[expect(lint)]` lint check.
     (unstable, lint_reasons, "1.31.0", Some(54503), None),
     /// Give access to additional metadata about declarative macro meta-variables.