1
Fork 0

Disallow impl autotrait for trait object

This commit is contained in:
David Tolnay 2023-01-18 22:43:05 -08:00
parent a94b9fd0ac
commit 9e1c600f74
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
6 changed files with 269 additions and 70 deletions

View file

@ -31,8 +31,8 @@ cfg_if! {
pub auto trait Send {}
pub auto trait Sync {}
impl<T: ?Sized> Send for T {}
impl<T: ?Sized> Sync for T {}
impl<T> Send for T {}
impl<T> Sync for T {}
#[macro_export]
macro_rules! rustc_erase_owner {