diff options
| author | Be Wilson <be.wilson@kdab.com> | 2023-07-03 14:26:05 -0500 |
|---|---|---|
| committer | Be Wilson <be.wilson@kdab.com> | 2023-08-15 15:51:18 -0500 |
| commit | 72e29da3eccd3e4c1fb2c581fa33216db50fcc93 (patch) | |
| tree | 39594b4f75b33e7a7a34dc743664841eaf19fde0 /compiler/rustc_feature/src/active.rs | |
| parent | c57393e4f8b88444fbf0985a81a2d662862f2733 (diff) | |
| download | rust-72e29da3eccd3e4c1fb2c581fa33216db50fcc93.tar.gz rust-72e29da3eccd3e4c1fb2c581fa33216db50fcc93.zip | |
stabilize combining +bundle and +whole-archive link modifiers
Currently, combining +bundle and +whole-archive works only with #![feature(packed_bundled_libs)] This crate feature is independent of the -Zpacked-bundled-libs command line option. This commit stabilizes the #![feature(packed_bundled_libs)] crate feature and implicitly enables it only when the +bundle and +whole-archive link modifiers are combined. This allows rlib crates to use the +whole-archive link modifier with native libraries and have all symbols included in the linked library to be included in downstream staticlib crates that use the rlib as a dependency. Other cases requiring the packed_bundled_libs behavior still require the -Zpacked-bundled-libs command line option, which can be stabilized independently in the future. Per discussion on https://github.com/rust-lang/rust/issues/108081 there is no risk of regression stabilizing the crate feature in this way because the combination of +bundle,+whole-archive link modifiers was previously not allowed.
Diffstat (limited to 'compiler/rustc_feature/src/active.rs')
| -rw-r--r-- | compiler/rustc_feature/src/active.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 953ea1bf523..25b71023b45 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -241,8 +241,6 @@ declare_features! ( (active, linkage, "1.0.0", Some(29603), None), /// Allows declaring with `#![needs_panic_runtime]` that a panic runtime is needed. (internal, needs_panic_runtime, "1.10.0", Some(32837), None), - /// Allows using `+bundled,+whole-archive` native libs. - (active, packed_bundled_libs, "1.69.0", Some(108081), None), /// Allows using the `#![panic_runtime]` attribute. (internal, panic_runtime, "1.10.0", Some(32837), None), /// Allows using `#[rustc_allow_const_fn_unstable]`. |
