Skip to content

Commit ec9c7c3

Browse files
committed
auto merge of #6184 : kud1ing/rust/master, r=sanxiyn
2 parents b698884 + 18c46b8 commit ec9c7c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/etc/unicode.py

+4
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ def emit_decomp_module(f, canon, compat):
235235
rf = open(r, "w")
236236

237237
(canon_decomp, compat_decomp, gencats) = load_unicode_data("UnicodeData.txt")
238+
239+
# Explain that the source code was generated by this script.
240+
rf.write('// The following code was generated by "src/etc/unicode.py"\n\n')
241+
238242
emit_property_module(rf, "general_category", gencats)
239243

240244
#emit_decomp_module(rf, canon_decomp, compat_decomp)

src/libcore/unicode.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#[doc(hidden)]; // FIXME #3538
1212

13+
// The following code was generated by "src/etc/unicode.py"
14+
1315
pub mod general_category {
1416

1517
fn bsearch_range_table(c: char, r: &'static [(char,char)]) -> bool {

0 commit comments

Comments
 (0)