about summary refs log tree commit diff
path: root/src/test/ui/c-variadic
AgeCommit message (Collapse)AuthorLines
2021-01-13Update tests for extern block lintingMark Rousskov-6/+6
2020-10-15ensure arguments are included in count mismatch spanAndy Russell-6/+12
2020-10-15fix off-by-one in parameter spansAndy Russell-1/+1
2020-09-02pretty: trim paths of unique symbolsDan Aloni-17/+17
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-06-04test: ui: skip tests which aren't appropriate for RISC-VTom Eccles-11/+12
2020-05-22Update testsMatthew Jasper-322/+102
2020-04-22Tweak wordingEsteban Küber-1/+1
2020-04-22Tweak `'static` suggestion codeEsteban Küber-1/+5
Fix #71196.
2020-02-11On mismatched argument count point at argumentsEsteban Küber-6/+10
2020-01-12Get rid of RegionErrorNamingContextMark Mansi-2/+2
2019-12-12More c-variadic errors as semantic restrictions.Mazdak Farrokhzad-2/+2
2019-12-03Include a span in more `expected...found` notesAaron Hill-3/+7
In most places, we use a span when emitting `expected...found` errors. However, there were a couple of places where we didn't use any span, resulting in hard-to-interpret error messages. This commit attaches the relevant span to these notes, and additionally switches over to using `note_expected_found` instead of manually formatting the message
2019-11-25Auto merge of #66682 - estebank:fn-type-err, r=davidtwcobors-4/+4
Highlight parts of fn in type errors When a type error arises between two fn items, fn pointers or tuples, highlight only the differing parts of each. Examples: <img width="699" alt="" src="https://user-images.githubusercontent.com/1606434/69487597-ab561600-0e11-11ea-9b4e-d4fd9e91d5dc.png"> <img width="528" alt="" src="https://user-images.githubusercontent.com/1606434/69487207-9033d800-0e0a-11ea-93e3-8c4d002411a5.png"> <img width="468" alt="" src="https://user-images.githubusercontent.com/1606434/69487208-9033d800-0e0a-11ea-92e3-2b2cee120335.png"> <img width="775" alt="" src="https://user-images.githubusercontent.com/1606434/69487209-9033d800-0e0a-11ea-9e68-7f6ed5c8cb08.png">
2019-11-23Highlight parts of fn in type errorsEsteban Küber-4/+4
When a type error arises between two fn items, fn pointers or tuples, highlight only the differing parts of each.
2019-11-21Point at type in `let` assignment on type errorsEsteban Küber-2/+6
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-14/+14
2019-10-11Print lifetimes with backticksYuki Okushi-1/+1
2019-10-07update ui testsGuillaume Gomez-1/+2
2019-09-28rustc: rely on c_variadic == true instead of CVarArgs in HIR/Ty fn signatures.Eduard-Mihai Burtescu-154/+100
2019-09-28rustc: don't store a lifetime in hir::TyKind::CVarArgs.Eduard-Mihai Burtescu-8/+8
2019-09-12update testsMark Mansi-9/+9
2019-08-12syntax: account for CVarArgs being in the argument list.Eduard-Mihai Burtescu-0/+14
2019-07-14Make VaListImpl<'f> invariant over the 'f lifetimeAndrei Homescu-44/+116
2019-06-17Expose `VaListImpl` as the Rust equivalent of `__va_list_tag` and implement ↵Andrei Homescu-56/+97
Clone for it.
2019-05-12Remove feature(nll) when compare mode is sufficientMatthew Jasper-104/+0
2019-05-12Change compare mode to use -Zborrowck=mirMatthew Jasper-0/+81
2019-04-22review comments: deduplicate testsEsteban Küber-105/+0
2019-04-22Continue evaluating after item-type checkingEsteban Küber-14/+85
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-3/+3
2019-03-22ffi: rename VaList::copy to VaList::with_copyDan Robertson-19/+19
Rename `VaList::copy` to `VaList::with_copy`.
2019-03-11Update testsVadim Petrochenkov-55/+55
2019-02-27Rename variadic to c_variadicDan Robertson-4/+4
Function signatures with the `variadic` member set are actually C-variadic functions. Make this a little more explicit by renaming the `variadic` boolean value, `c_variadic`.
2019-02-27Add c_variadic language feature itemDan Robertson-0/+1
2019-02-27Support defining C compatible variadic functionsDan Robertson-0/+516
Add support for defining C compatible variadic functions in unsafe rust with extern "C".