]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast/src/ast.rs
Rollup merge of #99573 - tbodt:stabilize-backtrace, r=yaahc
[rust.git] / compiler / rustc_ast / src / ast.rs
index 116497109f1ddb0bcd0740db3702f8281fea94ae..870a7c0be33dc111ecf907093d225463c56f9cc5 100644 (file)
@@ -64,7 +64,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
 
 /// A "Lifetime" is an annotation of the scope in which variable
 /// can be used, e.g. `'a` in `&'a i32`.
-#[derive(Clone, Encodable, Decodable, Copy)]
+#[derive(Clone, Encodable, Decodable, Copy, PartialEq, Eq)]
 pub struct Lifetime {
     pub id: NodeId,
     pub ident: Ident,