1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-19 15:31:07 +01:00
nix/src
Aspen Smith b67c2f1572 Inline only-used-once closures in ExprConcatStrings::eval
Refactor `ExprConcatStrings::eval` by inlining two only-called-once
closures into the call-site, so that the code is easier to reason about
locally (especially since the variables that were closed over were
mutated all over the place within this function).

Also use curly braces with each branch for consistency in the the
resulting code.

This is a pure refactor, but also arguably causes us to depend less on
the optimizer; now, we don't have to make sure that this closure is
inlined.
2025-11-01 16:35:54 -04:00
..
external-api-docs doc: Improve libexpr-c docs 2025-10-28 17:57:15 +01:00
internal-api-docs meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
json-schema-checks Merge pull request #14399 from obsidiansystems/json-schema-path-info 2025-10-30 17:35:20 +00:00
libcmd Factor out --no-check-sigs 2025-10-16 16:35:09 +02:00
libexpr Inline only-used-once closures in ExprConcatStrings::eval 2025-11-01 16:35:54 -04:00
libexpr-c doc: Improve libexpr-c docs 2025-10-28 17:57:15 +01:00
libexpr-test-support meson: Move asan-options to common 2025-10-11 16:08:35 +03:00
libexpr-tests libexpr: Do not overflow heap buffer when there are too many formal arguments 2025-11-01 12:53:53 +03:00
libfetchers libfetchers: Restore plain git inputs recognition 2025-10-31 22:42:43 +03:00
libfetchers-c meson: Move asan-options to common 2025-10-11 16:08:35 +03:00
libfetchers-tests libfetchers/git-utils: Be more correct about validating refnames 2025-10-15 21:54:09 +03:00
libflake safer interface for ExprLambda's formals 2025-10-31 16:54:59 +01:00
libflake-c meson: Move asan-options to common 2025-10-11 16:08:35 +03:00
libflake-tests libfetchers: Restore plain git inputs recognition 2025-10-31 22:42:43 +03:00
libmain treewide: replace manual MiB calculations with renderSize 2025-10-27 16:04:19 +01:00
libmain-c meson: Move asan-options to common 2025-10-11 16:08:35 +03:00
libstore chore(libstore/package): remove lingering aws-sdk-cpp 2025-11-01 14:42:07 +00:00
libstore-c Merge remote-tracking branch 'upstream/master' into upstream-RossComputerGuy/feat/expose-computefsclosure 2025-10-15 15:40:10 +02:00
libstore-test-support meson: Move asan-options to common 2025-10-11 16:08:35 +03:00
libstore-tests libstore: Improve store-reference back-compat with IPv6 ZoneId literals 2025-11-01 00:36:15 +03:00
libutil Cleanup: Use C++23 "explicit this" for recursive lambdas 2025-10-30 15:56:06 -04:00
libutil-c doc: Improve libexpr-c docs 2025-10-28 17:57:15 +01:00
libutil-test-support Allow for standard nlohmann JSON serializers to take separate XP features 2025-10-16 16:45:22 -04:00
libutil-tests diff-closures: print sizes with dynamic unit 2025-10-27 02:05:03 +01:00
nix safer interface for ExprLambda's formals 2025-10-31 16:54:59 +01:00
perl Convert Realisation JSON logic to standard style 2025-09-22 12:59:37 -04:00
nix-functional-tests Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
nix-manual Build the manual with Meson 2024-10-09 11:58:17 -04:00