summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
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
2019-08-06review comment: reword test commentEsteban Küber-4/+4
2019-08-06review commentsEsteban Küber-0/+6
2019-08-06Ignore no support targetsYuki Okushi-1/+3
2019-08-06Rollup merge of #63264 - arielb1:revert-private-coherence-errors, r=estebankMazdak Farrokhzad-0/+2
Revert "Rollup merge of #62696 - chocol4te:fix_#62194, r=estebank" This reverts commit df21a6f040a7011d509769a61ac7af9502636b33 (#62696), reversing changes made to cc16d0486933e02237190366de2eb43df2215c11. That PR makes error messages worse than before, and we couldn't come up with a way of actually making them better, so revert it for now. Any idea for making this error message better is welcome! Fixes #63145. r? @estebank
2019-08-06Rollup merge of #63230 - tmandry:disallow-possibly-uninitialized, r=CentrilMazdak Farrokhzad-25/+3
Make use of possibly uninitialized data [E0381] a hard error This is one of the behaviors we no longer allow in NLL. Since it can lead to undefined behavior, I think it's definitely worth making it a hard error without waiting to turn off migration mode (#58781). Closes #60450. My ulterior motive here is making it impossible to leave variables partially initialized across a yield (see #60889, discussion at #63035), so tests are included for that. cc #54987 --- I'm not sure if bypassing the buffer is a good way of doing this. We could also make a `force_errors_buffer` or similar that gets recombined with all the errors as they are emitted. But this is simpler and seems fine to me. r? @Centril cc @cramertj @nikomatsakis @pnkfelix @RalfJung
2019-08-05fix testsEsteban Küber-24/+34
2019-08-05Make use of possibly uninitialized data a hard errorTyler Mandry-25/+3
This is one of the behaviors we no longer allow in NLL. Since it can lead to undefined behavior, I think it's definitely worth making it a hard error without waiting to turn off migration mode (#58781). Closes #60450. My ulterior motive here is making it impossible to leave variables partially initialized across a yield (see discussion at #63035), so tests are included for that.
2019-08-05Don't recommend `extern crate` syntaxKornel-7/+7
2019-08-05Add test for #43398Ilija Tovilo-0/+15
Closes #43398
2019-08-04tweak output and testsEsteban Küber-2/+2
2019-08-04Revert "Rollup merge of #62696 - chocol4te:fix_#62194, r=estebank"Ariel Ben-Yehuda-0/+2
This reverts commit df21a6f040a7011d509769a61ac7af9502636b33, reversing changes made to cc16d0486933e02237190366de2eb43df2215c11.
2019-08-04Add test for issue-37433Yuki Okushi-0/+16
2019-08-04Add test for issue-49544Yuki Okushi-0/+16
2019-08-04Add test for issue-29265Yuki Okushi-0/+19
2019-08-03Point to local place span on "type too big" errorEsteban Küber-0/+4
2019-08-03avoid mutable state and override main messageEsteban Küber-4/+4
2019-08-03Auto merge of #63059 - Centril:sound-bind-by-move, r=matthewjasperbors-3/+1
Make `#![feature(bind_by_move_pattern_guards)]` sound without `#[feature(nll)]` Implements https://github.com/rust-lang/rust/issues/15287#issuecomment-507054617 making `#![feature(bind_by_move_pattern_guards)]]` sound without also having `#![feature(nll)]`. The logic here is that if we see a `match` guard, we will refuse to downgrade NLL errors to warnings. This is in preparation for hopefully stabilizing the former feature in https://github.com/rust-lang/rust/pull/63118. As fall out from the implementation we also: Fixes https://github.com/rust-lang/rust/issues/31287 Fixes https://github.com/rust-lang/rust/issues/27282 r? @matthewjasper
2019-08-03Auto merge of #62946 - RalfJung:miri_type_dispatch_first, r=oli-obkbors-5/+3
Miri: dispatch first on the type Based on the fact that Miri now always has intptrcast available, we can change binops and casts to first check the type of the source operand and then decide based on that what to do, instead of considering the value (pointer vs bits) first.
2019-08-03Auto merge of #63180 - varkor:trait-alias-impl-trait, r=Centrilbors-7/+7
Change opaque type syntax from `existential type` to type alias `impl Trait` This implements a new feature gate `type_alias_impl_trait` (this is slightly different from the originally proposed feature name, but matches what has been used in discussion since), deprecating the old `existential_types` feature. The syntax for opaque types has been changed. In addition, the "existential" terminology has been replaced with "opaque", as per previous discussion and the RFC. This makes partial progress towards implementing https://github.com/rust-lang/rust/issues/63063. r? @Centril
2019-08-02bless all the thingsRalf Jung-5/+3
2019-08-02Nicer labels for type layout errorsEsteban Küber-2/+2
2019-08-02Always error on `SizeOverflow` during mir evaluationEsteban Küber-2/+15
2019-08-02Auto merge of #61393 - gnzlbg:update_libc, r=gnzlbgbors-3/+3
Update Cargo.lock
2019-08-02Address review commentsvarkor-1/+1
2019-08-02Replace "existential" by "opaque"varkor-1/+1
2019-08-02Update syntax in existing testsvarkor-6/+6
2019-08-01Fix test of issue 3656gnzlbg-3/+3
2019-08-01Auto merge of #63194 - pietroalbini:rollup-xgnvb1b, r=pietroalbinibors-1/+4
Rollup of 8 pull requests Successful merges: - #62644 (simplify std::io::Write::write rustdoc) - #62971 (Add keywords item into the sidebar) - #63122 (Account for `maybe_whole_expr` in range patterns) - #63158 (Add test for issue-58951) - #63170 (cleanup StringReader fields) - #63179 (update test cases for vxWorks) - #63188 (Fix typos in release notes.) - #63191 (ci: fix toolstate not pushing data for Linux) Failed merges: r? @ghost
2019-07-31issue-2214.rs: lgamma is lgamma on vxWorksBaoshan Pang-1/+4
ignore process-envs.rs and process-remove-from-env.rs as there is no 'env' on vxWorks
2019-07-31Remove derives `Encodable`/`Decodable` and unstabilize attribute `#[bench]`Vadim Petrochenkov-3/+7
2019-07-30--bless tests due to INCOMPLETE_FEATURES being a lint.Mazdak Farrokhzad-5/+7