Merge "[alacritty] Remove `alacritty/` since we're not using it." into main
diff --git a/alacritty_terminal/BUILD.gn b/alacritty_terminal/BUILD.gn
index 591834c..f4cc2e7 100644
--- a/alacritty_terminal/BUILD.gn
+++ b/alacritty_terminal/BUILD.gn
@@ -2,6 +2,7 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
+import("//build/rust/config.gni")
 import("//build/rust/rustc_library.gni")
 import("//build/rust/rustc_test.gni")
 
@@ -39,13 +40,21 @@
   "//third_party/alacritty/vte",
 ]
 
+config("allow_elided_named_lifetimes") {
+  rustflags = [ "-Aelided_named_lifetimes" ]
+}
+
 rustc_library("term_model") {
   name = "term_model"
   version = "0.1.0"
   edition = "2018"
 
+
   # TODO(fxbug.dev/69442) remove this allowance
-  configs += [ "//build/config/rust:allow_legacy_derive_helpers" ]
+  configs += [
+    ":allow_elided_named_lifetimes",
+    "//build/config/rust:allow_legacy_derive_helpers",
+  ]
 
   deps = term_deps
   sources = term_sources
@@ -57,9 +66,12 @@
   edition = "2018"
 
   # TODO(fxbug.dev/69442) remove this allowance
-  configs += [ "//build/config/rust:allow_legacy_derive_helpers" ]
+  configs += [
+    ":allow_elided_named_lifetimes",
+    "//build/config/rust:allow_legacy_derive_helpers",
+  ]
 
-  # TODO(fxbug.dev/91772): Fix the leaks and remove this.
+  # TODO(fxbug.dev/42173372): Fix the leaks and remove this.
   deps =
       term_deps + [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
   sources = term_sources