about summary refs log tree commit diff
path: root/src/test/ui/unreachable
AgeCommit message (Collapse)AuthorLines
2019-10-15Organize `never_type` testsMazdak Farrokhzad-297/+0
Also move {run-fail -> ui}/never_type
2019-09-21Do not trigger unreachable lint in async body and Use span labelsEsteban Küber-44/+24
2019-09-18Point at original span when emitting unreachable lintAaron Hill-0/+38
Fixes #64590 When we emit an 'unreachable' lint, we now add a note pointing at the expression that actually causes the code to be unreachable (e.g. `return`, `break`, `panic`). This is especially useful when macros are involved, since a diverging expression might be hidden inside of a macro invocation.
2019-09-07Reduce span to function name in unreachable callsShiqing-6/+4
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-05-23Update unreachable loop patterns testvarkor-1/+8
2019-04-22Remove double trailing newlinesvarkor-3/+0
2019-03-11Update testsVadim Petrochenkov-8/+8
2018-12-25Remove licensesMark Rousskov-85/+15
2018-11-29Fix broken testsvarkor-6/+18
2018-11-07Removed `#[rustc_error]` from tests that are all `// compile-pass`.Felix S. Klock II-17/+4
I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.)
2018-10-28resolve: More precise spans for privacy errorsVadim Petrochenkov-2/+2
2018-10-18Warning about unreachable arms after matching on a diverging typevarkor-6/+18
2018-10-16Allow explicit matches on ! without warningvarkor-0/+40
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+296