about summary refs log tree commit diff
path: root/src/test/ui
AgeCommit message (Collapse)AuthorLines
2021-12-14Rollup merge of #91239 - cameron1024:issue-87490-regression, r=jackh726Matthias Krüger-0/+24
regression test for issue 87490 Closes #87490
2021-12-14Make TyS::is_suggestable more structualMichael Goulet-89/+58
2021-12-14Recover on invalid operators <> and <=>r00ster91-0/+24
2021-12-14Return an error when `eval_rvalue_with_identities` failsTomasz Miąsko-0/+12
Previously some code paths would fail to evaluate the rvalue, while incorrectly indicating success with `Ok`. As a result the previous value of lhs could have been incorrectly const propagated.
2021-12-14Add another regression test for unnormalized fn args with SelfJack Huey-0/+37
2021-12-14extend `simplify_type`lcnr-3/+15
2021-12-14Rollup merge of #91892 - compiler-errors:fix-inferty-hashtable, r=dtolnayMatthias Krüger-0/+17
Fix HashStable implementation on InferTy HashStable impl forgot to hash the discriminant. Fixes #91807
2021-12-14Rollup merge of #91875 - b-naber:mir-transform-norm-erase-reg, r=Aaron1011Matthias Krüger-0/+21
Use try_normalize_erasing_regions in RevealAllVisitor Fixes https://github.com/rust-lang/rust/issues/91745 Thanks to ``@Aaron1011`` for [pointing out the problem](https://github.com/rust-lang/rust/issues/91745#issuecomment-991996008). r? ``@Aaron1011``
2021-12-14Rollup merge of #91820 - rukai:help_with_personality_issues, r=davidtwcoMatthias Krüger-1/+7
Suggest to specify a target triple when lang item is missing It is very common for newbies to embedded to hit this confusing error when forgetting to specify the target. Source: me googling this error many times. ## Possible changes * We could possibly restrict the note+help to only be included on eh_personality lang item if that helped reduce false positives, but its also possible doing so would just increase false negatives * Open to any suggestions on rewriting the messages * We could possibly remove the `.cargo/config` alternative to avoid the message getting too noisy but I think its valuable to have as its the correct approach for most embedded projects so that `cargo build` just works. r? rust-lang/diagnostics
2021-12-13Fix HashStable implementation on InferTyMichael Goulet-0/+17
2021-12-14testEllen-0/+25
2021-12-14Auto merge of #91660 - llogiq:make-a-hash-of-def-ids, r=nnethercotebors-17/+17
manually implement `Hash` for `DefId` This might speed up hashing for hashers that can work on individual u64s. Just as an experiment, suggested in a reddit thread on `FxHasher`. cc `@nnethercote` Note that this should not be merged as is without cfg-ing the code path for 64 bits.
2021-12-14test should pass :sweat_smile:ouz-a-0/+1
2021-12-13use try_normalize_erasing_regions in RevealAllVisitorb-naber-0/+21
2021-12-14Add regression test and commentouz-a-0/+8
2021-12-13Update test to new error messageAlexis Bourget-15/+17
2021-12-13Fix broken span and related testsAlexis Bourget-6/+16
2021-12-13Add tests for misplaced/duplicated pub in fn declAlexis Bourget-0/+37
2021-12-13Rollup merge of #91849 - jackh726:gats-outlives-lint-part2, r=nikomatsakisMatthias Krüger-40/+109
GATs outlives lint: Try to prove bounds Fixes #91036 Fixes #90888 Fixes #91348 (better error + documentation to be added to linked issue) Instead of checking for bounds directly, try to prove them in the associated type environment. Also, add a bit of extra information to the error, including a link to the relevant discussion issue (#87479). That should be edited to include a brief summary of the current state of the outlives lint, including a brief background. It also might or might not be worth it to bump this to a full error code at some point. r? ``@nikomatsakis``
2021-12-13Rollup merge of #91847 - BoxyUwU:generic_arg_infer_fixme, r=lcnrMatthias Krüger-0/+41
Fix FIXME for `generic_arg_infer` in `create_substs_for_ast_path` Fixes a FIXME, does some general refactoring of this fn, and also fixes a bug where we would use a const params defaults instead of an inference var ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=19456f65ea5dc3fcaa9b696f842ab380)) (lot of stuff in one PR but it was all so close together...) r? `@lcnr` Fixes #91614
2021-12-13review comment: change wording of suggestionEsteban Kuber-3/+3
2021-12-13review commentsEsteban Kuber-9/+17
2021-12-13tidy fixEsteban Kuber-1/+1
2021-12-13Fix rebase and clippy testsEsteban Kuber-76/+44
2021-12-13Keep info on pre-desugaring expression for better "incorrect `.await`" ↵Esteban Kuber-0/+36
suggestion Keep the `HirId` of `.await`ed expressions so in the case of a `fn` call on on a sync `fn`, we can suggest maybe turning it into an `async fn`.
2021-12-13Remove yet more output from `for`-loop and `?` errorsEsteban Kuber-0/+14
2021-12-13Reduce verbosity when calling `for`-loop on non-`Iterator` expressionEsteban Kuber-3/+3
2021-12-13When `.await` is called on a non-`Future` expression, suggest removalEsteban Kuber-114/+128
Keep track of the origin of a `T: Future` obligation when caused by an `.await` expression. Address #66731.
2021-12-13Add run-make-fulldeps testpierwill-26/+26
Implement RUSTC_FORCE_INCR_COMP_ARTIFACT_HEADER Also makes minor docs edits.
2021-12-13Include rustc version in `rustc_span::StableCrateId`pierwill-171/+172
Normalize symbol hashes in compiletest. Remove DefId sorting
2021-12-13Adjust wording for reviewJack Huey-28/+28
2021-12-14Suggest to specify a target triple when eh_personality lang item is missingLucas Kent-1/+7
2021-12-13Instead of checking for exact bounds, try to prove themJack Huey-40/+109
2021-12-13extra test for bug i foundEllen-0/+15
2021-12-13hurray for portable simd finding a nice test for this FIXMEEllen-0/+26
2021-12-13let-else: add deref-coercion testsCormac Relf-0/+171
2021-12-13let-else: add match-ergonomics tests adapted from rfc2005Cormac Relf-0/+228
collect explicit-mut passing tests in one file
2021-12-13let-else: build out ref/ref mut tests, with/without explicit annotationsCormac Relf-19/+208
expands issue 89960
2021-12-13let-else: add tests for moved expressions, copy out of non-copyCormac Relf-0/+62
2021-12-13let-else: fix attribute aliasing + add test for issue 89807Cormac Relf-0/+14
2021-12-12Auto merge of #91549 - fee1-dead:const_env, r=spastorinobors-14/+85
Eliminate ConstnessAnd again Closes #91489. Closes #89432. Reverts #91491. Reverts #89450. r? `@spastorino`
2021-12-12Fix unused import in testAmanieu d'Antras-0/+1
2021-12-12Auto merge of #90207 - BoxyUwU:stabilise_cg_defaults, r=lcnrbors-267/+71
Stabilise `feature(const_generics_defaults)` `feature(const_generics_defaults)` is complete implementation wise and has a pretty extensive test suite so I think is ready for stabilisation. needs stabilisation report and maybe an RFC :sweat_smile: r? `@lcnr` cc `@rust-lang/project-const-generics`
2021-12-12Address review feedbackAmanieu d'Antras-37/+36
2021-12-12Re-bless asm tests for aarch64Amanieu d'Antras-152/+154
2021-12-12Stabilize asm! and global_asm!Amanieu d'Antras-421/+404
They are also removed from the prelude as per the decision in https://github.com/rust-lang/rust/issues/87228. stdarch and compiler-builtins are updated to work with the new, stable asm! and global_asm! macros.
2021-12-12Remove automatic rustfix of asm! to llvm_asm!Amanieu d'Antras-58/+0
This no longer works now that asm! needs an explicit import. Also, it's been over a year since asm! landed, everyone should have transitioned by now.
2021-12-12Avoid suggesting self in visibility specDániel Buga-0/+44
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
2021-12-12Add trailing newlineDeadbeef-1/+1
2021-12-12Revert "Auto merge of #89450 - usbalbin:const_try_revert, r=oli-obk"Deadbeef-9/+23
This reverts commit a8387aef8c378a771686878062e544af4d5e2245, reversing changes made to 6e1211081239be62a5d0bb3bbcb29a9f14621c81.