about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-11 17:52:13 +0200
committerGitHub <noreply@github.com>2020-04-11 17:52:13 +0200
commitb794cb262fc3398a1beab4ee3aaeefe80454aa69 (patch)
treecdfafec8af13e265d61dab17070c3075afa3cdb0 /src/test/ui
parent03a724bd486da1d2691df3d8709c688a0704f1e0 (diff)
parent7f4048c710249daafacdb6004da312e0681954f5 (diff)
Rollup merge of #71020 - pyfisch:unicode-version, r=sfackler
Store UNICODE_VERSION as a tuple

Remove the UnicodeVersion struct containing
major, minor and update fields and replace it with
a 3-tuple containing the version number.
As the value of each field is limited to 255
use u8 to store them.
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/char_unicode.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/char_unicode.rs b/src/test/ui/char_unicode.rs
index 93e5300e36f..8d28f0080dd 100644
--- a/src/test/ui/char_unicode.rs
+++ b/src/test/ui/char_unicode.rs
@@ -7,6 +7,6 @@ pub fn main() {
     check(std::char::UNICODE_VERSION);
 }
 
-pub fn check(unicode_version: std::char::UnicodeVersion) {
-    assert!(unicode_version.major >= 10);
+pub fn check(unicode_version: (u8, u8, u8)) {
+    assert!(unicode_version.0 >= 10);
 }