Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Just testing bots #18503

Closed
wants to merge 14 commits into from
Closed

Just testing bots #18503

wants to merge 14 commits into from

Conversation

brson
Copy link
Contributor

@brson brson commented Nov 1, 2014

No description provided.

brson added 14 commits October 14, 2014 13:04
This is the only free function not part of the trait.
'Numeric' is the proper name of the unicode character class,
and this frees up the word 'digit' for ascii use in libcore.

Since I'm going to rename `Char::is_digit_radix` to
`is_digit`, I am not leaving a deprecated method in place,
because that would just cause name clashes, as both
`Char` and `UnicodeChar` are in the prelude.

[breaking-change]
This fits the naming of `to_digit` and `from_digit`. Leave
the old name deprecated.
"bytes" is redundant.

Deprecate the old.
Missing method to pair with len_utf8.
For now we are preferring free functions for primitive ctors,
so they are marked 'unstable' pending final decision. The
methods on `Char` are 'deprecated'.
The `Char` trait itself may go away in favor of primitive inherent
methods. Still some questions about whether the preconditions are
following the final error handling conventions.
Consistent with current design guidelines, though it does result
in a performance hit, particularly for multi-byte cases.

test iter_1bytes   ... bench:       341 ns/iter (+/- 90)
test iter_4bytes   ... bench:       944 ns/iter (+/- 204)
test noiter_1bytes ... bench:       324 ns/iter (+/- 52)
test noiter_4bytes ... bench:       510 ns/iter (+/- 227)

[breaking-change]
Methods on primitmive Copy types generally should take `self`.

[breaking-change]
@rust-highfive
Copy link
Collaborator

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@brson brson closed this Nov 1, 2014
lnicola added a commit to lnicola/rust that referenced this pull request Nov 12, 2024
…olve-indexing

Use completion item indices instead of property matching when searching for the completion item to resolve
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants