diff --git a/third_party/nix/src/libexpr/attr-set.hh b/third_party/nix/src/libexpr/attr-set.hh index caddc6beb..5837b5cbd 100644 --- a/third_party/nix/src/libexpr/attr-set.hh +++ b/third_party/nix/src/libexpr/attr-set.hh @@ -2,10 +2,11 @@ #pragma once #include +#include #include "nixexpr.hh" #include "symbol-table.hh" -#include "types.hh" // TODO(tazjin): audit this include +#include "types.hh" namespace nix { // TODO(tazjin): ::expr @@ -29,6 +30,12 @@ inline bool operator==(const Attr& lhs, const Attr& rhs) { return lhs.name == rhs.name; } +// Convenience alias for the backing map, with the garbage-collecting +// allocator explicitly specified. +using AttributeMap = + absl::btree_map, + gc_allocator>>; + class Bindings { public: typedef absl::btree_map::iterator iterator;