about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-07-13T23·30+0100
committertazjin <mail@tazj.in>2020-07-13T23·51+0000
commit6166c9daf2bf5bc280125d602a7bd372043a58f4 (patch)
treea2e16826988ffb489cc9e4bde3fc60462cb6ec20 /third_party
parentd94690b537f8f83fead41cfb6a2594f045e9569d (diff)
fix(3p/nix/libexpr): Remove default & copy constructors for VectorBindings r/1288
Paired-With: Luke Granger-Brown <git@lukegb.com>
Paired-With: Vincent Ambo <mail@tazj.in>
Paired-With: Perry Lorier <isomer@tvl.fyi>

Change-Id: Ief2e59d461452ce599abc63f6ebcfa07a7062491
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1161
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/src/libexpr/attr-set.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/attr-set.cc b/third_party/nix/src/libexpr/attr-set.cc
index 5ef63a129cdc..31b5bdcef3b1 100644
--- a/third_party/nix/src/libexpr/attr-set.cc
+++ b/third_party/nix/src/libexpr/attr-set.cc
@@ -131,7 +131,6 @@ void BTreeBindings::merge(Bindings& other) {
 
 class VectorBindings : public Bindings {
  public:
-  VectorBindings() {};
   VectorBindings(size_t capacity) : attributes_() {
     attributes_.reserve(capacity);
   };
@@ -145,6 +144,8 @@ class VectorBindings : public Bindings {
   void merge(Bindings& other) override;
   [[deprecated]] virtual std::vector<const Attr*> lexicographicOrder() override;
 
+  VectorBindings(VectorBindings&) = delete;
+
  private:
   AttributeVector attributes_;
 };