Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upMore refactoring to obey platform abstraction lint #36948
Conversation
rust-highfive
assigned
alexcrichton
Oct 4, 2016
brson
reviewed
Oct 4, 2016
| rtabort!(concat!("assertion failed: ", stringify!($e))) | ||
| } | ||
| }) | ||
| } |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
A lot of this is just general cleanup... |
This comment has been minimized.
This comment has been minimized.
How dare you! |
alexcrichton
reviewed
Oct 4, 2016
|
|
||
| // Turn warnings into errors, but only after stage0, where it can be useful for | ||
| // code to emit warnings during language transitions | ||
| #![cfg_attr(not(stage0), deny(warnings))] |
This comment has been minimized.
This comment has been minimized.
alexcrichton
Oct 4, 2016
Member
If you're really ambitious, I've been meaning to remove all the cfg_attr here and just leave deny(warnings)
alexcrichton
reviewed
Oct 4, 2016
| @@ -425,46 +403,62 @@ pub use core::u16; | |||
| pub use core::u32; | |||
| #[stable(feature = "rust1", since = "1.0.0")] | |||
| pub use core::u64; | |||
| #[stable(feature = "rust1", since = "1.0.0")] | |||
| pub use alloc::boxed; | |||
This comment has been minimized.
This comment has been minimized.
alexcrichton
Oct 4, 2016
Member
I think the ordering here affects the ordering in rustdoc, right? (just confirming you want to change that too)
This comment has been minimized.
This comment has been minimized.
brson
Oct 4, 2016
Author
Contributor
It does not appear so to me. rustdoc seems to be alphabetizing everything.
alexcrichton
reviewed
Oct 4, 2016
| @@ -184,6 +184,10 @@ macro_rules! assert_approx_eq { | |||
| }) | |||
| } | |||
|
|
|||
| macro_rules! rtabort { | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
brson
Oct 4, 2016
Author
Contributor
I'll see if I can put it there. I don't recall why I moved it, presumably just because it didn't work with my prefered module declaration order in lib.rs.
alexcrichton
reviewed
Oct 4, 2016
| #[doc(hidden)] | ||
| #[cfg(not(target_thread_local))] |
This comment has been minimized.
This comment has been minimized.
alexcrichton
Oct 4, 2016
Member
I think we'll want to always compile in this module. The theory behind this is that we compile the standard library with OS-based TLS (e.g. this module) but then consumers of the standard library can use the "fast TLS". The primary motivation here is OSX 10.6 and 10.7+, where 10.6 has slow TLS only but 10.7 has fast. We could in theory compile a 10.6 standard library but everyone else would have fast TLS.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I kinda liked having everything contained in one nice "sys" directory, but I guess not enough to go against conventions of filesystem hierarchies and module structures. |
brson
force-pushed the
brson:sys
branch
from
bc4c1d4
to
ae10558
Oct 4, 2016
This comment has been minimized.
This comment has been minimized.
|
Updated to leave os-specific TLS key in with documentation for why, move rtabort back to sys_common. |
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
|
bors
added a commit
that referenced
this pull request
Oct 6, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry
|
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
|
|
brson
referenced this pull request
Oct 17, 2016
Closed
Port libstd to "no operating system" target #37133
This comment has been minimized.
This comment has been minimized.
|
ping @brson (for an update) |
brson
added some commits
Sep 30, 2016
brson
added some commits
Oct 1, 2016
brson
force-pushed the
brson:sys
branch
from
ae10558
to
6135cbc
Nov 1, 2016
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Nov 2, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry On Wednesday, November 2, 2016, bors notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Nov 2, 2016
This comment has been minimized.
This comment has been minimized.
bors
merged commit 6135cbc
into
rust-lang:master
Nov 2, 2016
This comment has been minimized.
This comment has been minimized.
|
Sorry to dig up this rather old commit, but did this actually drop the distinction of Windows 8k buffers and Unix 64k buffers and made everything 8k? |
This comment has been minimized.
This comment has been minimized.
sourcejedi
replied
Apr 22, 2018
|
@benaryorg commit 8128817 goes from 64k to 8k, that might be what you're thinking of. I'm not sure where the idea of a different value on Windows comes from, unless that was the behaviour even earlier when libuv was used. |
This comment has been minimized.
This comment has been minimized.
|
The distinction came from Windows not handling the 64k buffers well, hence they choose to set it so something less on Windows. |
brson commentedOct 4, 2016
The most interesting things here are moving
std/sys/commontostd/sys_common, andstd/num/{f32,f64}.rstostd/{f32,f64}.rs, and adding more documentation tostd/lib.rs.r? @alexcrichton