diff options
| author | Robin Kruppe <robin.kruppe@gmail.com> | 2018-01-03 17:43:30 +0100 |
|---|---|---|
| committer | Robin Kruppe <robin.kruppe@gmail.com> | 2018-01-16 08:58:32 +0100 |
| commit | 2be697bc215f19b4bf17df6b9b56626ab7b1d994 (patch) | |
| tree | 5eaf535d1e91da488908f4ac4a8ab6763e8535fe /src/libsyntax_ext | |
| parent | 79a521bb9a8ace1a6663578a4c409906adde620d (diff) | |
| download | rust-2be697bc215f19b4bf17df6b9b56626ab7b1d994.tar.gz rust-2be697bc215f19b4bf17df6b9b56626ab7b1d994.zip | |
Implement repr(transparent)
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/deriving/generic/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax_ext/deriving/generic/mod.rs b/src/libsyntax_ext/deriving/generic/mod.rs index 08a7f85d14b..3660d2fe46a 100644 --- a/src/libsyntax_ext/deriving/generic/mod.rs +++ b/src/libsyntax_ext/deriving/generic/mod.rs @@ -830,7 +830,9 @@ fn find_repr_type_name(diagnostic: &Handler, type_attrs: &[ast::Attribute]) -> & for a in type_attrs { for r in &attr::find_repr_attrs(diagnostic, a) { repr_type_name = match *r { - attr::ReprPacked | attr::ReprSimd | attr::ReprAlign(_) => continue, + attr::ReprPacked | attr::ReprSimd | attr::ReprAlign(_) | attr::ReprTransparent => + continue, + attr::ReprC => "i32", attr::ReprInt(attr::SignedInt(ast::IntTy::Isize)) => "isize", |
