- 02 4月, 2018 8 次提交
-
-
由 bors 提交于
Stabilize `std::process::id()` Fixes #44971
-
由 Thayne McCombs 提交于
Fixes #44971
-
由 bors 提交于
Update drop.rs
-
由 Anders Pitman 提交于
-
由 bors 提交于
Rollup of 3 pull requests - Successful merges: #49451, #49498, #49549 - Failed merges:
-
由 Mark Simulacrum 提交于
Remove filetime dep from build_helper r? @alexcrichton
-
由 Mark Simulacrum 提交于
Update clippy r? @oli-obk
-
由 Mark Simulacrum 提交于
rustdoc: add an --edition flag to compile docs/doctests with a certain edition To correspond with the 2018 edition, this adds a (currently unstable) `--edition` flag to rustdoc that makes it compile crates and doctests with the given edition. Once this lands, Cargo should be updated to pass this flag when the edition configuration option is given.
-
- 01 4月, 2018 9 次提交
-
-
由 bors 提交于
Fix escaped backslash in windows file not found message When a module is declared, but no matching file exists, rustc gives an error like `help: name the file either foo.rs or foo/mod.rs inside the directory "src/bar"`. However, at on windows, the backslash was double-escaped when naming the directory. It did this because the string was printed in debug mode (`"{:?}"`) to surround it with quotes. However, it should just be printed like any other directory in an error message and surrounded by escaped quotes, rather than relying on the debug print to add quotes (`"\"{}\""`). I also checked the test suite to see if this output is being correctly tested. It's not - it only tests up to the word "directory". Presumably this is so that the test is not dependent on its exact position in the source tree. I don't know a better way to test this, unless the test suite supports regex?
-
由 Mark Simulacrum 提交于
-
由 bors 提交于
Clarify network byte order conversions for integer / IP address conversions. Opened primarily to address https://github.com/rust-lang/rust/issues/48819. Also added a few other conversion docs/examples.
-
由 bors 提交于
proc_macro: Tweak doc comments and negative literals This commit tweaks the tokenization of a doc comment to use `#[doc = "..."]` like `macro_rules!` does (instead of treating it as a `Literal` token). Additionally it fixes treatment of negative literals in the compiler, for exapmle `Literal::i32(-1)`. The current fix is a bit of a hack around the current compiler implementation, providing a fix at the proc-macro layer rather than the libsyntax layer. Closes #48889
-
由 bors 提交于
Only include space in RUSTFLAGS extra flags if not empty When the RUSTFLAGS_STAGE_{1,2} is not set, including a space means the string will always be non-empty and RUSTFLAGS will be always be reset which breaks other ways of setting these such as through config in CARGO_HOME.
-
由 bors 提交于
Rename fs::read_string to read_to_string and stabilize As approved in https://github.com/rust-lang/rust/issues/46588#issuecomment-377530365 Closes #46588.
-
由 Alex Crichton 提交于
This commit tweaks the tokenization of a doc comment to use `#[doc = "..."]` like `macro_rules!` does (instead of treating it as a `Literal` token). Additionally it fixes treatment of negative literals in the compiler, for exapmle `Literal::i32(-1)`. The current fix is a bit of a hack around the current compiler implementation, providing a fix at the proc-macro layer rather than the libsyntax layer.
-
由 bors 提交于
fs_read_write_bytes stabilized in 1.26.0 Fix the stabilization attributes from #49422 because it merged before 1.26 branched to beta. r? @TimNN
-
- 31 3月, 2018 14 次提交
-
-
由 bors 提交于
Make UNIX_EPOCH an associated constant of SystemTime It's not very discoverable as a separate const in the module. r? @alexcrichton
-
由 bors 提交于
Introduce an edge from a const eval to the MIR of all statics it depends on r? @michaelwoerister
-
由 bors 提交于
Move the alloc::allocator module to core::heap This is the `Alloc` trait and its dependencies.
-
由 bors 提交于
Implement some trivial size_hints for various iterators This also implements ExactSizeIterator where applicable. Addresses most of the Iterator traits mentioned in #23708. I intend to do more, but I don't want to make the PR too large.
-
由 Phlosioneer 提交于
-
由 bors 提交于
optimize NLL constraint propagation a little Removes a bone-headed hot spot in NLL constant propagation; we were re-allocating the stack vector and hashmap as we repeated the DFS. This change shares those resources across each call. It also modifies the constraint list to be a linked list; arguably I should revert that, though, as this didn't turn out to be a perf hit and perhaps the old code was clearer? (Still, the new style appeals to me.) r? @pnkfelix
-
由 Petr Hosek 提交于
When the RUSTFLAGS_STAGE_{1,2} is not set, including a space means the string will always be non-empty and RUSTFLAGS will be always be reset which breaks other ways of setting these such as through config in CARGO_HOME.
-
由 bors 提交于
Add primitive intra-links Part of #43466. r? @QuietMisdreavus
-
由 Petr Hosek 提交于
This option was introduced in 72cb109b, but it uses two different spellings (fast-submodule vs fast-submodules) and isn't handled by Rust bootstrap which means that any attempt to set this flag fails.
-
由 bors 提交于
Deprecate signed std::num::NonZeroI* with a call for use cases CC https://github.com/rust-lang/rust/issues/49137#issuecomment-375823481
-
由 Matt Brubeck 提交于
-
由 Matt Brubeck 提交于
-
由 bors 提交于
Revert "Add TryFrom and TryInto to the prelude" This reverts commit 09008cc2. This addition landed in https://github.com/rust-lang/rust/pull/49305 and turned out to break crates that had their own copy of `TryFrom` in order to use it on the Stable channel :( We’ll explore the possibility of the 2018 edition having a different prelude that includes this traits. However per the editions RFC this requires implementing a warning in the 2015 edition for code that *would* break.
-
由 Simon Sapin 提交于
-
- 30 3月, 2018 9 次提交
-
-
由 bors 提交于
rustc: Forbid #[inline(always)] with #[target_feature] Once a target feature is enabled for a function that means that it in general can't be inlined into other functions which don't have that target feature enabled. This can cause both safety and LLVM issues if we were to actually inline it, so `#[inline(always)]` both can't be respected and would be an error if we did so! Today LLVM doesn't inline functions with different `#[target_feature]` annotations, but it turns out that if one is tagged with `#[inline(always)]` it'll override this and cause scary LLVM error to arise! This commit fixes this issue by forbidding these two attributes to be used in conjunction with one another. Closes rust-lang-nursery/stdsimd#404
-
由 Simon Sapin 提交于
This reverts commit 09008cc2.
-
由 Steven Fackler 提交于
-
由 Oliver Schneider 提交于
-
由 Steven Fackler 提交于
It's not very discoverable as a separate const in the module.
-
由 Oliver Schneider 提交于
-
由 bors 提交于
Fix stable hashing of AllocIds r? @michaelwoerister fixes #49081
-
由 Manish Goregaokar 提交于
-