about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2019-05-11Auto merge of #60721 - estebank:ice-ice-baby, r=varkorbors-0/+26
Avoid ICE by using delay_span_bug Fix #59406, fix #53498.
2019-05-10Avoid ICE by using delay_span_bugEsteban Küber-0/+26
2019-05-10Various test changesMazdak Farrokhzad-2/+17
2019-05-09Rollup merge of #60644 - estebank:abolish-ice, r=varkorMazdak Farrokhzad-0/+51
Use `delay_span_bug` for "Failed to unify obligation" Fix #60283.
2019-05-09Rollup merge of #60627 - matklad:test, r=estebankMazdak Farrokhzad-0/+40
test for #50518 It was fixed somewhere between 1.28.0 and 1.31.1 closes #50518 r? @estebank Where's the best place to add this test? I *think* we want "compile-pass" for this test (no need to run a binary, and not running saves us a millisecond of process creation) , but there's no compile-pass anymore. Should this be UI test with empty stdout, stderr and zero return code?
2019-05-08Use `delay_span_bug` for "Failed to unify obligation"Esteban Küber-0/+51
2019-05-08test for #50518Aleksey Kladov-0/+40
It was fixed somewhere between 1.28.0 and 1.31.1 closes #50518
2019-05-07Implement built-in await syntaxTaylor Cramer-0/+40
Adds support for .await under the existing async_await feature gate. Moves macro-like await! syntax to the await_macro feature gate. Removes support for `await` as a non-keyword under the `async_await` feature.
2019-05-04Rollup merge of #60517 - estebank:wording, r=davidtwcoMazdak Farrokhzad-3/+3
Reword casting message r? @davidtwco
2019-05-04Rollup merge of #60513 - chrisvittal:remove-borrowck-compare, r=matthewjasperMazdak Farrokhzad-93/+26
Remove -Z borrowck=compare flag This is the start of the work that needs to be done on #59193. It just removes the flag and updates the tests. r? @matthewjasper
2019-05-04Rollup merge of #60449 - matthewjasper:impl-trait-outlives, r=pnkfelixMazdak Farrokhzad-2/+2
Constrain all regions in the concrete type for an opaque type `push_outlives_components` skips some regions in a type, notably the signature of a closure is ignored. Most of the time this is OK, but for opaque types the concrete type is used when checking auto-trait bounds in other functions. cc @nikomatsakis @pnkfelix Closes #57464 Closes #60127
2019-05-03Reword casting messageEsteban Küber-3/+3
2019-05-03Rollup merge of #60388 - cramertj:elided-lifetime-async, r=nikomatsakisMazdak Farrokhzad-7/+17
Disallow non-explicit elided lifetimes in async fn Fix https://github.com/rust-lang/rust/issues/60203 r? @nikomatsakis
2019-05-03Update testsChristopher Vittal-93/+26
2019-05-02Constrain all regions in the concrete type for an opaque typeMatthew Jasper-2/+2
2019-05-01Disallow non-explicit elided lifetimes in async fnTaylor Cramer-7/+17
2019-04-29Suggest try_into when possibleEsteban Küber-0/+28
2019-04-25Rollup merge of #60160 - xldenis:fix-overlapping-zero-width-annotation, ↵Mazdak Farrokhzad-3/+2
r=estebank Fix #58270, fix off-by-one error in error diagnostics. This fixes #58270 by checking if two diagnostics overlap completely when we're calculating the line offset for each message.
2019-04-24Rollup merge of #59739 - cramertj:stabilize, r=withoutboatsMazdak Farrokhzad-4/+4
Stabilize futures_api cc https://github.com/rust-lang/rust/issues/59725. Based on https://github.com/rust-lang/rust/pull/59733 and https://github.com/rust-lang/rust/pull/59119 -- only the last two commits here are relevant. r? @withoutboats , @oli-obk for the introduction of `rustc_allow_const_fn_ptr`.
2019-04-24Auto merge of #58623 - Amanieu:hashbrown3, r=alexcrichtonbors-3/+3
Replace HashMap implementation with SwissTable (as an external crate) This is the same as #56241 except that it imports `hashbrown` as an external crate instead of copying the implementation into libstd. This includes a few API changes (all unstable): - `try_reserve` is added to `HashSet`. - Some trait bounds have been changed in the `raw_entry` API. - `search_bucket` has been removed from the `raw_entry` API (doesn't work with SwissTable).
2019-04-23Stabilize futures_apiTaylor Cramer-4/+4
2019-04-24Fix testAmanieu d'Antras-3/+3
2019-04-23Rollup merge of #60169 - varkor:tidy-unnecessary-ignore-newline, r=kennytmMazdak Farrokhzad-35/+21
Warn when ignore-tidy-linelength is present, but no lines are too long It's easy for a `// ignore-tidy-linelength` to be added when there is a genuine need to ignore a file's line length, but then after refactoring the need is gone, but the tidy directive is not removed. This means that in the future, further editing may accidentally add unnecessarily long lines. This change forces `// ignore-tidy-linelength` to be used exactly when necessary, to make sure such changes are intentional.
2019-04-23Update ui testsvarkor-21/+21
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-14/+0
2019-04-23Auto merge of #60125 - estebank:continue-evaluating, r=oli-obkbors-16/+71
Don't stop evaluating due to errors before borrow checking r? @oli-obk Fix #60005. Follow up to #59903. Blocked on #53708, fixing the ICE in `src/test/ui/consts/match_ice.rs`.
2019-04-23Auto merge of #60172 - varkor:tidy-double-trailing-newline, r=kennytmbors-18/+0
Disallow double trailing newlines in tidy This wasn't done previously in https://github.com/rust-lang/rust/pull/47064#issuecomment-354533010 as it affected too many files, but I think it's best to fix it now so that the number of files with double trailing newlines doesn't keep increasing. r? kennytm
2019-04-22Fix #58270, fix off-by-one error in error diagnostics.Xavier Denis-3/+2
2019-04-22Never stop due to errors before borrow checkingEsteban Küber-16/+71
2019-04-22Continue evaluating after item-type checkingEsteban Küber-2/+13
2019-04-22Remove double trailing newlinesvarkor-18/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-1538/+446
2019-04-19Auto merge of #60073 - rchaser53:issue-60049, r=estebankbors-10/+55
avoid type-check body of DefId fix: #60049 related: PR #59798
2019-04-19avoid type-check body of DefIdrchaser53-10/+55
2019-04-19Rollup merge of #60064 - estebank:issue-59980, r=varkorMazdak Farrokhzad-3/+3
Point at try `?` on errors affecting the err match arm of the desugared code Fix #59980.
2019-04-19Rollup merge of #60061 - estebank:field-sugg, r=davidtwcoMazdak Farrokhzad-0/+37
Change suggestion of field when not in self context Fix #60057.
2019-04-19Rollup merge of #60052 - varkor:unused-parameter-diagnostic, r=estebankMazdak Farrokhzad-6/+6
Correct unused parameter diagnostic The message was incorrect for unused lifetime parameters. There's no need to be specific.
2019-04-18Suggest appropriate path when calling associated item on bare typesEsteban Küber-0/+4
When looking at the documentation for `std::f32` or `std::str`, for example, it is easy to get confused and assume `std::f32` and `f32` are the same thing. Because of this, it is not uncommon to attempt writing `f32::consts::PI` instead of the correct `std::f32::consts::PI`. When encountering the former, which results in an access error due to it being an inexistent path, try to access the same path under `std`. If this succeeds, this information is stored for later tweaking of the final E0599 to provide an appropriate suggestion. This suggestion applies to both E0233 and E0599 and is only checked when the first ident of a path corresponds to a primitive type.
2019-04-18Fix rebaseEsteban Küber-1/+1
2019-04-18review comments: change wordingEsteban Küber-1/+1
2019-04-18Change suggestion of field when not in self contextEsteban Küber-0/+37
2019-04-18Update testsvarkor-6/+6
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-108/+70
2019-04-18Auto merge of #60048 - estebank:issue-54954, r=sanxiynbors-0/+35
Fix ICE on const evaluation of const method Fix #54954.
2019-04-18Auto merge of #60051 - estebank:fn-sugg, r=davidtwcobors-13/+7
Do not mention missing `PartialOrd` impl when involving uncalled fns
2019-04-17Give custom error for E0277 on `?` error caseEsteban Küber-1/+1
2019-04-17Point at try `?` on errors affecting the err match arm of the desugared codeEsteban Küber-2/+2
2019-04-17Do not mention missing `PartialOrd` impl when involving uncalled fnsEsteban Küber-13/+7
2019-04-17Fix ICE on const evaluation of const methodEsteban Küber-0/+35
2019-04-17Resolve inconsistency in error messages between "parameter" and "variable".Eduard-Mihai Burtescu-5/+5