about summary refs log tree commit diff
path: root/src/test/ui/generic
AgeCommit message (Collapse)AuthorLines
2020-10-15Migrate from `generic` to `generics`Yuki Okushi-492/+0
2020-09-02pretty: trim paths of unique symbolsDan Aloni-4/+4
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-07-27forbid generic params inside of anon consts in ty defaultsBastian Kauschke-0/+12
2020-07-02Audit uses of `span_suggestion_short`Yuki Okushi-3/+22
2020-02-22Report all errors in `check_generic_arg_count`varkor-15/+4
2020-02-05review comments: wordingEsteban Küber-2/+2
2020-02-05Account for `fn()` types in lifetime suggestionsEsteban Küber-0/+12
2020-01-24Normalise notes with the/isvarkor-1/+1
2019-11-21Point at type in `let` assignment on type errorsEsteban Küber-6/+18
2019-11-18Surround types with backticks in type errorsEsteban Küber-13/+13
2019-11-18review comments: tweak prefix stringsEsteban Küber-12/+12
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-26/+26
2019-09-11Make wording less confusingvarkor-1/+1
2019-07-05Rollup merge of #62133 - petrochenkov:norustc, r=eddybMazdak Farrokhzad-25/+19
Feature gate `rustc` attributes harder Fixes https://github.com/rust-lang/rust/issues/62116
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-06-30Make sure `#[rustc_doc_only_macro]` and other rustc attributes are registeredVadim Petrochenkov-25/+19
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-03-11Update testsVadim Petrochenkov-11/+11
2019-02-15Update testsvarkor-6/+6
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2018-12-31Improve type mismatch error messagesYuning Zhang-1/+1
Replace "integral variable" with "integer" and replace "floating-point variable" with "floating-point number" to make the message less confusing.
2018-12-25Remove licensesMark Rousskov-156/+26
2018-08-25Auto merge of #53584 - mcr431:Fix-#53525, r=varkorbors-15/+15
Fix #53525 - Unify E0243, E0244, E0087, E0088, E0089, and E0090 into E0107 Fix #53525 This pr merges all errors related to too many or too few generic arguments in types and functions. E0243, E0244, E0087, E0088, E0089, E0090 errors will no longer be emitted and E0107 will be used instead.
2018-08-24updates tests to use new error codeMatthew Russo-15/+15
2018-08-22Fix a grammatical mistake in "expected generic arguments" errorsvarkor-2/+2
2018-08-20Add a test for skipping all arguments versus just onevarkor-0/+52
2018-08-20Update new ui testsvarkor-1/+1
2018-08-19Refactor generic argument count check in astconvvarkor-1/+1
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+532