Skip to content

use range asserts when loading bools and enum discriminants - #5044

Closed
thestinger wants to merge 3 commits into
rust-lang:incomingfrom
thestinger:range
Closed

use range asserts when loading bools and enum discriminants#5044
thestinger wants to merge 3 commits into
rust-lang:incomingfrom
thestinger:range

Conversation

@thestinger

Copy link
Copy Markdown
Contributor

Closes#4924

There are some more Load calls that could use this, so it's not completely done yet.

@catamorphism

Copy link
Copy Markdown
Contributor

Is there a way to test this change? I suppose it's mainly for performance?

@thestinger

Copy link
Copy Markdown
ContributorAuthor

@catamorphism: it's pretty easy to sanity check by looking at the IR output and making sure the range is correct, I'm not sure if that could be made into a rustc test

@catamorphism

Copy link
Copy Markdown
Contributor

@thestinger Okay, don't worry about it right now. We don't have a great way to add that kind of test at the moment.

bors added a commit that referenced this pull request Feb 20, 2013
Closes#4924
There are some more `Load` calls that could use this, so it's not completely done yet.
@borsbors closed this Feb 20, 2013
RalfJung added a commit to RalfJung/rust that referenced this pull request May 19, 2026
refactor thread block timeout handling
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
5044: Tweak visibility r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Sign up for freeto 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.

3 participants

@thestinger@catamorphism@bors