Skip to content

Commit 331f2e3

Browse files
committed
chore: add comment why we disable require_annotations
1 parent 7a81808 commit 331f2e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bevy_lint/tests/ui_cargo.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ fn main() {
3535
..Config::cargo(Path::new("tests/ui-cargo"))
3636
};
3737

38-
let defaults = config.comment_defaults.base();
39-
defaults.require_annotations = None.into();
38+
// We haven't found a way to get error annotations like `#~v ERROR: msg` to work, so we disable
39+
// the requirement for them.
40+
config.comment_defaults.base().require_annotations = None.into();
4041

4142
// Create the `#@exit-status: CODE` annotation. This can be used to ensure a UI test exits with
4243
// a specific exit code (e.g. `bevy_lint` exits with code 101 when a denied lint is found).

0 commit comments

Comments
 (0)