Skip to content
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

Remove the unstable Float trait #50933

Merged
merged 1 commit into from
May 24, 2018
Merged

Remove the unstable Float trait #50933

merged 1 commit into from
May 24, 2018

Conversation

SimonSapin
Copy link
Contributor

Following up to #49896 and #50629. Fixes #32110.

@rust-highfive
Copy link
Collaborator

r? @withoutboats

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 21, 2018
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[01:27:55] 
[01:27:55] failures:
[01:27:55] 
[01:27:55] ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10992) stdout ----
[01:27:55] error[E0599]: no method named `recip` found for type `{float}` in the current scope
[01:27:55]  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10993:5
[01:27:55]   |
[01:27:55] 3 | 2.0.recip();
[01:27:55] 
[01:27:55] 
[01:27:55] thread '/checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10992)' panicked at 'Some expected error codes were not found: ["E0689"]', librustdoc/test.rs:330:13
[01:27:55] 
[01:27:55] ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10998) stdout ----
[01:27:55] ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10998) stdout ----
[01:27:55] error[E0599]: no method named `recip` found for type `{float}` in the current scope
[01:27:55]  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:11000:3
[01:27:55]   |
[01:27:55] 4 | x.recip();  // same error as above
[01:27:55]   |   ^^^^^
[01:27:55] 
[01:27:55] thread '/checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10998)' panicked at 'Some expected error codes were not found: ["E0689"]', librustdoc/test.rs:330:13
[01:27:55] 
[01:27:55] failures:
[01:27:55]     /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10992)
[01:27:55]     /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10998)
---
[01:27:55] 
[01:27:55] 
[01:27:55] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:27:55] Build completed unsuccessfully in 0:42:25
[01:27:55] Makefile:58: recipe for target 'check' failed
[01:27:55] make: *** [check] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:12ceaada
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[01:53:37] 
[01:53:37] failures:
[01:53:37] 
[01:53:37] ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10992) stdout ----
[01:53:37] thread '/checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10992)' panicked at 'test compiled while it wasn't supposed to', librustdoc/test.rs:315:17
[01:53:37] 
[01:53:37] ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10998) stdout ----
[01:53:37] ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10998) stdout ----
[01:53:37] thread '/checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10998)' panicked at 'test compiled while it wasn't supposed to', librustdoc/test.rs:315:17
[01:53:37] 
[01:53:37] failures:
[01:53:37]     /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10992)
[01:53:37]     /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0689 (line 10998)
---
[01:53:37] 
[01:53:37] 
[01:53:37] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:53:37] Build completed unsuccessfully in 0:56:07
[01:53:37] make: *** [check] Error 1
[01:53:37] Makefile:58: recipe for target 'check' failed

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:06a72080
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@SimonSapin SimonSapin force-pushed the anchorage branch 2 times, most recently from 5e991f8 to 2208cf1 Compare May 21, 2018 19:20
+ Debug
+ LowerExp
+ Mul<Output=Self>
+ Div<Output=Self>
+ Neg<Output=Self>
where
Self: Float<Bits = <Self as RawFloat>::RawBits>
{
const INFINITY: Self;
const NAN: Self;
const ZERO: Self;

/// Same as `Float::Bits` with extra traits.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since Float is being removed, might be worth updating this doc to be more descriptive

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, fixed.

@@ -56,22 +56,28 @@ impl Unpacked {
/// Should **never ever** be implemented for other types or be used outside the dec2flt module.
/// Inherits from `Float` because there is some overlap, but all the reused methods are trivial.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as before "inherits from Float" is no longer true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve now removed this sentence.

@withoutboats
Copy link
Contributor

I have no context

@bors r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented May 23, 2018

📌 Commit b825477 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 23, 2018
@bors
Copy link
Contributor

bors commented May 23, 2018

⌛ Testing commit b825477 with merge 1977849...

bors added a commit that referenced this pull request May 23, 2018
Remove the unstable Float trait

Following up to #49896 and #50629. Fixes #32110.
@bors
Copy link
Contributor

bors commented May 24, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 1977849 to master...

@bors bors merged commit b825477 into rust-lang:master May 24, 2018
@SimonSapin SimonSapin deleted the anchorage branch May 29, 2018 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: 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.

6 participants