Skip to content

Commit 3a5f888

Browse files
committed
Add derive_from unstable feature
1 parent 5771665 commit 3a5f888

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
@@ -472,6 +472,8 @@ declare_features! (
472472
(unstable, deprecated_suggestion, "1.61.0", Some(94785)),
473473
/// Allows deref patterns.
474474
(incomplete, deref_patterns, "1.79.0", Some(87121)),
475+
/// Allows deriving the From trait on single-field structs.
476+
(unstable, derive_from, "CURRENT_RUSTC_VERSION", Some(144889)),
475477
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
476478
(unstable, doc_auto_cfg, "1.58.0", Some(43781)),
477479
/// Allows `#[doc(cfg(...))]`.

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ symbols! {
844844
derive_const,
845845
derive_const_issue: "118304",
846846
derive_default_enum,
847+
derive_from,
847848
derive_smart_pointer,
848849
destruct,
849850
destructuring_assignment,

0 commit comments

Comments
 (0)