about summary refs log tree commit diff
path: root/src/test/ui
AgeCommit message (Collapse)AuthorLines
2019-04-26Rollup merge of #60289 - tmandry:allow-features-include-std, r=cramertjMazdak Farrokhzad-2/+18
Make `-Z allow-features` work for stdlib features r? @cramertj
2019-04-26Rollup merge of #60284 - varkor:const-param-of-type-param, r=cramertjMazdak Farrokhzad-0/+62
Do not allow const generics to depend on type parameters Fixes https://github.com/rust-lang/rust/issues/60264. In https://github.com/rust-lang/rust/pull/58191/files/b534cf992d0189032207f395c27ed092c89b40c7#diff-aeb0880081a991f34aef2ab889e1fb7a, it was suggested that there might be a better place for this error, but as this bug already affects stable, it's probably worth merging this now, and refactoring afterwards (I can open an issue for this).
2019-04-26Rollup merge of #60267 - gnzlbg:f16c_target_feature, r=alexcrichtonMazdak Farrokhzad-1/+2
Add feature-gate for f16c target feature r? @alexcrichton
2019-04-25Add comment explaining restrictionvarkor-4/+10
2019-04-25Make `-Z allow-features` work for stdlib featuresTyler Mandry-2/+18
2019-04-25Auto merge of #59111 - gilescope:generator-better-errors, r=nikomatsakisbors-0/+30
Improved error message when type must be bound due to generator. Fixes #58930. Keen to get some feedback - is this as minimal as we can get it or is there an existing visitor I could repurpose?
2019-04-25Add a test for const parameters with type parameters as typesvarkor-0/+31
2019-04-25Make sure const params with type params don't cause errors without a feature ↵varkor-0/+25
gate
2019-04-25Improved error message when type must be bound due to generator.Giles Cope-0/+30
Error now mentions type var name and span is highlighted.
2019-04-25Add feature-gate for f16c target featuregnzlbg-1/+2
2019-04-25Auto merge of #60248 - estebank:macro-comma, r=oli-obkbors-7/+23
Add guard for missing comma in macro call suggestion Fix #60233. Follow up to #58796. r? @oli-obk
2019-04-25Rollup merge of #60243 - davidtwco:issue-53249, r=cramertjMazdak Farrokhzad-0/+47
Add regression test for #53249. Fixes #53249. r? @cramertj
2019-04-25Rollup merge of #60160 - xldenis:fix-overlapping-zero-width-annotation, ↵Mazdak Farrokhzad-18/+9
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-25Rollup merge of #59697 - euclio:label-fixes, r=zackmdavisMazdak Farrokhzad-7/+19
tweak unresolved label suggestion Only suggest label names in the same hygiene context, and use a structured suggestion. Question for reviewer: Is this the right way to check for label hygiene?
2019-04-24Add guard for missing comma in macro call suggestionEsteban Küber-7/+23
2019-04-24Add regression test for #53249.David Wood-0/+47
2019-04-24Rollup merge of #59739 - cramertj:stabilize, r=withoutboatsMazdak Farrokhzad-24/+82
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-25/+21
2019-04-23Add rustc_allow_const_fn_ptrTaylor Cramer-0/+62
2019-04-24Fix testAmanieu d'Antras-3/+3
2019-04-23Rollup merge of #60169 - varkor:tidy-unnecessary-ignore-newline, r=kennytmMazdak Farrokhzad-167/+103
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-23Auto merge of #60155 - davidtwco:issue-59819, r=oli-obkbors-0/+109
Suggest dereferencing when `Deref` is implemented. Fixes #59819. r? @oli-obk cc @estebank
2019-04-23Remove unnecessary tidy ignore directivesvarkor-8/+5
2019-04-23Update ui testsvarkor-98/+98
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-61/+0
2019-04-23Auto merge of #60125 - estebank:continue-evaluating, r=oli-obkbors-104/+416
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-122/+2
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-18/+9
2019-04-22Auto merge of #60126 - estebank:continue-eval, r=oli-obkbors-193/+174
Continue evaluating after item-type checking Fix #30999. r? @oli-obk
2019-04-22Fix ICE related to #53708Esteban Küber-14/+22
2019-04-22Never stop due to errors before borrow checkingEsteban Küber-99/+403
2019-04-22Remove needless error in testEsteban Küber-18/+8
2019-04-22review comments: deduplicate testsEsteban Küber-159/+4
2019-04-22Update ui testsvarkor-7/+2
2019-04-22Continue evaluating after item-type checkingEsteban Küber-35/+181
2019-04-22Only make suggestion when type is `Copy`.David Wood-13/+48
This commit makes the suggestion to dereference when a type implements `Deref` only apply if the dereference would succeed (ie. the type is `Copy`, otherwise a borrow check error would occur).
2019-04-22Update ui testsvarkor-4/+4
2019-04-22Remove leading newlinesvarkor-6/+2
2019-04-22Remove double trailing newlinesvarkor-115/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-21836/+5849
2019-04-21Suggest dereferencing when `Deref` is implemented.David Wood-8/+38
This commit suggests dereferencing a type when it implements `Deref` with the correct `Output` associated type.
2019-04-21Add existing behaviour test for deref suggestions.David Wood-0/+44
This commit adds a test that demonstrates the current behaviour where suggestions to add a dereference aren't given for non-references.
2019-04-21Auto merge of #60119 - estebank:bad-recovery, r=davidtwcobors-0/+16
Remove assumption from recovery code Fix #60115.
2019-04-21Auto merge of #60132 - davidtwco:issue-60075, r=estebankbors-0/+49
Fix fn front matter parsing ICE from invalid code. Fixes #60075. This PR fixes an "unreachable code" ICE that results from parsing invalid code where the compiler is expecting the next trait item declaration in the middle of the previous trait item due to extra closing braces. r? @estebank (thanks for the minimized test case)
2019-04-20Auto merge of #60088 - varkor:async_await-method-feature-gate, r=cramertjbors-6/+41
Feature gate async methods Fixes https://github.com/rust-lang/rust/issues/60069.
2019-04-20Update error message in testvarkor-2/+1
2019-04-20Check async in trait methodsvarkor-5/+26
2019-04-20Fix additional variadic typosvarkor-2/+2
2019-04-20Add test for async fn methods feature gatingvarkor-4/+19