about summary refs log tree commit diff
path: root/src/libcore/unicode
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-10-23 02:04:14 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2018-11-10 01:07:32 +0100
commit5b89877dda5b8267f1ec35dfc9bb6ddc4472f006 (patch)
tree0f5237eeb066e1d8d27ed5fbeb7fca0ccb966957 /src/libcore/unicode
parentb4c046b342f01bf2e750e6ac824b94be4b72c8ec (diff)
downloadrust-5b89877dda5b8267f1ec35dfc9bb6ddc4472f006.tar.gz
rust-5b89877dda5b8267f1ec35dfc9bb6ddc4472f006.zip
constify parts of libcore.
Diffstat (limited to 'src/libcore/unicode')
-rw-r--r--src/libcore/unicode/bool_trie.rs2
-rw-r--r--src/libcore/unicode/tables.rs1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/unicode/bool_trie.rs b/src/libcore/unicode/bool_trie.rs
index 0e6437fded5..995795839b7 100644
--- a/src/libcore/unicode/bool_trie.rs
+++ b/src/libcore/unicode/bool_trie.rs
@@ -71,6 +71,6 @@ impl SmallBoolTrie {
     }
 }
 
-fn trie_range_leaf(c: u32, bitmap_chunk: u64) -> bool {
+const fn trie_range_leaf(c: u32, bitmap_chunk: u64) -> bool {
     ((bitmap_chunk >> (c & 63)) & 1) != 0
 }
diff --git a/src/libcore/unicode/tables.rs b/src/libcore/unicode/tables.rs
index 3de855ac943..e525c057400 100644
--- a/src/libcore/unicode/tables.rs
+++ b/src/libcore/unicode/tables.rs
@@ -2598,4 +2598,3 @@ pub mod conversions {
     ];
 
 }
-