Skip to content

Commit 17a59fb

Browse files
authored
Rollup merge of #70576 - Rustin-Liu:rustin-patch-link-cfg, r=varkor
Update the description of the ticket to point at RFC 1721 Fixes #70538. My first PR to rust. So please let me know if I'm doing something wrong.
2 parents 9b22fdc + d2ad9f4 commit 17a59fb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/librustc_metadata/native_libs.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,13 @@ impl Collector<'tcx> {
162162
}
163163
}
164164
if lib.cfg.is_some() && !self.tcx.features().link_cfg {
165-
feature_err(&self.tcx.sess.parse_sess, sym::link_cfg, span.unwrap(), "is unstable")
166-
.emit();
165+
feature_err(
166+
&self.tcx.sess.parse_sess,
167+
sym::link_cfg,
168+
span.unwrap(),
169+
"kind=\"link_cfg\" is unstable",
170+
)
171+
.emit();
167172
}
168173
if lib.kind == cstore::NativeStaticNobundle && !self.tcx.features().static_nobundle {
169174
feature_err(

src/test/ui/feature-gates/feature-gate-link_cfg.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: is unstable
1+
error[E0658]: kind="link_cfg" is unstable
22
--> $DIR/feature-gate-link_cfg.rs:1:1
33
|
44
LL | #[link(name = "foo", cfg(foo))]

0 commit comments

Comments
 (0)