Closed mcy closed 3 years ago
To test for object safety, we simply need to utter the type dyn Trait; if the trait is not object-safe, its dyn cannot be uttered.
dyn Trait
dyn
This is what the macro we were using was basically already doing, but this lets us drop a dependency.
Signed-off-by: Miguel Young de la Sota mcyoung@google.com
To test for object safety, we simply need to utter the type
dyn Trait
; if the trait is not object-safe, itsdyn
cannot be uttered.This is what the macro we were using was basically already doing, but this lets us drop a dependency.
Signed-off-by: Miguel Young de la Sota mcyoung@google.com