Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #279 from KodrAus/fix/beta-test-output
Fix beta test output
- Loading branch information
Showing
4 changed files
with
103 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Updating compile-fail test outputs | ||
|
||
`bitflags` uses the `trybuild` crate to integration test its macros. Since Rust error messages change frequently enough that `nightly` builds produce spurious failures, we only check the compiler output in `beta` builds. If you run: | ||
|
||
``` | ||
TRYBUILD=overwrite cargo +beta test --all | ||
``` | ||
|
||
it will run the tests and update the `trybuild` output files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
error[E0119]: conflicting implementations of trait `std::clone::Clone` for type `Flags` | ||
error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `Flags` | ||
--> $DIR/copy.rs:3:1 | ||
| | ||
3 | / bitflags! { | ||
4 | | #[derive(Clone, Copy)] | ||
| | ----- first implementation here | ||
| | ---- first implementation here | ||
5 | | struct Flags: u32 { | ||
6 | | const A = 0b00000001; | ||
7 | | } | ||
8 | | } | ||
| |_^ conflicting implementation for `Flags` | ||
| | ||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `Flags` | ||
error[E0119]: conflicting implementations of trait `std::clone::Clone` for type `Flags` | ||
--> $DIR/copy.rs:3:1 | ||
| | ||
3 | / bitflags! { | ||
4 | | #[derive(Clone, Copy)] | ||
| | ---- first implementation here | ||
| | ----- first implementation here | ||
5 | | struct Flags: u32 { | ||
6 | | const A = 0b00000001; | ||
7 | | } | ||
8 | | } | ||
| |_^ conflicting implementation for `Flags` | ||
| | ||
= note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters