summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-05-20Auto merge of #60974 - pietroalbini:stable-next, r=pietroalbini 1.35.0bors-4/+88
[stable] Rust 1.35.0 stable release This also cherry-picks this beta backport: * #60710: Use `delay_span_bug` for error cases when checking `AnonConst` parent r? @ghost cc @Mark-Simulacrum @rust-lang/release
2019-05-20release rust 1.35.0Pietro Albini-1/+1
2019-05-20bless test outputPietro Albini-1/+1
2019-05-20disable the ui/const-generics/cannot-infer-type-for-const-param.rs testPietro Albini-0/+6
The test is failing on 1.35.0 stable but that's not important since the ICE happens only with the feature gate enabled, thus it doesn't affect stable. https://github.com/rust-lang/rust/pull/60710#issuecomment-493662676
2019-05-20Add a test for failed inference of const typesvarkor-0/+26
2019-05-20Add a test for invalid const argumentsvarkor-0/+34
2019-05-20Make const parent errors delay_span_bugsvarkor-3/+21
2019-05-18Auto merge of #60922 - pietroalbini:beta-rollup, r=pietroalbinibors-36/+114
[beta] Rollup backports Rolled up: * [beta] save-analysis: Pull associated type definition using `qpath_def` #60881 * [beta] Update clippy #60918 Cherry-picked: * Instead of ICEing on incorrect pattern, use delay_span_bug #60641 * Use `delay_span_bug` for "Failed to unify obligation" #60644 r? @ghost
2019-05-18bless ui testsPietro Albini-1/+2
2019-05-18Rollup merge of #60918 - Manishearth:betaup, r=pietroalbiniPietro Albini-8/+12
2019-05-18Rollup merge of #60881 - Xanewok:beta-save-assoc-ty-qpath, r=pietroalbiniPietro Albini-21/+5
2019-05-18Instead of ICEing on incorrect pattern, use delay_span_bugEsteban Küber-2/+35
2019-05-18Use `delay_span_bug` for "Failed to unify obligation"Esteban Küber-5/+61
2019-05-17Update beta clippyManish Goregaokar-8/+12
Backports https://github.com/rust-lang/rust-clippy/pull/4101
2019-05-16save-analysis: Simplify match arm for type node defIgor Matuszewski-5/+4
2019-05-16save-analysis: use `qpath_def` for associated typesIgor Matuszewski-19/+4
2019-05-16Auto merge of #60868 - rust-lang:fix-dev-no-comment, r=pietroalbinibors-3/+3
[beta] Comment out dev key in stage0.txt r? @pietroalbini We should maybe have some check for this somewhere; I think this is at least the second time we've forgotten to do this. Maybe just have CI fail on beta branch unless it's commented (and not a release week?)?
2019-05-15Update bootstrap compiler to 1.34.2Mark Rousskov-2/+2
2019-05-15Comment out dev key in stage0.txtMark Rousskov-1/+1
2019-05-14Auto merge of #60838 - pietroalbini:beta-rollup, r=pietroalbinibors-10/+155
[beta] Rollup backports Rolled up: * #60806: [beta] save-analysis: Fix ICE when processing associated constant Cherry-picked: * #60837: Update release notes for 1.35.0 * #60657: Stabilize and re-export core::array in std r? @ghost
2019-05-14Rollup merge of #60806 - Xanewok:beta-save-analysis-assoc-const-ice, ↵Pietro Albini-4/+48
r=pietroalbini
2019-05-14Add link to the 1.34.0 CVEJonas Schievink-1/+2
2019-05-14Updated RELEASES.md for 1.35.0Aaron Power-0/+97
2019-05-14Stabilize and re-export core::arrayYuki OKUSHI-5/+8
2019-05-14Appease tidyIgor Matuszewski-2/+2
2019-05-14save-analysis: Add UI testsuiteIgor Matuszewski-0/+42
2019-05-14save-analysis: Fix ICE when processing associated constantIgor Matuszewski-4/+6
2019-05-13Auto merge of #60786 - alexcrichton:error-type-id-destabilize-beta, ↵bors-1/+12
r=pietroalbini [beta] Destabilize the `Error::type_id` function This commit destabilizes the `Error::type_id` function in the standard library. This does so by effectively reverting #58048, restoring the `#[unstable]` attribute. The security mailing list has recently been notified of a vulnerability relating to the stabilization of this function. First stabilized in Rust 1.34.0, a stable function here allows users to implement a custom return value for this function: struct MyType; impl Error for MyType { fn type_id(&self) -> TypeId { // Enable safe casting to `String` by accident. TypeId::of::<String>() } } This, when combined with the `Error::downcast` family of functions, allows safely casting a type to any other type, clearly a memory safety issue! A formal announcement has been made to the [security mailing list](https://groups.google.com/forum/#!topic/rustlang-security-announcements/aZabeCMUv70) as well as [the blog](https://blog.rust-lang.org/2019/05/13/Security-advisory.html) This commit simply destabilizes the `Error::type_id` which, although breaking for users since Rust 1.34.0, is hoped to have little impact and has been deemed sufficient to mitigate this issue for the stable channel. The long-term fate of the `Error::type_id` API will be discussed at #60784.
2019-05-13add release notes for rust 1.34.2Pietro Albini-0/+8
2019-05-13Destabilize the `Error::type_id` functionAlex Crichton-1/+4
This commit destabilizes the `Error::type_id` function in the standard library. This does so by effectively reverting #58048, restoring the `#[unstable]` attribute. The security mailing list has recently been notified of a vulnerability relating to the stabilization of this function. First stabilized in Rust 1.34.0, a stable function here allows users to implement a custom return value for this function: struct MyType; impl Error for MyType { fn type_id(&self) -> TypeId { // Enable safe casting to `String` by accident. TypeId::of::<String>() } } This, when combined with the `Error::downcast` family of functions, allows safely casting a type to any other type, clearly a memory safety issue! A security announcement will be shortly posted to the security mailing list as well as the Rust Blog, and when those links are available they'll be filled in for this PR as well. This commit simply destabilizes the `Error::type_id` which, although breaking for users since Rust 1.34.0, is hoped to have little impact and has been deemed sufficient to mitigate this issue for the stable channel. The long-term fate of the `Error::type_id` API will be discussed at #60784.
2019-05-12Auto merge of #60716 - cuviper:beta-1.35-no-unwind-abort, r=Mark-Simulacrumbors-3/+11
[beta] Permit unwinding through FFI by default This repeats #59640 for Rust 1.35, as #58794 is not yet resolved. cc @rust-lang/release r? @Mark-Simulacrum
2019-05-10Force #[unwind(aborts)] in test/codegen/c-variadic.rsJosh Stone-0/+6
2019-05-10Revert "Allow a dirty MirBuilt for make_extern and make_method_extern"Josh Stone-2/+2
This reverts commit b4a6f597934f16f89e27058a32a514c9572f148f.
2019-05-10Permit unwinding through FFI by defaultMark Rousskov-1/+3
See #58794 for context.
2019-04-27Auto merge of #60311 - pietroalbini:beta-rollup, r=pietroalbinibors-65/+124
[beta] Rollup backports Cherry-picked: * #59886: musl: do not compress debug section * #59891: Fix the link to sort_by_cached_key * #59911: Revert "compile crates under test w/ -Zemit-stack-sizes" * #59978: rustdoc: Remove default keyword from re-exported trait methods * #59989: Fix links to Atomic* in RELEASES.md * #60186: Temporarily accept [i|u][32|size] suffixes on a tuple index and warn * #60309: Add 1.34.1 release notes Rolled up: * #60273: [beta] bootstrap; remove redundant imports. r? @ghost
2019-04-26Rollup merge of #60273 - Keruspe:beta, r=pietroalbiniPietro Albini-2/+0
2019-04-26update release notes for 1.34.1Pietro Albini-0/+11
2019-04-26review comment: change linked ticketEsteban Küber-1/+1
2019-04-26Temporarily accept [i|u][32|size] suffixes on a tuple index and warnEsteban Küber-3/+31
2019-04-26Fix links to Atomic* in RELEASES.mdDmitry Murzin-9/+9
2019-04-26Fix the link to sort_by_cached_keyJosh Stone-1/+1
It's a primitive slice method, not a standalone function.
2019-04-26rustdoc: Remove default keyword from re-exported trait methodsOliver Middleton-16/+67
2019-04-26Revert PR #59401 to fix issue #59652 (a stable-to-beta regression).Felix S. Klock II-31/+0
This is result of squashing two revert commits: Revert "compile all crates under test w/ -Zemit-stack-sizes" This reverts commit 7d365cf27f4249fc9b61ba8abfc813abe43f1cb7. Revert "bootstrap: build compiler-builtins with -Z emit-stack-sizes" This reverts commit 8b8488ce8fc047282e7159343f30609417f9fa39.
2019-04-26musl: do not compress debug sectionMateusz Mikuła-3/+5
Old linkers are unable to decompress them and fail to link binaries
2019-04-25bump bootstrap; remove redundant imports.Mazdak Farrokhzad-2/+0
2019-04-10Auto merge of #59849 - pietroalbini:beta-next, r=pietroalbinibors-6/+8
[beta] Prepare beta 1.35.0 Also cherry-picked: * #59835: Re-export NonZero signed variant in std cc @Mark-Simulacrum @rust-lang/release r? @ghost
2019-04-10Update ui testLzu Tao-1/+1
2019-04-10Re-export NonZero signed variant in stdLzu Tao-0/+2
2019-04-10this is beta 1.35.0Pietro Albini-5/+5
2019-04-10Auto merge of #59810 - matthiaskrgr:submodule_upd, r=oli-obkbors-41/+27
submodules: update clippy, rls and miri Let's give this another try. r? @Manishearth cc @Xanewok