2 Allows users to configure types which should not be held across `await`
6 There are some types which are perfectly "safe" to be used concurrently
7 from a memory access perspective but will cause bugs at runtime if they
8 are held in such a way.
13 await-holding-invalid-types = [
14 # You can specify a type name
16 # You can (optionally) specify a reason
17 { path = "OtherCustomLockType", reason = "Relies on a thread local" }
22 struct CustomLockType;
23 struct OtherCustomLockType;
25 let _x = CustomLockType;
26 let _y = OtherCustomLockType;
27 baz().await; // Lint violation