- 21 8月, 2020 2 次提交
-
-
由 Josh Stone 提交于
Clean up E0759 explanation r? @Dylan-DPC cc @pickfire
-
由 Josh Stone 提交于
Move to intra-doc links for task.rs and vec.rs Partial fix for #75080 links for [`get`], [`get_mut`] skipped due to #75643 link for [`copy_from_slice`] skipped due to #63351
-
- 20 8月, 2020 22 次提交
-
-
由 Guillaume Gomez 提交于
-
由 bors 提交于
Suppress MIR comments of FnDef and unit types An expansion of #75566. Comments of FnDef MIR constant already contain `ty::Contains` comments.
-
由 Lzu Tao 提交于
-
由 Lzu Tao 提交于
-
由 Lzu Tao 提交于
-
由 bors 提交于
polymorphize: if any param in a predicate is used, then all are used Addresses [review](https://github.com/rust-lang/rust/pull/75518#discussion_r470907646) [comments](https://github.com/rust-lang/rust/pull/75518#discussion_r470907865) [from](https://github.com/rust-lang/rust/pull/75518#discussion_r470908188) @EddyB in #75518 that I didn't get to resolve before bors merged. This PR modifies polymorphization's handling of predicates so that if any generic parameter is used in a predicate then all parameters in that predicate are used. r? @EddyB
-
由 bors 提交于
Update books ## nomicon 2 commits in bfe1ab96d717d1dda50e499b360f2e2f57e1750a..25854752549d44d76fbd7650e17cb4f167a0b8fb 2020-06-05 13:19:42 -0400 to 2020-08-19 16:41:48 -0400 - Follow-up of rust-lang/rust#75152 (rust-lang-nursery/nomicon#235) - Follow-up for rust-lang/rust#74850 (rust-lang-nursery/nomicon#233) ## reference 7 commits in c9b2736a059469043177e1e4ed41a55d7c63ac28..1b6c4b0afab97c0230433466c97167bbbe8445f6 2020-08-03 03:34:03 -0700 to 2020-08-18 17:04:28 -0700 - Some constant/static updates. (rust-lang-nursery/reference#867) - Add casting rules from function items to other types (rust-lang-nursery/reference#878) - Apply joshtriplett's suggestion - Add note clarifying 16-bit support. - Document min pointer width. - Update to `dyn Trait` syntax in a couple places (rust-lang-nursery/reference#875) - mention that `#[track_caller]` on `fn main` is forbidden (rust-lang-nursery/reference#872) ## book 2 commits in 363293c1c5ce9e84ea3935a5e29ce8624801208a..c0a6a61b8205da14ac955425f74258ffd8ee065d 2020-08-03 15:56:30 -0500 to 2020-08-14 14:21:49 -0500 - Correct listing 11-10: Take tests module out of main function. (rust-lang/book#2427) - Update link to russian translation (rust-lang/book#2423) ## rust-by-example 5 commits in 2e9271981adc32613365810f3428334c07095215..80a10e22140e28392b99d24ed02f4c6d8cb770a0 2020-07-27 13:39:16 -0500 to 2020-08-08 09:56:46 -0300 - Add tuple `..` operator example (rust-lang/rust-by-example#1368) - Clarify wording (rust-lang/rust-by-example#1366) - Include arc (rust-lang/rust-by-example#1365) - Modify supertraits sample code (rust-lang/rust-by-example#1361) - Remove mention of `try!` in `Display` example (rust-lang/rust-by-example#1357) ## embedded-book 3 commits in b5256448a2a4c1bec68b93c0847066f92f2ff5a9..0cd2ca116274b915924c3a7e07c1e046b6f19b77 2020-07-24 23:09:29 +0000 to 2020-08-19 10:33:15 +0000 - Ignore unused argument in closure (rust-embedded/book#261) - Fix broken sentence (rust-embedded/book#260) - Add additional command to try when verifying installation. (rust-embedded/book#259)
-
由 bors 提交于
Update cargo 5 commits in ab32ee88dade1b50c77347599e82ca2de3fb8a51..51b66125ba97d2906f461b3f4e0408f206299bb6 2020-08-10 17:44:43 +0000 to 2020-08-19 20:22:52 +0000 - Add chapters on dependency resolution and SemVer compatibility. (rust-lang/cargo#8609) - Renames SourceId::into_url -> SourceId::as_url (rust-lang/cargo#8611) - Fix bug with PathAndArg config values (rust-lang/cargo#8629) - Show full error context on `cargo run` error. (rust-lang/cargo#8627) - Fix typo in SIGQUIT description (rust-lang/cargo#8615)
-
由 bors 提交于
Moved coverage counter injection from BasicBlock to Statement. As discussed on Zulip: https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Implement.20LLVM-compatible.20source-based.20cod.20compiler-team.23278
-
由 Eric Huss 提交于
-
由 Eric Huss 提交于
-
由 bors 提交于
Add a packed/tagged pointer abstraction and utilize it for ParamEnv The intent here is mostly just to add the abstraction; I suspect that there are definitely more use cases for it, and we can explore those over time now that there's a (mostly) safe abstraction that can be used in rustc.
-
由 Mark Rousskov 提交于
-
由 Mark Rousskov 提交于
-
由 bors 提交于
Rollup of 7 pull requests Successful merges: - #75069 (move const param structural match checks to wfcheck) - #75587 (mir building: fix some comments) - #75593 (Adjust installation place for compiler docs) - #75648 (Make OnceCell<T> transparent to dropck) - #75649 (Fix intra-doc links for inherent impls that are both lang items and not the default impl) - #75674 (Move to intra doc links for std::io) - #75696 (Remove `#[cfg(miri)]` from OnceCell tests) Failed merges: r? @ghost
-
由 Tyler Mandry 提交于
Remove `#[cfg(miri)]` from OnceCell tests They were carried over from once_cell crate, but they are not entirely correct (as miri now supports more things), and we don't run miri tests for std, so let's just remove them. Maybe one day we'll run miri in std, but then we can just re-install these attributes.
-
由 Tyler Mandry 提交于
Move to intra doc links for std::io Helps with #75080. @rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc r? @jyn514 I had no problems with those files so I added some small links here and there.
-
由 Tyler Mandry 提交于
Fix intra-doc links for inherent impls that are both lang items and not the default impl I found in https://github.com/rust-lang/rust/pull/75464#issuecomment-675125984 that `str::to_uppercase()` doesn't resolve while `str::trim()` does. The only real difference is that `to_uppercase` is defined in `alloc`, while trim is defined in `core`. It turns out that rustdoc was ignoring `lang_items.str_alloc_impl()` - it saw them in `collect_trait_impls`, but not for intra-doc links. This uses the same `impls` for all parts of rustdoc, so that there can be no more inconsistency. It does have the slight downside that the matches are no longer exhaustive but it will be very clear if a new lang item is missed because it will panic when you try to document it (and if you don't document it, does rustdoc really need to know about it?). ~~This needs a test case (probably just `str::to_uppercase`).~~ Added. This is best reviewed commit-by-commit. r? @GuillaumeGomez
-
由 Tyler Mandry 提交于
Make OnceCell<T> transparent to dropck See the failed build in https://github.com/rust-lang/rust/pull/75555#issuecomment-675016718 for an example where we need this in real life r? @ghost
-
由 Tyler Mandry 提交于
Adjust installation place for compiler docs This avoids conflicts when installing with rustup; rustup does not currently support overlapping installations. r? @matthiaskrgr
-
由 Tyler Mandry 提交于
mir building: fix some comments r? @oli-obk At least I hope these fixes are right, please double-check.^^
-
由 Tyler Mandry 提交于
move const param structural match checks to wfcheck fixes #75047 fixes #74950 We currently check for structural match violations inside of `type_of`. As we need to check the array length when checking if `[NonEq; arr_len]` is structural match, we potentially require the variance of an expression. Computing the variance requires `type_of` for all types though, resulting in a cycle error. r? @varkor @EddyB
-
- 19 8月, 2020 16 次提交
-
-
由 bors 提交于
BTreeMap: check some invariants in unit tests
-
由 Joshua Nelson 提交于
-
由 Alexis Bourget 提交于
-
由 bors 提交于
Doc alias checks: ensure only items appearing in search index can use it Following the discussion in #73721, I added checks to ensure that only items appearing in the search are allowed to have doc alias. r? @ollie27
-
由 Joshua Nelson 提交于
-
由 Joshua Nelson 提交于
-
由 Joshua Nelson 提交于
-
由 Guillaume Gomez 提交于
-
由 Joshua Nelson 提交于
-
由 Joshua Nelson 提交于
-
由 Joshua Nelson 提交于
-
由 Joshua Nelson 提交于
-
由 Joshua Nelson 提交于
-
由 bors 提交于
Improve codegen for `align_offset` In this PR the `align_offset` implementation is changed/improved to produce better code in certain scenarios such as when pointer type is has a stride of 1 or when building for low optimisation levels. While these changes do not achieve the "ideal" codegen referenced in #75579, it gets significantly closer to it. I’m not actually sure if the codegen can actually be much better with this function returning the offset, rather than the aligned pointer. See the descriptions for separate commits for further information.
-
由 Aleksey Kladov 提交于
They were carried over from once_cell crate, but they are not entirely correct (as miri now supports more things), and we don't run miri tests for std, so let's just remove them. Maybe one day we'll run miri in std, but then we can just re-install these attributes.
-
由 bors 提交于
Rollup of 9 pull requests Successful merges: - #75038 (See also X-Link mem::{swap, take, replace}) - #75049 (docs(marker/copy): provide example for `&T` being `Copy`) - #75499 (Fix documentation error) - #75554 (Fix clashing_extern_declarations stack overflow for recursive types.) - #75646 (Move to intra doc links for keyword documentation) - #75652 (Resolve true and false as booleans) - #75658 (Don't emit "is not a logical operator" error outside of associative expressions) - #75665 (Add doc examples coverage) - #75685 (Switch to intra-doc links in /src/sys/unix/ext/*.rs) Failed merges: r? @ghost
-