about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-09-14Auto merge of #54088 - matthewjasper:use-reason-in-dlle-errors, r=pnkfelixbors-0/+25
[NLL] Suggest let binding Closes #49821 Also adds an alternative to `explain_why_borrow_contains_point` that allows changing error messages based on the reason that will be given. This will also be useful for #51026, #51169 and maybe further changes to does not live long enough messages.
2018-09-14Auto merge of #54080 - PramodBisht:issue/53692, r=estebankbors-0/+51
Addressed #53692 @sunjay @estebank @csmoe hopefully this answer #53692 Please let me know if you have any suggestion
2018-09-14Auto merge of #54032 - oli-obk:layout_scalar_ranges, r=eddybbors-7/+32
Add forever unstable attribute to allow specifying arbitrary scalar ranges r? @eddyb for the first commit and @nikomatsakis for the second one
2018-09-14Rollup merge of #54173 - phansch:suggest_valid_crate_type, r=estebankkennytm-3/+93
Suggest valid crate type if invalid crate type is found This adds a suggestion to the `invalid_crate_types` lint. The suggestion is based on the Levenshtein distance to existing crate types. If no suggestion is found it will show the lint without any suggestions. Closes #53958
2018-09-14Auto merge of #53751 - F001:tuple-struct-self-ctor, r=petrochenkov,varkorbors-34/+216
Implement RFC 2302: tuple_struct_self_ctor Tracking issue: https://github.com/rust-lang/rust/issues/51994
2018-09-13Auto merge of #54168 - kennytm:rollup, r=kennytmbors-7/+131
Rollup of 11 pull requests Successful merges: - #53371 (Do not emit E0277 on incorrect tuple destructured binding) - #53829 (Add rustc SHA to released DWARF debuginfo) - #53950 (Allow for opting out of ThinLTO and clean up LTO related cli flag handling.) - #53976 (Replace unwrap calls in example by expect) - #54070 (Add Error::description soft-deprecation to RELEASES) - #54076 (miri loop detector hashing) - #54119 (Add some unit tests for find_best_match_for_name) - #54147 (Add a test that tries to modify static memory at compile-time) - #54150 (Updated 1.29 release notes with --document-private-items flag) - #54163 (Update stage 0 to latest beta) - #54170 (COMPILER_TESTS.md has been moved)
2018-09-13Suggest valid crate type if invalidPhilipp Hansch-3/+93
This adds a suggestion to the `invalid_crate_types` lint. The suggestion is based on the Levenshtein distance to existing crate types. If no suggestion is found it will show the lint without any suggestions.
2018-09-14Rollup merge of #53950 - michaelwoerister:more-lto-cli, r=alexcrichtonkennytm-4/+28
Allow for opting out of ThinLTO and clean up LTO related cli flag handling. It turns out that there currently is no way to explicitly disable ThinLTO (except for the nightly-only `-Zthinlto` flag). This PR extends `-C lto` to take `yes` and `no` in addition to `thin` and `fat`. It should be backwards compatible. It also cleans up how LTO mode selection is handled. Note that merging the PR in the current state would make the new values for `-C lto` available on the stable channel. I think that would be fine but maybe some team should vote on it.
2018-09-14Rollup merge of #53829 - alexcrichton:release-debuginfo, r=michaelwoeristerkennytm-3/+8
Add rustc SHA to released DWARF debuginfo This commit updates the debuginfo that is encoded in all of our released artifacts by default. Currently it has paths like `/checkout/src/...` but these are a little inconsistent and have changed over time. This commit instead attempts to actually define the file paths in our debuginfo to be consistent between releases. All debuginfo paths are now intended to be `/rustc/$sha` where `$sha` is the git sha of the released compiler. Sub-paths are all paths into the git repo at that `$sha`.
2018-09-14Rollup merge of #54147 - agnxy:const-eval-test, r=oli-obkkennytm-0/+55
Add a test that tries to modify static memory at compile-time Attempt to fix #53818 cc @oli-obk
2018-09-13introduce SelfCtorF001-56/+122
2018-09-13implement feature tuple_struct_self_ctorF001-28/+144
2018-09-13resolve: Future proof derive helper attributesVadim Petrochenkov-0/+81
2018-09-13Rollup merge of #53371 - estebank:tuple, r=nikomatsakiskennytm-0/+40
Do not emit E0277 on incorrect tuple destructured binding Fix #50333.
2018-09-12Auto merge of #53409 - GuillaumeGomez:associated-const-value, r=QuietMisdreavusbors-29/+4
Don't show associated const value anymore Part of #44348. Before: <img width="1440" alt="screen shot 2018-08-16 at 00 48 30" src="https://user-images.githubusercontent.com/3050060/44177414-20ef1480-a0ee-11e8-80d4-7caf082cf0de.png"> After: <img width="1440" alt="screen shot 2018-08-16 at 00 48 23" src="https://user-images.githubusercontent.com/3050060/44177417-251b3200-a0ee-11e8-956a-4229275e3342.png"> cc @nox r? @QuietMisdreavus
2018-09-12Auto merge of #54152 - michaelwoerister:cgu-name-fix, r=alexcrichtonbors-3/+3
Really make CGU names unique across crates. This will hopefully fix issue #53794. r? @alexcrichton
2018-09-12Auto merge of #53793 - toidiu:ak-stabalize, r=nikomatsakisbors-580/+733
stabilize outlives requirements https://github.com/rust-lang/rust/issues/44493 r? @nikomatsakis
2018-09-12Really make CGU names unique across crates.Michael Woerister-3/+3
2018-09-12Add a test that tries to modify static memory at compile-timeAndrew Xu-0/+55
2018-09-12Rollup merge of #54142 - pnkfelix:fix-regression-test-for-16278, r=wesleywiserkennytm-3/+4
Recover proper regression test for issue #16278. Spawned from my note https://github.com/rust-lang/rust/pull/19955#issuecomment-420430761
2018-09-12Rollup merge of #54087 - ollie27:rustdoc_blanket_impl, r=QuietMisdreavuskennytm-0/+37
rustdoc: Remove generated blanket impls from trait pages #53801 only deduped the generated blanket impls but they shouldn't be displayed at all because the original blanket impl is already in the "Implementors" section. This also removes the impls from the sidebar. Fixes #53689 r? @QuietMisdreavus
2018-09-12Rollup merge of #54072 - blitzerr:master, r=Mark-Simulacrumkennytm-155/+0
Stabilization change for mod.rs This change is in response to https://github.com/rust-lang/rust/issues/53125. The patch makes the feature accepted and removes the tests that tested the non-accepted status of the feature.
2018-09-11Do not emit E0277 on incorrect tuple destructured bindingEsteban Küber-0/+40
2018-09-11Auto merge of #53913 - petrochenkov:biattr4, r=alexcrichtonbors-0/+238
resolve: Future proof resolutions for potentially built-in attributes This is not full "pass all attributes through name resolution", but a more conservative solution. If built-in attribute is ambiguous with any other macro in scope, then an error is reported. What complications arise with the full solution - https://github.com/rust-lang/rust/pull/53913#issuecomment-418204136. cc https://github.com/rust-lang/rust/pull/50911#issuecomment-411605393 cc https://github.com/rust-lang/rust/issues/52269 Closes https://github.com/rust-lang/rust/issues/53531
2018-09-11Recover proper regression test for issue #16278.Felix S. Klock II-3/+4
2018-09-11Auto merge of #53873 - ↵bors-139/+395
nikomatsakis:nll-universe-subtyping-and-pattern-ascription, r=pnkfelix support ascription for patterns in NLL This implements the strategy outlined in [this comment](https://github.com/rust-lang/rust/issues/47184#issuecomment-416669986): - We first extend the NLL subtyping code so it can handle inference variables and subtyping. - Then we extend HAIR patterns with type ascription. - Then we treat the type `T` in `let pat: T = ...` as an ascription. Before landing, a few things: - [x] Fix the WF rule bug (filed a FIXME https://github.com/rust-lang/rust/issues/54105) - [x] Fix an ICE I encountered locally around bound regions, or else file a follow-up - [x] More tests probably =) r? @pnkfelix
2018-09-11Add missing #![feature(min_const_fn)] to the newtype_index test.Eduard-Mihai Burtescu-1/+1
2018-09-11Auto merge of #54111 - nikomatsakis:issue-53686-keywords-and-macros, ↵bors-13/+73
r=alexcrichton warn about keywords in macro invocations Fixes #53686 r? @alexcrichton
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-580/+733
Co-authored-by: nikomatsakis
2018-09-11we now successfully warn about `async` in macro invocationsNiko Matsakis-13/+26
2018-09-11Change debug printing to print in the old concise styleOliver Schneider-7/+7
2018-09-11Use assertion-like static assertionsOliver Schneider-1/+1
2018-09-11Fix const eval of ZST index operations to make the static assertion workOliver Schneider-0/+5
2018-09-11Satisfy tidyOliver Schneider-1/+1
2018-09-11Forbid the upper indices of `IndexVec` indices to allow for niche optimizationsOliver Schneider-0/+20
2018-09-11Auto merge of #51363 - japaric:stable-used, r=cramertjbors-40/+6
stabilize #[used] closes #40289 RFC for stabilization: rust-lang/rfcs#2386 r? @Centril Where should this be documented? Currently the documentation is in the unstable book
2018-09-11resolve: Reserve a few very special names in macro namespaceVadim Petrochenkov-52/+48
2018-09-11resolve: Future proof resolutions for potentially built-in attributesVadim Petrochenkov-0/+242
2018-09-10fix incremental testNiko Matsakis-1/+1
We are now carrying the user-given type through MIR, so it makes sense that this would change the hash.
2018-09-10add test caseNiko Matsakis-0/+47
2018-09-10add FIXME related to `ref x` bindingsNiko Matsakis-13/+2
2018-09-10Auto merge of #54093 - petrochenkov:noinner, r=alexcrichtonbors-4/+22
Feature gate non-builtin attributes in inner attribute position Closes item 3 from https://github.com/rust-lang/rust/pull/50911#issuecomment-411605393
2018-09-10Add rustc SHA to released DWARF debuginfoAlex Crichton-3/+8
This commit updates the debuginfo that is encoded in all of our released artifacts by default. Currently it has paths like `/checkout/src/...` but these are a little inconsistent and have changed over time. This commit instead attempts to actually define the file paths in our debuginfo to be consistent between releases. All debuginfo paths are now intended to be `/rustc/$sha` where `$sha` is the git sha of the released compiler. Sub-paths are all paths into the git repo at that `$sha`.
2018-09-10propagate user-ascribes types down onto resulting bindingsNiko Matsakis-18/+79
But only in very simple cases.
2018-09-10expand the patterns test with a bunch more scenariosNiko Matsakis-5/+172
2018-09-10Auto merge of #54000 - jkozlowski:fix-53174, r=cramertjbors-1/+52
Allow named lifetimes in async functions. - Fixes #53174 Code by @eddyb; @cramertj suggested I lift it off another change so we can fix #53174. r? @cramertj
2018-09-10optimize `let x: T = ..` to avoid a temporaryNiko Matsakis-121/+63
For some weird reason this fixes `intrinsic-move-val`. It also affects various test heuristics. I removed one test (`reborrow_basic`) that didn't seem to really be testing anything in particular anymore, compared to all the other tests we've got.
2018-09-10WIP remove incorrect nll.stderr reference filesNiko Matsakis-56/+0
2018-09-10fix SCCs containing mixture of universesNiko Matsakis-0/+31
And add a test showing a universe violation getting caught.
2018-09-10insert `AscribeUserType` for ascriptionsNiko Matsakis-19/+100