summary refs log tree commit diff
path: root/src/test/ui-fulldeps/session-derive-errors.rs
AgeCommit message (Collapse)AuthorLines
2021-06-07ignore ui-fulldeps/session-derive-errors.rs on beta and stablePietro Albini-0/+6
The session-derive-errors test ensures the internal SessionDiagnostic derive macro outputs the right error messages when misused. The macro relies on the proc_macro2 crate though, which changes its span behavior depending on whether the channel is nightly or not. This caused test failures when bumping the channel from nightly to beta/stable. Since SessionDiagnostic is internal-only we don't care about its diagnostics quality outside of nightly, as the compiler itself is developed on nightly. Thus the easiest solution is to ignore that test on the beta and stable channels. This also implements `// only-{channel}` and `// ignore-{channel}` in compiletest to properly support the change.
2020-09-01Add SessionDiagnostic derive macro.jumbatm-0/+260
Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de>