about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-01-29Fix testsJohn Kåre Alsaker-10/+3
2019-01-29Only store the result of mir_borrowck for closuresJohn Kåre Alsaker-28/+31
2019-01-29Skip some test passesJohn Kåre Alsaker-8/+12
2019-01-29Use ensure for borrowckJohn Kåre Alsaker-1/+1
2019-01-29Add some time statementsJohn Kåre Alsaker-3/+6
2019-01-29Use an ItemLikeVisitor for CheckTypeWellFormedVisitorJohn Kåre Alsaker-16/+9
2019-01-29Make impl_wf_check incrementalJohn Kåre Alsaker-1/+32
2019-01-29Optimize match checkingJohn Kåre Alsaker-15/+3
2019-01-29Add an ensure() method to TyCtxt used to ensure queries are runJohn Kåre Alsaker-34/+38
2019-01-29Implement a slightly racy `sync::Weak::weak_count`Jonas Schievink-5/+70
2019-01-29Implement Weak::{strong_count, weak_count}Jonas Schievink-0/+80
2019-01-29Use correct CI test image for WASM and NVPTXDenys Zariaiev-18/+0
2019-01-29Provide PTXLinker with fallback to internal `target-cpu`Denys Zariaiev-4/+13
2019-01-29Auto merge of #57808 - gnzlbg:ustdsimd, r=gnzlbgbors-25/+124
Update stdsimd This is the companion PR to https://github.com/rust-lang-nursery/stdsimd/pull/640 r? @alexcrichton
2019-01-29Merge NVPTX and WASM test images into `test-various`Denys Zariaiev-15/+16
2019-01-29Auto merge of #57901 - lqd:issue_57362, r=nikomatsakisbors-216/+427
Add information to higher-ranked lifetimes conflicts error messages Make these errors go through the new "placeholder error" code path, to have self tys displayed and make them hopefully less confusing. Should fix #57362. r? @nikomatsakis — so we can iterate on the specific wording you wanted.
2019-01-29Attempt to debug 259 exit code on AppVeyorAlex Crichton-0/+7
Let's try to dig in a bit more and see where this is coming from, it looks like AppVeyor is also unsure where this is coming from!
2019-01-29Auto merge of #57948 - Zoxc:parallel, r=michaelwoeristerbors-87/+92
Use multiple threads by default. Limits tests to one thread. Do some renaming. r? @michaelwoerister
2019-01-29SGX target: improve panic & exit handlingJethro Beekman-22/+32
2019-01-29Update stdsimdgnzlbg-25/+124
2019-01-29Auto merge of #57862 - hsivonen:buildneon, r=alexcrichtonbors-2/+6
Build the standard library for thumbv7neon-unknown-linux-gnueabihf in CI Using the `dist-armv7-linux` image instead of `dist-various-1` in order to use the ARMv7 toolchain available in `dist-armv7-linux`. Closes #57030.
2019-01-29avoid committing to autoderef in object method probingAriel Ben-Yehuda-7/+81
2019-01-29add tests to a few edge cases in method lookupAriel Ben-Yehuda-0/+290
These aren't fixed by this PR, but were broken in a few older attempts at it. Make sure they don't regress.
2019-01-29add some comments to method::probe::CandidateAriel Ben-Yehuda-0/+31
2019-01-28Adjust PTXLinker LTO logic and CLIDenys Zariaiev-10/+9
2019-01-28Introduce into_raw_non_null on Rc and ArcDale Wijnand-0/+42
2019-01-28Refer to synthetically named lifetimes as "some specific lifetime" rather ↵Rémy Rakic-21/+21
than "the specific lifetime"
2019-01-28Rollup merge of #57950 - QuietMisdreavus:lifetime-err-desc, r=estebankMazdak Farrokhzad-0/+33
Extend E0106, E0261 This is a reopening of https://github.com/rust-lang/rust/pull/57310 with review comments addressed because the original author has since deleted their fork. From the author (@purple-ice): > Added an example that points out hardly obvious mistake one could make when writing impl for a new type. r? @rust-lang/docs
2019-01-28Rollup merge of #57915 - petrochenkov:notto-disu, r=zackmdavisMazdak Farrokhzad-27/+36
Pretty print `$crate` as `crate` or `crate_name` in more cases So, people do parse output of `--pretty=expanded` (sigh), so covering only the legacy proc-macro case (like it was done in https://github.com/rust-lang/rust/pull/57155) is not enough. This PRs resolves all `$crate`s produced by macros, so they are all printed in the parseable form `$crate::foo` -> `crate::foo` or `crate_name::foo`. Fixes https://github.com/rust-lang/rust/issues/38016#issuecomment-455851334 Fixes https://github.com/rust-lang/rust/pull/57155#issuecomment-455807195
2019-01-28Rollup merge of #57904 - euclio:attribute-typos, r=davidtwcoMazdak Farrokhzad-8/+108
add typo suggestion to unknown attribute error Provides a suggestion using Levenshtein distance to suggest built-in attributes and attribute macros. Fixes #49270.
2019-01-28Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavusMazdak Farrokhzad-8/+0
Fix invalid background color As discussed in #57814. r? @QuietMisdreavus
2019-01-28Rollup merge of #57833 - jethrogb:jb/thread-spawn-unwrap, r=alexcrichtonMazdak Farrokhzad-1/+1
Print a slightly clearer message when failing to launch a thread As discussed in #46345, the `io::Error` you get when a thread fails to launch is of type `io::ErrorKind::WouldBlock`. This is super uninformative when an arbitrary `thread::spawn` fails somewhere in your code: ``` thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 11, kind: WouldBlock, message: "operation would block" }', src/libcore/result.rs:997:5 ``` This PR improves the situation a little bit by using `expect` instead of `unwrap`. I don't consider this a complete fix for #46345 though.
2019-01-28Rollup merge of #57674 - dotdash:erase_reg, r=varkorMazdak Farrokhzad-1/+6
Avoid erase_regions_ty queries if there are no regions to erase It's overall faster to perform this extra check than to perform the query, even if the result is already in the query cache.
2019-01-28Rollup merge of #57045 - RalfJung:kill-more-uninit, r=SimonSapinMazdak Farrokhzad-47/+85
Kill remaining uses of mem::uninitialized in libcore, liballoc Kill remaining uses of mem::uninitialized in libcore and liballoc, and enable a lint that will warn when uses are added again in the future. To avoid casting raw pointers around (which is always very dangerous because it is not typechecked at all -- it doesn't even get the "same size" sanity check that `transmute` gets), I also added two new functions to `MaybeUninit`: ```rust /// Get a pointer to the first contained values. pub fn first_ptr(this: &[MaybeUninit<T>]) -> *const T { this as *const [MaybeUninit<T>] as *const T } /// Get a mutable pointer to the first contained values. pub fn first_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T { this as *mut [MaybeUninit<T>] as *mut T } ``` I changed some of the existing code to use array-of-`MaybeUninit` instead of `MaybeUninit`-of-array, successfully removing raw pointer casts there as well.
2019-01-28bootstrap: set toolchain variables on per target basisMateusz Mikuła-9/+4
Using CC, CFLAGS, CXX, CXXFLAGS, AR and RANLIB breaks cross compilation because host is built first and has correct values. The same values are incorrect for the target however.
2019-01-28Fix CIJohn Kåre Alsaker-2/+2
2019-01-28rustdoc: remove blank unstable spansAndy Russell-4/+12
2019-01-28fix gdb debug printingRalf Jung-5/+6
2019-01-28review commentsQuietMisdreavus-13/+13
2019-01-28Use multiple threads by default. Limits tests to one thread. Do some renaming.John Kåre Alsaker-85/+90
2019-01-28Auto merge of #55704 - Nemo157:pinned-generators, r=Zoxcbors-170/+395
Use pinning for generators to make trait safe I'm unsure whether there needs to be any changes to the actual generator transform. Tests are passing so the fact that `Pin<&mut T>` is fundamentally the same as `&mut T` seems to allow it to still work, but maybe there's something subtle here that could go wrong. This is specified in [RFC 2349 § Immovable generators](https://github.com/rust-lang/rfcs/blob/master/text/2349-pin.md#immovable-generators) (although, since that RFC it has become safe to create an immovable generator, and instead it's unsafe to resume any generator; with these changes both are now safe and instead the unsafety is moved to creating a `Pin<&mut [static generator]>` which there are safe APIs for). CC #43122
2019-01-28rename first_mut_ptr -> first_ptr_mutRalf Jung-11/+11
2019-01-28fix typos, improve docsRalf Jung-2/+2
2019-01-28Auto merge of #57899 - davidtwco:issue-56685, r=estebankbors-59/+179
Unused variable suggestions apply on all patterns. Fixes #56685. This PR extends existing suggestions to prefix unused variable bindings in match arms with an underscore so that it applies to all patterns in a match arm. r? @estebank cc @alexcrichton (since you filed the issue)
2019-01-28Use warn() for extra diagnostics; with -D warnings this leads to errorsRalf Jung-5/+5
This is needed to properly respect "deny_warnings = false" in config.toml
2019-01-28add macro for creating uninitialized arrayRalf Jung-30/+25
2019-01-28avoid some raw ptr casts in BTreeMapRalf Jung-7/+10
2019-01-28avoid mem::uninitialized in BTreeMapRalf Jung-10/+18
2019-01-28Build the standard library for thumbv7neon-unknown-linux-gnueabihf in CIHenri Sivonen-2/+6
Closes #57030.
2019-01-28Unused variable suggestions on all patterns.David Wood-59/+179
This commit extends existing suggestions to prefix unused variable bindings in match arms with an underscore so that it applies to all patterns in a match arm.