Skip to content

Commit f39085b

Browse files
committed
Add derive_from unstable feature
1 parent 3507a74 commit f39085b

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

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,7 @@ symbols! {
846846
derive_const,
847847
derive_const_issue: "118304",
848848
derive_default_enum,
849+
derive_from,
849850
derive_smart_pointer,
850851
destruct,
851852
destructuring_assignment,

0 commit comments

Comments
 (0)