about summary refs log tree commit diff
path: root/library/std/src/lib.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-02-18 00:27:30 +0000
committerTrevor Gross <tmgross@umich.edu>2025-05-20 21:16:23 +0000
commit999967a57dce987bbad353d152f03c3ef67d41f2 (patch)
tree272f8ee7b6c1e247ff191397955220c7c13fe930 /library/std/src/lib.rs
parent444a62712a29e14d3b6147b51fd24e623496bf58 (diff)
downloadrust-999967a57dce987bbad353d152f03c3ef67d41f2.tar.gz
rust-999967a57dce987bbad353d152f03c3ef67d41f2.zip
Rename `cfg_match!` to `cfg_select!`
At [1] it was pointed out that `cfg_match!` syntax does not actually
align well with match syntax, which is a possible source of confusion.
The comment points out that usage is instead more similar to ecosystem
`select!` macros. Rename `cfg_match!` to `cfg_select!` to match this.

Tracking issue: https://github.com/rust-lang/rust/issues/115585

[1]: https://github.com/rust-lang/rust/issues/115585#issuecomment-2346307605
Diffstat (limited to 'library/std/src/lib.rs')
-rw-r--r--library/std/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index ef41b47384d..4d984617739 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -700,8 +700,8 @@ mod panicking;
 #[allow(dead_code, unused_attributes, fuzzy_provenance_casts, unsafe_op_in_unsafe_fn)]
 mod backtrace_rs;
 
-#[unstable(feature = "cfg_match", issue = "115585")]
-pub use core::cfg_match;
+#[unstable(feature = "cfg_select", issue = "115585")]
+pub use core::cfg_select;
 #[unstable(
     feature = "concat_bytes",
     issue = "87555",