fix(3p/nix/libexpr): Actually use AttributeMap type alias

Without this alias, the garbage-collecting allocator won't be used and
allocated attribute set values won't be visible during GC.
This commit is contained in:
Vincent Ambo 2020-05-23 20:19:13 +01:00
parent 39e72c27f1
commit ab1fbd4c6e

View file

@ -38,7 +38,7 @@ using AttributeMap =
class Bindings { class Bindings {
public: public:
typedef absl::btree_map<Symbol, Attr>::iterator iterator; typedef AttributeMap::iterator iterator;
// Allocate a new attribute set that is visible to the garbage // Allocate a new attribute set that is visible to the garbage
// collector. // collector.
@ -79,7 +79,7 @@ class Bindings {
friend class EvalState; friend class EvalState;
private: private:
absl::btree_map<Symbol, Attr> attributes_; AttributeMap attributes_;
}; };
} // namespace nix } // namespace nix