scope-lock-0.2.0 has been yanked.
Scope lock
Examples
use thread;
let mut a = vec!;
let mut x = 0;
let f1 = &|| ;
let f2 = &mut || ;
lock_scope;
// After the scope, we can modify and access our variables again:
a.push;
assert_eq!;