Skip to content

port to the new allocator API #14108

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

Merged
merged 2 commits into from
May 11, 2014
Merged

port to the new allocator API #14108

merged 2 commits into from
May 11, 2014

Conversation

thestinger
Copy link
Contributor

No description provided.

@thestinger thestinger changed the title hashmap: port to the new allocator API port to the new allocator API May 11, 2014
@huonw
Copy link
Member

huonw commented May 11, 2014

Needs a rebase. :(

@bors bors closed this May 11, 2014
@bors bors merged commit 420708f into rust-lang:master May 11, 2014
@thestinger thestinger deleted the jemalloc branch May 11, 2014 19:50
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Apr 22, 2025
This PR fixes issues with the `missing_asserts_for_indexing` lint.
- false positive when the first index is the highest(or equal) value in
a list of indexes:
```rust
pub fn foo(slice: &[i32]) -> i32{
	slice[1] * slice[0]
}
```
- false negative when an assert statement if found after the indexing
operation.
```rust
pub fn bar(slice: &[i32]) -> i32 {
	let product = slice[0] * slice[1];
	assert!(slice.len() > 1);
	product
}
```

examples: https://godbolt.org/z/s7Y47vKdE

closes: rust-lang#14079

changelog: [`missing_asserts_for_indexing`]: ignore asserts found after
indexing, and do not require asserts if the first index is highest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-slow Issue: Problems and improvements with respect to performance of generated code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants