Skip to content
Snippets Groups Projects
Commit fcf960cc authored by Jacques-Henri Jourdan's avatar Jacques-Henri Jourdan
Browse files

RefMut can be considered as Sync

(Even though Rust stdlib does not consider it as such.)
parent 8753a224
Branches refmut_sync
No related tags found
1 merge request!25RefMut can be considered as Sync
...@@ -123,6 +123,10 @@ Section refmut. ...@@ -123,6 +123,10 @@ Section refmut.
lctx_lft_eq E L α1 α2 eqtype E L ty1 ty2 lctx_lft_eq E L α1 α2 eqtype E L ty1 ty2
eqtype E L (refmut α1 ty1) (refmut α2 ty2). eqtype E L (refmut α1 ty1) (refmut α2 ty2).
Proof. intros. by eapply refmut_proper. Qed. Proof. intros. by eapply refmut_proper. Qed.
Global Instance refmut_sync α ty :
Sync ty Sync (refmut α ty).
Proof. move=>?????/=. do 10 f_equiv. by rewrite sync_change_tid. Qed.
End refmut. End refmut.
Global Hint Resolve refmut_mono' refmut_proper' : lrust_typing. Global Hint Resolve refmut_mono' refmut_proper' : lrust_typing.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment