diff options
| author | Alex Burka <aburka@seas.upenn.edu> | 2016-03-03 14:55:24 -0500 |
|---|---|---|
| committer | Alex Burka <aburka@seas.upenn.edu> | 2016-03-18 15:03:54 -0400 |
| commit | ee4b607dfbc5f857eb1c500f2f2ff84062feb926 (patch) | |
| tree | 0aa55c6665d37a3b5c134225a66c76f87d6f67b6 /src/libsyntax_ext | |
| parent | 235d77457d80b549dad3ac36d94f235208a1eafb (diff) | |
| download | rust-ee4b607dfbc5f857eb1c500f2f2ff84062feb926.tar.gz rust-ee4b607dfbc5f857eb1c500f2f2ff84062feb926.zip | |
derive: assume enum repr defaults to isize
It was originally intended to be i32, but it isn't. Fixes #31886.
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/deriving/generic/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/deriving/generic/mod.rs b/src/libsyntax_ext/deriving/generic/mod.rs index ef7f455632c..5d4842803a0 100644 --- a/src/libsyntax_ext/deriving/generic/mod.rs +++ b/src/libsyntax_ext/deriving/generic/mod.rs @@ -758,7 +758,7 @@ impl<'a> TraitDef<'a> { fn find_repr_type_name(diagnostic: &Handler, type_attrs: &[ast::Attribute]) -> &'static str { - let mut repr_type_name = "i32"; + let mut repr_type_name = "isize"; for a in type_attrs { for r in &attr::find_repr_attrs(diagnostic, a) { repr_type_name = match *r { |
