diff options
author | piegames <git@piegames.de> | 2024-08-18 17:28:37 +0200 |
---|---|---|
committer | piegames <git@piegames.de> | 2024-08-21 12:59:03 +0200 |
commit | 0edfea450b90ab5843c1fb898bd9343c881bc4ad (patch) | |
tree | b3584a640364c07b6189c3b320fdd1de6862bc40 /src/libutil | |
parent | 0a8888d1c7220eddba40895a9c6c63d06edf4614 (diff) |
libexpr: Soft-deprecate ancient let syntax
Change-Id: I6802b26f038578870ea1fa1ed298f0c4b1f29c4a
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/deprecated-features.cc | 9 | ||||
-rw-r--r-- | src/libutil/deprecated-features.hh | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/deprecated-features.cc b/src/libutil/deprecated-features.cc index de4efd93b..4de4c8ec7 100644 --- a/src/libutil/deprecated-features.cc +++ b/src/libutil/deprecated-features.cc @@ -37,6 +37,15 @@ constexpr std::array<DeprecatedFeatureDetails, numDepFeatures> depFeatureDetails )", }, { + .tag = Dep::AncientLet, + .name = "ancient-let", + .description = R"( + Allow the ancient `let { body = …; … }` syntax. + + Use the `let … in` syntax instead. + )", + }, + { .tag = Dep::UrlLiterals, .name = "url-literals", .description = R"( diff --git a/src/libutil/deprecated-features.hh b/src/libutil/deprecated-features.hh index d4d8a57a9..bdff1bcdb 100644 --- a/src/libutil/deprecated-features.hh +++ b/src/libutil/deprecated-features.hh @@ -19,6 +19,7 @@ namespace nix { enum struct DeprecatedFeature { RecSetOverrides, + AncientLet, UrlLiterals, }; |