From a4b7e7375facb701585b2989ef3490528ec5bc9f Mon Sep 17 00:00:00 2001 From: Raiki Tamura Date: Sun, 30 Jul 2023 19:54:36 +0900 Subject: gccrs: Normalize all identifier tokens gcc/rust/ChangeLog: * lex/rust-lex.cc (assert_source_content): Fix namespace specifier (test_buffer_input_source): Likewise. (test_file_input_source): Likewise. * lex/rust-lex.h: Move InputSource ... * lex/rust-input-source.h: ... to here. (New file) * lex/rust-token.cc (nfc_normalize_token_string): New function * lex/rust-token.h (nfc_normalize_token_string): New function * rust-lang.cc (run_rust_tests): Modify order of selftests. * rust-session-manager.cc (validate_crate_name): Modify interface of Utf8String. * util/rust-unicode.cc (lookup_cc): Modify codepoint_t typedef. (lookup_recomp): Likewise. (recursive_decomp_cano): Likewise. (decomp_cano): Likewise. (sort_cano): Likewise. (compose_hangul): Likewise. (assert_normalize): Likewise. (Utf8String::nfc_normalize): New function. * util/rust-unicode.h: Modify interface of Utf8String. gcc/testsuite/ChangeLog: * rust/compile/unicode_norm1.rs: New test. Signed-off-by: Raiki Tamura --- gcc/rust/rust-lang.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/rust/rust-lang.cc') diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc index f07d18f..44dc3fc 100644 --- a/gcc/rust/rust-lang.cc +++ b/gcc/rust/rust-lang.cc @@ -455,11 +455,11 @@ run_rust_tests () { // Call tests for the rust frontend here rust_input_source_test (); + rust_utf8_normalize_test (); rust_cfg_parser_test (); rust_privacy_ctx_test (); rust_crate_name_validation_test (); rust_simple_path_resolve_test (); - rust_utf8_normalize_test (); } } // namespace selftest -- cgit v1.1