core: Export f32::ge(), f64::ge(), and float::ge()#3188
Closed
cpeterso wants to merge 1 commit intorust-lang:masterfrom
cpeterso:export-float-ge
Closed
core: Export f32::ge(), f64::ge(), and float::ge()#3188cpeterso wants to merge 1 commit intorust-lang:masterfrom cpeterso:export-float-ge
cpeterso wants to merge 1 commit intorust-lang:masterfrom
cpeterso:export-float-ge
Conversation
Contributor
|
Thanks! Rebased and pushed to incoming. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this pull request
Jan 30, 2021
`manual_filter_map` and `manual_find_map` changelog: Add `manual_filter_map` and replace `find_map` with `manual_find_map` Replaces rust-lang#6453 Fixes rust-lang#3188 Fixes rust-lang#4193 ~Depends on rust-lang#6567 (to fix an internal lint false positive)~ This replaces `filter_map` and `find_map` with `manual_filter_map` and `manual_find_map` respectively. However, `filter_map` is left in place since it is used for a variety of other cases. See discussion in rust-lang#6453.
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this pull request
May 15, 2021
do not add a newline after a missed span if it is the end of a block comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without this fix, the following program fails to compile because the ge() function is not exported from the f32, f64, or float modules:
fn main() {
f32::lt(0f32, 0f32);
f32::le(0f32, 0f32);
f32::eq(0f32, 0f32);
f32::ne(0f32, 0f32);
f32::ge(0f32, 0f32);
f32::gt(0f32, 0f32);
}
test.rs:6:4: 6:11 error: unresolved name: f32::ge
test.rs:6 f32::ge(0f32, 0f32);
^~~~~~~
test.rs:6:4: 6:11 error: unresolved name: f32::ge
test.rs:6 f32::ge(0f32, 0f32);
^~~~~~~
test.rs:13:4: 13:11 error: unresolved name: f64::ge
test.rs:13 f64::ge(0f64, 0f64);
^~~~~~~
test.rs:13:4: 13:11 error: unresolved name: f64::ge
test.rs:13 f64::ge(0f64, 0f64);
^~~~~~~
test.rs:20:4: 20:13 error: unresolved name: float::ge
test.rs:20 float::ge(0f64, 0f64);
^~~~~~~~~
test.rs:20:4: 20:13 error: unresolved name: float::ge
test.rs:20 float::ge(0f64, 0f64);
^~~~~~~~~
error: aborting due to 6 previous errors