mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
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.
This commit is contained in:
commit
17a59fb29c
@ -162,8 +162,13 @@ impl Collector<'tcx> {
|
||||
}
|
||||
}
|
||||
if lib.cfg.is_some() && !self.tcx.features().link_cfg {
|
||||
feature_err(&self.tcx.sess.parse_sess, sym::link_cfg, span.unwrap(), "is unstable")
|
||||
.emit();
|
||||
feature_err(
|
||||
&self.tcx.sess.parse_sess,
|
||||
sym::link_cfg,
|
||||
span.unwrap(),
|
||||
"kind=\"link_cfg\" is unstable",
|
||||
)
|
||||
.emit();
|
||||
}
|
||||
if lib.kind == cstore::NativeStaticNobundle && !self.tcx.features().static_nobundle {
|
||||
feature_err(
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0658]: is unstable
|
||||
error[E0658]: kind="link_cfg" is unstable
|
||||
--> $DIR/feature-gate-link_cfg.rs:1:1
|
||||
|
|
||||
LL | #[link(name = "foo", cfg(foo))]
|
||||
|
Loading…
Reference in New Issue
Block a user