summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
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-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-15Update bootstrap compiler to 1.34.2Mark Rousskov-2/+2
2019-05-15Comment out dev key in stage0.txtMark Rousskov-1/+1
2019-05-14Rollup merge of #60806 - Xanewok:beta-save-analysis-assoc-const-ice, ↵Pietro Albini-4/+48
r=pietroalbini
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-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-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-26Rollup merge of #60273 - Keruspe:beta, r=pietroalbiniPietro Albini-2/+0
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-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-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-09submodules: update rls from 90f7ab0 to 49efc06Matthias Krüger-0/+0
Changes: ```` Account for changed format range in a test Adapt format integration test to use new range Add unit tests for Rustfmt::calc_text_edits Prefer saturating_sub Return only partial text edits on formatting request Redo errors in format.rs Rephrase unstable features helper function Work around Rustfmt bug Adjust range-formatting test Update Rustfmt to 1.2 Allow unstable features under "dev" channel Updated clippy_lints in to rev c81e43b92c83bca75337ac26a296b909a6a98ab1 to fix build breaking Fix lint pass API changes Remove a redundant import Bump Clippy Add more helpful compiler messages when the features are improperly specified Silence some flaky tests. Update Cargo. Rename read_analysis to decode_buf Update Clippy Fix pointer to pointer silliness Add serde implementation to complement rustc-serialize ````
2019-04-09submodules: update miri from 0e4f963 to 28f2e5bMatthias Krüger-14/+14
Changes: ```` Update src/fn_call.rs Fix calloc test Add calloc test Tidy up calloc code Update compiletest Fix tagging order Add `calloc` rename MIRI_TARGET -> MIRI_COMPILETEST_TARGET to clarify that this affects compiletest only compiletest can just propagate MIRI_SYSROOT from the outside ````
2019-04-09submodules: update clippy from 92612c9d to 37f5c1ecMatthias Krüger-10/+8
Changes: ```` Remove force-host and explain no-prefer-dynamic Escape a single quote in single_char_pattern hint cargo fmt Re-add tmp feature to compiletest Remove libtest from deps Re-allow clippy::identity_conversion in compiletest Use latest compiletest-rs Revert tests/compile-test.rs to 61aa5c957c219abe1fb2d1b5e51db8b365b4f565 Fix ICE in suspicious_else_formatting use a multispan for MANY_SINGLE_CHAR_NAMES Add missing `// run-pass` annotations to ICE tests Remove clippy_dev as dev-dependency NFC: fix typos rustup https://github.com/rust-lang/rust/pull/59657 Add TransmutingNull Lint * Late Lint pass, catches: * One liner: 0 -> null -> transmute * One liner: std:null() -> transmute * Const (which resolves to null) -> transmute * UI Test case for Lint * Updated test for issue 3849, because now the lint that code generated is in Clippy. * Expanded `const.rs` miri-based Constant Folding code, to cover raw pointers Run rustfmt Set level of identity_conversion FP to warn Rustup to https://github.com/rust-lang/rust/pull/58805 rustup 41316f0449025394fdca6606d3fdb3b8f37a9872 Updated source to match with recent rustc `master` toolchain changes Fix dogfood error of question_mark lint fix Fix question_mark lint+test use `span_lint_and_sugg` in `explicit_counter_loop` Fix some test failures Hacky rustup run cargo fmt rustup https://github.com/rust-lang/rust/pull/59096/ Change explicit_counter_loop's message to add parentheses if necessary Change explicit_counter_loop's message to reflect original variable name cargo fmt Add rustfix tests for mistyped_literal_suffix lint Move some `unreadable_literal` ui tests to correct file Add implementation for the EarlyLintPass trait into the Adding Lints documentation. Add rust-toolchain for clippy_dev ````
2019-04-08Auto merge of #59724 - oli-obk:const_arg_ice, r=eddybbors-4/+65
Function arguments should never get promoted fixes https://github.com/rust-lang/rust/issues/59469
2019-04-07Only run SIMD tests on x86Oliver Scherer-3/+9
2019-04-07Auto merge of #59765 - lzutao:patch-1, r=Centrilbors-1/+3
Add reference to cfg attr r? @QuietMisdreavus
2019-04-07Auto merge of #59766 - xales:revertlibtest, r=Manishearthbors-40/+5602
Revert "Auto merge of #57842 - gnzlbg:extract_libtest, r=gnzlbg" This reverts commit 3eb4890dfe6db0279fdd3cda19f9643873ae3db9, reversing changes made to 7a4df3b53da369110984a2b57419c05a53e33b38. This is, as best I can tell, a clean revert of #57842. It retains some interim changes, like moving `black_box`, and otherwise brings libtest back in as it was before removal.
2019-04-07Auto merge of #59770 - pietroalbini:pin-android-emulator, r=kennytmbors-3/+15
ci: pin android emulator to 28.0.23 Apparently Android Emulator 28.0.25 (the latest one) is broken for us, and `sdkmanager` doesn't have a way to pin a package to a specific version. This PR stops downloading the emulator from `sdkmanager`, downloading it manually instead. Tested this locally and confirmed it works. I'll open an issue on Google's issue tracker later today. Fixes https://github.com/rust-lang/rust/issues/59757 r? @kennytm
2019-04-07ci: pin android emulator to 28.0.23Pietro Albini-3/+15
2019-04-07Auto merge of #59119 - cramertj:cx-back, r=withoutboatsbors-70/+176
Future-proof the Futures API cc https://github.com/rust-lang/rust/issues/59113, @carllerche, @rust-lang/libs r? @withoutboats
2019-04-07Revert "Auto merge of #57842 - gnzlbg:extract_libtest, r=gnzlbg"Jacob Greenfield-40/+5602
This reverts commit 3eb4890dfe6db0279fdd3cda19f9643873ae3db9, reversing changes made to 7a4df3b53da369110984a2b57419c05a53e33b38.
2019-04-07Update commentOliver Scherer-1/+1
2019-04-07Add more regression tests for accidental promotionOliver Scherer-2/+39
2019-04-07Function arguments should never get promotedOliver Scherer-1/+19
2019-04-07Add reference to cfg attrlzutao-1/+3