summary refs log tree commit diff
path: root/src/test/ui/enum
AgeCommit message (Collapse)AuthorLines
2021-02-17Rollup merge of #79981 - camelid:overflowing_literals-inference-error, r=lcnrGuillaume Gomez-0/+4
Add 'consider using' message to overflowing_literals Fixes #79744. Ironically, the `overflowing_literals` handler for binary or hex already had this message! You would think it would be the other way around :) cc ```@scottmcm```
2021-02-13Improve error and help messagesCamelid-4/+4
2020-12-26update testsBastian Kauschke-32/+29
2020-12-12Add 'consider using' message to overflowing_literalsCamelid-0/+4
Ironically, the overflowing_literals handler for binary or hex already had this message! You would think it would be the other way around :)
2020-05-07Add some tests for #67945Yuki Okushi-0/+59
2020-04-11rustc: Add a warning count upon completionRoccoDev-0/+2
2020-03-15Add more context to the literal overflow messageYI-0/+7
2020-01-24Normalise notes with the/isvarkor-2/+2
2019-12-06accept union inside enum if not followed by identifierKamlesh Kumar-0/+13
2019-11-23Add error reporting on nested keywords inside 'enum' definitionJanusz Marcinkiewicz-0/+34
2019-10-16update ui testsGuillaume Gomez-0/+1
2019-04-30Place types inside backticksvarkor-8/+8
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+0
2019-03-11Update testsVadim Petrochenkov-13/+13
2018-12-25Remove licensesMark Rousskov-110/+19
2018-12-25Auto merge of #57088 - euclio:non-camel-case-early-lint, r=estebankbors-1/+3
make non_camel_case_types an early lint This allows us to catch these kinds of style violations much earlier, as evidenced by the large number of tests that had to be updated for this change.
2018-12-24make non_camel_case_types an early lintAndy Russell-1/+3
2018-12-22enum type instead of variant suggestion unificationZack M. Davis-1/+1
Weirdly, we were deciding between a help note and a structured suggestion based on whether the import candidate span was a dummy—but we weren't using that span in any case! The dummy-ness of the span (which appears to be a matter of this-crate vs. other-crate definition) isn't the right criterion by which we should decide whether it's germane to mention that "there is an enum variant"; instead, let's use the someness of `def` (which is used as the `has_unexpected_resolution` argument to `error_code`). Since `import_candidate_to_paths` has no other callers, we are free to stop returning the span and rename the function. By using `span_suggestions_`, we leverage the max-suggestions output limit already built in to the emitter, thus resolving #56028. In the matter of message wording, "you can" is redundant (and perhaps too informal); prefer the imperative.
2018-11-18resolve: Tweak some articles in ambiguity diagnosticsVadim Petrochenkov-1/+1
2018-08-31cleanup: Add main functions to some UI testsVadim Petrochenkov-7/+3
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+445