Skip to content

Remove unsafe unsafe inner function. - #56236

Merged
bors merged 1 commit into
rust-lang:masterfrom
frewsxcv:frewsxcv-unsafe-unsafe
Nov 29, 2018
Merged

Remove unsafe unsafe inner function.#56236
bors merged 1 commit into
rust-lang:masterfrom
frewsxcv:frewsxcv-unsafe-unsafe

Conversation

@frewsxcv

Copy link
Copy Markdown
Contributor

Within this Iterator implementation, a function unsafe_get is
defined which unsafely allows unchecked indexing of any element in a
slice. This should be marked as unsafe, but it is not.

To address this issue, I removed that inner function.

@frewsxcv
frewsxcvforce-pushed the frewsxcv-unsafe-unsafe branch from c9dfaaf to cee6dccCompareNovember 26, 2018 13:52
Within this `Iterator` implementation, a function `unsafe_get` is
defined which unsafely allows _unchecked_ indexing of any element in a
slice. This should be marked as _unsafe_, but it is not.
To address this issue, I removed that inner function.
@frewsxcv
frewsxcvforce-pushed the frewsxcv-unsafe-unsafe branch from cee6dcc to cc46685CompareNovember 26, 2018 14:12
@rust-langrust-lang deleted a comment from rust-highfiveNov 26, 2018
@rust-langrust-lang deleted a comment from rust-highfiveNov 26, 2018
@cramertj

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Nov 26, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit cc46685 has been approved by cramertj

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Nov 26, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Nov 27, 2018
…cramertj
Remove unsafe `unsafe` inner function.
Within this `Iterator` implementation, a function `unsafe_get` is
defined which unsafely allows _unchecked_ indexing of any element in a
slice. This should be marked as _unsafe_, but it is not.
To address this issue, I removed that inner function.
@kennytmkennytm mentioned this pull request Nov 27, 2018
emilyalbini added a commit to emilyalbini/rust that referenced this pull request Nov 28, 2018
…cramertj
Remove unsafe `unsafe` inner function.
Within this `Iterator` implementation, a function `unsafe_get` is
defined which unsafely allows _unchecked_ indexing of any element in a
slice. This should be marked as _unsafe_, but it is not.
To address this issue, I removed that inner function.
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 29, 2018
…cramertj
Remove unsafe `unsafe` inner function.
Within this `Iterator` implementation, a function `unsafe_get` is
defined which unsafely allows _unchecked_ indexing of any element in a
slice. This should be marked as _unsafe_, but it is not.
To address this issue, I removed that inner function.
bors added a commit that referenced this pull request Nov 29, 2018
Rollup of 22 pull requests
Successful merges:
- #55391 (bootstrap: clean up a few clippy findings)
- #56021 (avoid features_untracked)
- #56023 (atomic::Ordering: Get rid of misleading parts of intro)
- #56080 (Reduce the amount of bold text at doc.rlo)
- #56114 (Enclose type in backticks for "non-exhaustive patterns" error)
- #56124 (Fix small doc mistake on std::io::read::read_to_end)
- #56127 (Update an outdated comment in mir building)
- #56148 (Add rustc-guide as a submodule)
- #56149 (Make std::os::unix/linux::fs::MetadataExt::a/m/ctime* documentation clearer)
- #56220 (Suggest appropriate place for lifetime when declared after type arguments)
- #56223 (Make JSON output from -Zprofile-json valid)
- #56236 (Remove unsafe `unsafe` inner function.)
- #56255 (Update outdated code comments in StringReader)
- #56257 (rustc-guide has moved to rust-lang/)
- #56273 (Add missing doc link)
- #56289 (Fix small typo in comment of thread::stack_size)
- #56294 (Fix a typo in the documentation of std::ffi)
- #56312 (Deduplicate literal -> constant lowering)
- #56319 (fix futures creating aliasing mutable and shared ref)
- #56321 (rustdoc: add bottom margin spacing to nested lists)
- #56322 (resolve: Fix false-positives from lint `absolute_paths_not_starting_with_crate`)
- #56330 (Clean up span in non-trailing `..` suggestion)
Failed merges:
r? @ghost
@bors
bors merged commit cc46685 into rust-lang:masterNov 29, 2018
@frewsxcv
frewsxcv deleted the frewsxcv-unsafe-unsafe branch November 29, 2018 15:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@frewsxcv@cramertj@bors