-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix const eval reading wrong size for array index values #21041
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
base: master
Are you sure you want to change the base?
Conversation
10: Allow type aliases in extern blocks r=jonas-schievink a=jonas-schievink This is for the unstable feature rust-lang/rust#43467, which rustc uses internally Co-authored-by: Jonas Schievink <[email protected]>
11: Allow both const & async modifiers r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
12: Fix .gitignore r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
I don't really look at the results of the benchmarks anyway, so having them in the repo creates a false sense of benchmarkdness. If I get to implementing proper benchmarking, I'd probably stay away from criterion -- we need something much much simpler for this crate.
23: modernize r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
The Travis workflow was deleted in 1150aa9
Move towards upstream `macro_rules!` model
It's unclear if this is worthwhile, and this requires a lot of changes in r-a
16: Add `MacroDef` for "Macros 2.0" r=matklad a=jonas-schievink Co-authored-by: Jonas Schievink <[email protected]>
perf: Reduce memory usage of symbol index
internal: Move `SymbolsDatabase` over to new salsa style
Rename `downcast_[ref|mut]_unchecked` -> `downcast_unchecked_[ref|mut]`
perf: Only populate public items in dependency symbol index
…tmrx lib: Bump editions to 2024 and remove legacy files
Example
---
```rust
fn main() { unsafe {1}.$0 }
```
**Before this PR**
```rust
fn main() { const unsafe {{1}} }
```
**After this PR**
```rust
fn main() { const { unsafe {1} } }
```
Book>Contributing>Testing: Fix typos and distracting word choices
"msg" adds noise to `expect` and crossbeam's `Sender`. "op" adds noise to `map_err`
…x-with-modifier-block Fix .const missing block on with modifier block
Fix not parse never type in inherent impl
Add guard support for replace_if_let_with_match
support rename after adding loop label
Add "msg" and "op" to hidden inlay parameter names
…ture Fix removed feature `doc_auto_cfg` for smol_str lib
ChayimFriedman2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That... shouldn't change? I don't understand why this change is fixing anything. We're reading a usize, the only index type can be usize, why does it matter if we get its size as self.ptr_size() or as op_interval.size? I want to understand better the fix before I approve it.
|
Can you check if the fix is working in a full IDE, and/or if the test is passing without the fix? |
|
Yeah, the added tests are passing indeed without the changes in this PR |
No description provided.