about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-01-30Add suggestions to deprecation lintsOliver Scherer-0/+34
2019-01-30Add MOVBE featureJethro Beekman-1/+2
2019-01-30Allow #[repr(align(x))] on enums (#57996)Niklas Fiekas-14/+45
2019-01-30Suggest to add each of `|` and `()` when unexpected `,` is found in patternKnium_-6/+54
2019-01-29Fix testsJohn Kåre Alsaker-10/+3
2019-01-29Provide PTXLinker with fallback to internal `target-cpu`Denys Zariaiev-3/+6
2019-01-29Merge NVPTX and WASM test images into `test-various`Denys Zariaiev-10/+2
2019-01-29Auto merge of #57901 - lqd:issue_57362, r=nikomatsakisbors-45/+115
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-29avoid committing to autoderef in object method probingAriel Ben-Yehuda-0/+59
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-28Refer to synthetically named lifetimes as "some specific lifetime" rather ↵Rémy Rakic-19/+19
than "the specific lifetime"
2019-01-28Rollup merge of #57915 - petrochenkov:notto-disu, r=zackmdavisMazdak Farrokhzad-0/+25
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-3/+43
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-28rustdoc: remove blank unstable spansAndy Russell-0/+12
2019-01-28Auto merge of #55704 - Nemo157:pinned-generators, r=Zoxcbors-125/+241
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-28Unused variable suggestions on all patterns.David Wood-25/+129
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.
2019-01-28Auto merge of #57910 - Mark-Simulacrum:delete-test, r=petrochenkovbors-4/+2
Delete long-ignored and useless test cc @pnkfelix (https://github.com/rust-lang/rust/issues/13745#issuecomment-457599109) r? @petrochenkov as you re-enabled this test in 21d67c45a3d032b3f0d421e6f882f11ea43d1f9c, https://github.com/rust-lang/rust/pull/55236
2019-01-27add typo suggestion to unknown attribute errorAndy Russell-3/+43
2019-01-28NVPTX: by-default use target cpu "sm_30"Denys Zariaiev-1/+1
2019-01-27Mark non-static generators as always UnpinWim Looman-1/+19
2019-01-27Temporary workaround for travis diagnostic differenceWim Looman-4/+6
2019-01-27Update generator upvar debug infoWim Looman-0/+36
2019-01-27impl Generator for Pin<Box<Generator>>Wim Looman-0/+13
2019-01-27Mark static generators as !UnpinWim Looman-0/+28
2019-01-27Change generator trait to use pinningWim Looman-125/+144
2019-01-27Auto merge of #57765 - Mark-Simulacrum:bootstrap-bump, r=alexcrichtonbors-44/+62
Bump bootstrap compiler to 1.33 beta r? @alexcrichton or @pietroalbini cc @rust-lang/release
2019-01-27Update comment in test which has changed its purposeMark Rousskov-4/+2
2019-01-27Create `nvptx64-nvidia-cuda` target specificationDenys Zariaiev-0/+178
2019-01-27Make 'generate-redirect-pages' option unstableGuillaume Gomez-2/+2
2019-01-27Add generate-old-style-files option to rustdocGuillaume Gomez-23/+39
2019-01-27When mentioning lifetimes, put either the trait ref or the self type closer ↵Rémy Rakic-18/+18
to the lifetimes When mentioning lifetimes, only invert wording between the expected trait and the self type when the self type has the vid. This way, the lifetimes always stay close to the self type or trait ref that actually contains them.
2019-01-27Fix issue-57362-1.rs attributesRémy Rakic-0/+0
2019-01-27identify when implemented for "some specific lifetime"Niko Matsakis-12/+14
2019-01-27break apart testsNiko Matsakis-17/+24
2019-01-27Test new placeholder error messages in previously untested combinationsRemy Rakic-0/+61
2019-01-27Update test expectations for new placeholder error messagesRemy Rakic-44/+44
2019-01-27Update two E308 tests to the new placeholder errorlqd-2/+2
2019-01-27Remove rustdoc old style files generationGuillaume Gomez-29/+23
2019-01-26Replace deprecated ATOMIC_INIT constsMark Rousskov-32/+30
2019-01-26Auto merge of #57918 - Centril:rollup, r=Centrilbors-20/+100
Rollup of 7 pull requests Successful merges: - #57407 (Stabilize extern_crate_self) - #57703 (Make MutexGuard's Debug implementation more useful.) - #57764 (Fix some minor warnings) - #57825 (un-deprecate mem::zeroed) - #57827 (Ignore aarch64 in simd-intrinsic-generic-reduction) - #57908 (resolve: Fix span arithmetics in the import conflict error) - #57913 (Change crate-visibility-modifier issue number in The Unstable Book) Failed merges: r? @ghost
2019-01-26Rollup merge of #57908 - petrochenkov:errepice, r=estebankMazdak Farrokhzad-0/+53
resolve: Fix span arithmetics in the import conflict error https://github.com/rust-lang/rust/pull/56937 rebased and fixed Fixes https://github.com/rust-lang/rust/issues/56411 Fixes https://github.com/rust-lang/rust/issues/57071 Fixes https://github.com/rust-lang/rust/issues/57787 r? @estebank
2019-01-26Rollup merge of #57827 - parched:ignore, r=nikomatsakisMazdak Farrokhzad-0/+1
Ignore aarch64 in simd-intrinsic-generic-reduction This fails on AArch64 see https://github.com/rust-lang/rust/issues/54510 Disabling it for now until it's fixed/implemented in LLVM cc @gnzlbg
2019-01-26Rollup merge of #57407 - mehcode:stabilize-extern-crate-self, r=CentrilMazdak Farrokhzad-20/+46
Stabilize extern_crate_self Fixes #56409
2019-01-26Auto merge of #57852 - davidtwco:issue-57819, r=estebankbors-0/+138
Suggest removing leading left angle brackets. Fixes #57819. This PR adds errors and accompanying suggestions as below: ``` bar::<<<<<T as Foo>::Output>(); ^^^ help: remove extra angle brackets ``` r? @estebank
2019-01-26Ignore LLVM-dependent run-make tests on WindowsMark Rousskov-1/+20
This should solve the PATH issue, and we don't need to test cross-lang LTO working on all OS-es.
2019-01-26Workaround presence of LLVM library in stage0/libMark Rousskov-11/+12
This commit works around the newly-introduced LLVM shared library. This is needed such that llvm-config run from librustc_llvm's build script can correctly locate it's own LLVM, not the one in stage0/lib. The LLVM build system uses the DT_RUNPATH/RUNPATH header within the llvm-config binary, which we want to use, but because Cargo always adds the host compiler's "libdir" (stage0/lib in our case) to the dynamic linker's search path, we weren't properly finding the freshly-built LLVM in llvm/lib. By restoring the environment variable setting the search path to what bootstrap sees, the problem is resolved and librustc_llvm correctly links and finds the appropriate LLVM. Several run-make-fulldeps tests are also updated with similar handling.
2019-01-26Pretty print `$crate` as `crate` or `crate_name` in more casesVadim Petrochenkov-0/+25
2019-01-26Auto merge of #57726 - Zoxc:combine-early-lints, r=estebankbors-0/+28
Combine all builtin early lints This also adds a -Z no-interleave-lints option to allow benchmarking lints. r? @estebank
2019-01-26Auto merge of #55641 - nagisa:optimize-attr, r=pnkfelixbors-0/+139
Implement optimize(size) and optimize(speed) attributes This PR implements both `optimize(size)` and `optimize(speed)` attributes. While the functionality itself works fine now, this PR is not yet complete: the code might be messy in places and, most importantly, the compiletest must be improved with functionality to run tests with custom optimization levels. Otherwise the new attribute cannot be tested properly. Oh, and not all of the RFC is implemented – attribute propagation is not implemented for example. # TODO * [x] Improve compiletest so that tests can be written; * [x] Assign a proper error number (E9999 currently, no idea how to allocate a number properly); * [ ] Perhaps reduce the duplication in LLVM attribute assignment code…
2019-01-26Auto merge of #57675 - cuviper:llvm-monorepo, r=alexcrichtonbors-1/+4
Rebase to the llvm-project monorepo The new git submodule src/llvm-project is a monorepo replacing src/llvm and src/tools/{clang,lld,lldb}. This also serves as a rebase for these projects to the new 8.x branch from trunk. The src/llvm-emscripten fork is unchanged for now. r? @alexcrichton