dtolnay / dtolnay/trybuild

Support testing under different editions

Open
#307 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
998
Forks
84
PR merge metrics
No merged PRs in 30d

Description

It's occasionally useful to test that that macros work correctly regardless of the call site edition, since plenty of behavior depends on the edition of the main crate rather than the macro crate. Does this seem appropriate for trybuild?

I think I'd be happy if `TestCases` had a method to configure the edition to run tests under. Though I wonder if using the same `.stderr` file for effectively multiple tests is a good idea -- could we maybe compare the output with `.editionN.stderr` if it exists and `.stderr` otherwise?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.