summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-05-13bump rust to 1.34.2Pietro Albini-1/+1
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-04-23bump to rust 1.34.1Pietro Albini-1/+1
2019-04-23update clippyPietro Albini-5/+19
2019-04-10Update ui testLzu Tao-1/+1
2019-04-10Re-export NonZero signed variant in stdLzu Tao-0/+2
2019-04-08stable 1.34.0 releasePietro Albini-1/+1
2019-04-08Fix error index CSS file nameGuillaume Gomez-8/+13
2019-04-08Handle RUSTDOC_RESOURCE_SUFFIX env variable for rustdoc buildGuillaume Gomez-0/+11
2019-04-08Add resource suffix for libtest and proc_macro as wellGuillaume Gomez-2/+2
2019-04-08Prevent cache issues on version updatesGuillaume Gomez-8/+7
2019-04-08Make js tests work even with resource-suffix optionGuillaume Gomez-3/+30
2019-04-08Improve codeGuillaume Gomez-1/+4
2019-04-08Move rustdoc-js testing into compiletestGuillaume Gomez-53/+42
2019-04-08Update to last updatesGuillaume Gomez-3/+3
2019-04-08Move documentation build into bootstrapGuillaume Gomez-46/+58
2019-04-08Rename rustdoc js test suitesGuillaume Gomez-100/+93
2019-04-08Add rustdoc JS non-std testsGuillaume Gomez-1/+420
2019-04-08fix broken download link in the armhf-gnu imagePietro Albini-1/+2
2019-04-07Use `curl` instead of `wget`.kennytm-1/+1
2019-04-07bless the ui testsPietro Albini-3/+3
2019-04-07Only run SIMD tests on x86Oliver Scherer-3/+9
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-07Update CI configuration for building Redox librariesJeremy Soller-10/+4
2019-04-07ci: Update FreeBSD tarball downloadsAlex Crichton-1/+5
These appear to have disappeared from the original server, so I acquired the contents from a different mirror and uploaded them to our S3 bucket
2019-04-07ci: pin android emulator to 28.0.23Pietro Albini-3/+15
2019-04-07Remove stabilized feature gate in doctestSimon Sapin-1/+0
2019-04-07Vastly simplify TryFrom docs.Simon Heath-28/+8
2019-04-07Incorporated review changes.Simon Heath-17/+35
2019-04-07Slowly figuring out how rustdoc actually works.Simon Heath-0/+3
Unfortunately trying to run doctests on my local machine is not really faster than letting Travis do it...
2019-04-07Fix some links in TryFrom docs.Simon Heath-7/+15
2019-04-07Fix a bunch of heckin' trailing whitespaceSimon Heath-17/+17
2019-04-07Add basic docs to integer TryFrom impl macros.Simon Heath-0/+16
They're not as good as `From` 'cause they don't stringify the types and generate examples and so on, but it's a start.
2019-04-07Started expanding docs for `TryFrom` and `TryInto`.Simon Heath-1/+43
The examples are still lacking for now, both for module docs and for methods/impl's.
2019-04-06Don't report deprecation lints in derive expansionsOliver Scherer-2/+38
2019-04-06Remove #[doc(hidden)] from Error::type_idAaron Power-1/+0
2019-04-06Fix fallout from #57667ishitatsuyuki-33/+6
2019-04-03Auto merge of #59640 - cuviper:beta-no-unwind-abort, r=Mark-Simulacrumbors-3/+5
[beta] Permit unwinding through FFI by default Let's kick the can down the road, keeping FFI-unwind-abort out of stable until #58794 is resolved. cc @rust-lang/release
2019-04-02Revert "Allow a dirty MirBuilt for make_extern and make_method_extern"Josh Stone-2/+2
This reverts commit b4a6f597934f16f89e27058a32a514c9572f148f.
2019-04-02Permit unwinding through FFI by defaultMark Rousskov-1/+3
See #58794 for context.
2019-04-01[beta] Update cargoSean Griffin-0/+0
This updates Cargo to the latest rust-1.34.0 branch
2019-03-26Auto merge of #59259 - petrochenkov:bderval, r=estebankbors-296/+403
[beta] Do not accidentally treat multi-segment meta-items as single-segment Partial backport of https://github.com/rust-lang/rust/pull/58899 to beta
2019-03-19bless ui testsPietro Albini-2/+2
2019-03-19bootstrap: Default to a sensible llvm-suffix.Emilio Cobos Álvarez-1/+27
I used version-channel-sha, hopefully that should work. I checked that bootstrap builds, but I cannot check anything else since the llvm build process is started from cargo, and thus calls clang, and thus I hit the same bug I hope to fix with this change. Hopefully fixes #59034.
2019-03-19resolve: Account for new importable entitiesVadim Petrochenkov-11/+49
2019-03-19Rollup merge of #58896 - Mark-Simulacrum:beta-next, r=pietroalbiniPietro Albini-2/+2
2019-03-17Restore APIs used by clippyVadim Petrochenkov-0/+28
2019-03-17Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-296/+375