Skip to content

Commit c2dcb41

Browse files
committed
Add derive_from unstable feature
1 parent 07b7dc9 commit c2dcb41

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler/rustc_feature/src/unstable.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ declare_features! (
471471
(unstable, deprecated_suggestion, "1.61.0", Some(94785)),
472472
/// Allows deref patterns.
473473
(incomplete, deref_patterns, "1.79.0", Some(87121)),
474+
/// Allows deriving the From trait on single-field structs.
475+
(unstable, derive_from, "CURRENT_RUSTC_VERSION", Some(144889)),
474476
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
475477
(unstable, doc_auto_cfg, "1.58.0", Some(43781)),
476478
/// Allows `#[doc(cfg(...))]`.

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ symbols! {
842842
derive_const,
843843
derive_const_issue: "118304",
844844
derive_default_enum,
845+
derive_from,
845846
derive_smart_pointer,
846847
destruct,
847848
destructuring_assignment,

0 commit comments

Comments
 (0)