about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2019-09-05Rollup merge of #64063 - JohnTitor:fix-const-err, r=oli-obkMazdak Farrokhzad-41/+290
Fix const_err with `-(-0.0)` Fixes #64059 r? @oli-obk
2019-09-05Rollup merge of #64110 - estebank:receiver-type, r=CentrilMazdak Farrokhzad-22/+27
Refer to "`self` type" instead of "receiver type" Fix https://github.com/rust-lang/rust/issues/42603.
2019-09-04Add compile flagYuki Okushi-41/+43
2019-09-03Rollup merge of #64049 - estebank:if-else-type-err, r=CentrilMazdak Farrokhzad-14/+2
Emit a single error on if expr with expectation and no else clause Fix https://github.com/rust-lang/rust/issues/60254. r? @Centril
2019-09-02review commentsEsteban Küber-1/+11
2019-09-02On object safety violation, point at source when possibleEsteban Küber-9/+14
2019-09-02Refer to "`self` type" instead of "receiver type"Esteban Küber-14/+14
2019-09-02Do not complain about unconstrained params when Self is Ty ErrorEsteban Küber-0/+14
2019-09-02Fix tests againYuki Okushi-33/+348
2019-09-02Fix condition and tests' flagsYuki Okushi-101/+33
2019-09-02Fix overflow_checkYuki Okushi-30/+100
2019-09-02Add `overflow_check` checkYuki Okushi-6/+0
2019-09-02Add `opt-level` checkYuki Okushi-100/+36
2019-08-31Emit a single error on if expr with expectation and no else clauseEsteban Küber-14/+2
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-136/+75
2019-08-29Rollup merge of #63867 - petrochenkov:dhelpers, r=matthewjasperMazdak Farrokhzad-1/+10
resolve: Block expansion of a derive container until all its derives are resolved So, it turns out there's one more reason to block expansion of a `#[derive]` container until all the derives inside it are resolved, beside `Copy` (https://github.com/rust-lang/rust/pull/63248). The set of derive helper attributes registered by derives in the container also has to be known before the derives themselves are expanded, otherwise it may be too late (see https://github.com/rust-lang/rust/pull/63468#issuecomment-524550872 and the `#[stable_hasher]`-related test failures in https://github.com/rust-lang/rust/pull/63468). So, we stop our attempts to unblock the container earlier, as soon as the `Copy` status is known, and just block until all its derives are resolved. After all the derives are resolved we immediately go and process their helper attributes in the item, without delaying it until expansion of the individual derives. Unblocks https://github.com/rust-lang/rust/pull/63468 r? @matthewjasper (as a reviewer of https://github.com/rust-lang/rust/pull/63248) cc @c410-f3r
2019-08-27resolve: Block expansion of a derive container until all its derives are ↵Vadim Petrochenkov-1/+10
resolved Also mark derive helpers as known as a part of the derive container's expansion instead of expansion of the derives themselves which may happen too late.
2019-08-23Simplify eager normalization of constantsOliver Scherer-5/+5
2019-08-21more `--bless`ing + test error annotations fixesArtem Varaksa-2/+2
2019-08-21improve diagnostics: break/continue wrong contextArtem Varaksa-14/+14
2019-08-19Cherry-pick src/test changes with Centril's changessd234678-10/+6
2019-08-17Rollup merge of #63487 - sd234678:remove-meaningless-comments-in-src/test-2, ↵Mazdak Farrokhzad-7/+1
r=Centril Remove meaningless comments in src/test Moved from #63411
2019-08-16Update stderr files with --blesssd234678-1/+1
2019-08-16Remove meaningless comments in src/testsd234678-6/+0
2019-08-15resolve: Move macro resolution traces from `Module`s to `Resolver`Vadim Petrochenkov-6/+6
Traces already contain module info without that. It's easy to forget to call `finalize_*` on a module. In particular, macros enum and trait modules weren't finalized. By happy accident macros weren't placed into those modules until now.
2019-08-15Rollup merge of #63577 - meffij:test-hrtb, r=alexcrichtonMazdak Farrokhzad-0/+31
Test HRTB issue accepted by compiler Hi! First Rust PR, so if anything needs changing just let me know and I'll take care of it right away. Closes #50301 which was marked E-needstest
2019-08-14Test HRTB issue accepted by compilernivlac-0/+31
2019-08-14Rollup merge of #63507 - estebank:type-inference-error, r=CentrilMazdak Farrokhzad-4/+1
When needing type annotations in local bindings, account for impl Trait and closures Fix https://github.com/rust-lang/rust/issues/46680, fix https://github.com/rust-lang/rust/issues/63504, fix https://github.com/rust-lang/rust/issues/63506, fix #40014, cc https://github.com/rust-lang/rust/issues/63502.
2019-08-13Suggest giving return type to closures on E0282Esteban Küber-4/+1
2019-08-13Apply Centril's suggestionEric Huss-2/+2
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-08-13Fix typo in error message.Eric Huss-2/+2
2019-08-11Regression test for #56870Adrian Budau-0/+38
2019-08-10Rollup merge of #63337 - estebank:break-ee0308, r=CentrilMazdak Farrokhzad-10/+23
Tweak mismatched types error - Change expected/found for type mismatches in `break` - Be more accurate when talking about diverging match arms - Tweak wording of function without a return value - Suggest calling bare functions when their return value can be coerced to the expected type - Give more parsing errors when encountering `foo(_, _, _)` Fix #51767, fix #62677, fix #63136, cc #37384, cc #35241, cc #51669.
2019-08-09review comments: typo and rewordingEsteban Küber-5/+5
2019-08-09review comment: review wording or missing return errorEsteban Küber-4/+4
2019-08-09Tweak wording of fn without explicit returnEsteban Küber-4/+4
2019-08-09Recover parser from `foo(_, _)`Esteban Küber-2/+9
2019-08-09When suggesting fn call use an appropriate number of placeholder argumentsEsteban Küber-1/+1
2019-08-09Suggest calling function on type error when finding bare fnEsteban Küber-1/+4
2019-08-09Change wording for function without return valueEsteban Küber-4/+4
Fix #62677
2019-08-09Tweak mismatched types error on break expressionsEsteban Küber-3/+6
2019-08-09Rollup merge of #63397 - JohnTitor:add-tests-for-ices, r=CentrilMazdak Farrokhzad-0/+94
Add tests for some ICEs Closes #43623 Closes #44405 r? @Centril
2019-08-09Rollup merge of #63289 - kornelski:missingcrate, r=zackmdavisMazdak Farrokhzad-7/+7
Don't recommend `extern crate` syntax `extern crate` syntax is not a good recommendation any more, so I've changed it to just print a suggested crate name.
2019-08-09Add test for issue-44405Yuki Okushi-0/+33
2019-08-09Add test for issue-43623Yuki Okushi-0/+61
2019-08-08Rollup merge of #63370 - JohnTitor:fix-ice-63364, r=varkorMazdak Farrokhzad-0/+20
Fix ICE #63364 Fixes #63364 r? @estebank cc @varkor
2019-08-08Rollup merge of #63259 - JohnTitor:add-tests-for-some-issues, r=CentrilMazdak Farrokhzad-0/+53
Add tests for some issues Closes #29265 Closes #37433 Closes #49544 r? @Centril
2019-08-08Rollup merge of #62994 - iluuu1994:test-for-43398, r=nikomatsakisMazdak Farrokhzad-0/+15
Add test for #43398 Closes #43398
2019-08-08Return early to avoid failing assertionYuki Okushi-0/+20
2019-08-07Auto merge of #63152 - estebank:big-array, r=oli-obkbors-22/+55
Always error on `SizeOverflow` during mir evaluation Fix #55878, fix #25116. r? @oli-obk