Skip to content

Commit e69f4f7

Browse files
committed
Improve bevy output
1 parent 9e0af0e commit e69f4f7

File tree

3 files changed

+46
-44
lines changed

3 files changed

+46
-44
lines changed

test_cases/Cargo.lock

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test_cases/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ chumsky = "0.8.0"
1212
uom = "0.33.0"
1313
axum = "0.5.11"
1414
axum-macros = "0.2.3"
15-
bevy = {version = "0.9.0-dev"}
15+
bevy = {version = "0.9.0-dev", features = ["nightly-error-messages"]}
1616
easy-ml = "1.8.1"
1717
typed-builder = "0.10.0"
1818

1919
[patch.crates-io]
2020
diesel = { git = "https://github.com/weiznich/diesel", rev = "958391a3e793e409d0a925e0cc2317726c2d84b2"}
21-
bevy = {git = "https://github.com/bevyengine/bevy"}
21+
bevy = {git = "https://github.com/weiznich/bevy", rev = "7adcdd2fd33fa935d53881f248fd1b7c2fbe39b8"}

test_cases/tests/bevy/system_mismatch.stderr

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ error[E0277]: the trait bound `MyResource: Resource` is not satisfied
44
52 | my_res: Res<MyResource>,
55
| ^^^^^^^^^^^^^^^ the trait `Resource` is not implemented for `MyResource`
66
|
7+
= note: consider adding `#[derive(bevy::Resource)]` to `MyResource`
78
= help: the following other types implement trait `Resource`:
89
AmbientLight
910
AppTypeRegistry
@@ -15,17 +16,18 @@ error[E0277]: the trait bound `MyResource: Resource` is not satisfied
1516
ClearColor
1617
and 80 others
1718
note: required by a bound in `bevy::prelude::Res`
18-
--> /home/weiznich/.cargo/git/checkouts/bevy-f7ffde730c324c74/3d194a2/crates/bevy_ecs/src/system/system_param.rs:268:23
19+
--> /home/weiznich/.cargo/git/checkouts/bevy-daf8fe04ec93bc1c/7adcdd2/crates/bevy_ecs/src/system/system_param.rs:272:23
1920
|
20-
268 | pub struct Res<'w, T: Resource> {
21+
272 | pub struct Res<'w, T: Resource> {
2122
| ^^^^^^^^ required by this bound in `bevy::prelude::Res`
2223

23-
error[E0277]: the trait bound `A: WorldQuery` is not satisfied
24+
error[E0277]: Using a `WorldQuery` object as parameter to `Query` requires the usage of a reference
2425
--> tests/bevy/system_mismatch.rs:67:45
2526
|
2627
67 | fn missing_reference_in_query_system(query: Query<A, With<B>>) {}
27-
| ^^^^^^^^^^^^^^^^^ the trait `WorldQuery` is not implemented for `A`
28+
| ^^^^^^^^^^^^^^^^^ consider using `& A` here
2829
|
30+
= help: the trait `WorldQuery` is not implemented for `A`
2931
= help: the following other types implement trait `WorldQuery`:
3032
&'__w mut T
3133
&T
@@ -37,7 +39,7 @@ error[E0277]: the trait bound `A: WorldQuery` is not satisfied
3739
(F0, F1, F2, F3, F4, F5)
3840
and 50 others
3941
note: required by a bound in `bevy::prelude::Query`
40-
--> /home/weiznich/.cargo/git/checkouts/bevy-f7ffde730c324c74/3d194a2/crates/bevy_ecs/src/system/query.rs:252:37
42+
--> /home/weiznich/.cargo/git/checkouts/bevy-daf8fe04ec93bc1c/7adcdd2/crates/bevy_ecs/src/system/query.rs:252:37
4143
|
4244
252 | pub struct Query<'world, 'state, Q: WorldQuery, F: WorldQuery = ()> {
4345
| ^^^^^^^^^^ required by this bound in `bevy::prelude::Query`

0 commit comments

Comments
 (0)