diff options
| author | Robin Kruppe <robin.kruppe@gmail.com> | 2018-01-07 22:05:32 +0100 |
|---|---|---|
| committer | Robin Kruppe <robin.kruppe@gmail.com> | 2018-01-07 22:05:32 +0100 |
| commit | 1df384d32d7a33a710acd3f15729b0e4d6f73832 (patch) | |
| tree | df3cfde720b715af146faf7c1698bfea43e48339 /src/libsyntax | |
| parent | 6828cf90146c7fefc4ba4f16dffe75f763f2d910 (diff) | |
| download | rust-1df384d32d7a33a710acd3f15729b0e4d6f73832.tar.gz rust-1df384d32d7a33a710acd3f15729b0e4d6f73832.zip | |
Rename ReprExtern to ReprC, and similarily rename a few other fields and locals that mentioned "extern repr"
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 0b868b514fe..4291f811f3f 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -1008,8 +1008,7 @@ pub fn find_repr_attrs(diagnostic: &Handler, attr: &Attribute) -> Vec<ReprAttr> if let Some(mi) = item.word() { let word = &*mi.name().as_str(); let hint = match word { - // Can't use "extern" because it's not a lexical identifier. - "C" => Some(ReprExtern), + "C" => Some(ReprC), "packed" => Some(ReprPacked), "simd" => Some(ReprSimd), _ => match int_type_of_word(word) { @@ -1080,7 +1079,7 @@ fn int_type_of_word(s: &str) -> Option<IntType> { #[derive(PartialEq, Debug, RustcEncodable, RustcDecodable, Copy, Clone)] pub enum ReprAttr { ReprInt(IntType), - ReprExtern, + ReprC, ReprPacked, ReprSimd, ReprAlign(u32), |
