Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

libcore: update bytes/str reader to work with regions. #3246

Merged
merged 1 commit into from
Aug 24, 2012

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Aug 22, 2012

This optimizes away a copy, but it gets rid of io::bytes_reader, io::bytes_reader_between, io::with_bytes_reader_between, andio::str_reader`. Slices and the with form supplant those old functions.

@ghost ghost assigned catamorphism Aug 23, 2012
@catamorphism
Copy link
Contributor

@erickt -- If you can rebase this off a current incoming, I'll merge it today. Sorry, I tried merging it myself but git is behaving in a way I find puzzling.

@erickt
Copy link
Contributor Author

erickt commented Aug 24, 2012

@catamorphism: No problem, I rebased the commit onto HEAD.

catamorphism added a commit that referenced this pull request Aug 24, 2012
libcore: update bytes/str reader to work with regions.
@catamorphism catamorphism merged commit feca839 into rust-lang:incoming Aug 24, 2012
@catamorphism
Copy link
Contributor

Merged, thanks!

RalfJung pushed a commit to RalfJung/rust that referenced this pull request Jan 4, 2024
Fix integer overflow ICEs from round_up_to_next_multiple_of

Turns out the standard library _does_ have the function we need. So I swapped us to using the checked version in mmap/munmap where we can return an error, and we're still using the ICEy version in SIMD.

I found one of the ICE cases by running this test: https://github.com/wbcchsyn/rust-mmap-allocator/blob/765bcaab6e3bfd1cb1e6eaac80ac7e821fb5979b/src/mmap_allocator.rs#L195-L210
jaisnan pushed a commit to jaisnan/rust-dev that referenced this pull request Jul 29, 2024
Dependency upgrade resulting from `cargo update`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants