projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
f082805
d9880c3
)
Auto merge of #5287 - matklad:safer-intern, r=Eh2406
author
bors
<bors@rust-lang.org>
Tue, 3 Apr 2018 22:50:12 +0000
(22:50 +0000)
committer
bors
<bors@rust-lang.org>
Tue, 3 Apr 2018 22:50:12 +0000
(22:50 +0000)
Slightly improve InternedString
* Use `&'static str` instead of (ptr, len) pair to reduce unsafety.
* try make hash calculation O(1) instead of O(n), fail miserably,
document findings.
* Rename `to_inner` -> `as_str()`.
Trivial merge