fix annotations getting lost

This commit is contained in:
Jacob Lifshay 2024-10-01 18:31:44 -07:00
parent 6e0b6c000d
commit 2a25dd9d7b
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c

View file

@ -2272,7 +2272,8 @@ pub fn annotate<T: Type>(target: Expr<T>, annotations: impl IntoAnnotations) {
.body
.annotations_map
.entry(decl)
.or_default();
.or_default()
.extend(annotations);
});
}