-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
47 additions
and
46 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
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
14 changes: 3 additions & 11 deletions
14
bevy_asset_loader/tests/ui_with_2d_3d_features/errors_on_multiple_fields.stderr
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,19 +1,11 @@ | ||
error: Unknown attribute | ||
--> $DIR/errors_on_multiple_fields.rs:8:13 | ||
--> tests/ui_with_2d_3d_features/errors_on_multiple_fields.rs:8:13 | ||
| | ||
8 | #[asset(what_is_this)] | ||
| ^^^^^^^^^^^^ | ||
|
||
error: Field is missing asset attributes: texture_atlas/tile_size_y, texture_atlas/columns, texture_atlas/rows | ||
--> $DIR/errors_on_multiple_fields.rs:11:5 | ||
| | ||
11 | / #[asset(texture_atlas(tile_size_x = 100.))] | ||
12 | | #[asset(path = "test.png")] | ||
13 | | second: Handle<TextureAtlas>, | ||
| |________________________________^ | ||
|
||
error: Wrong attribute type. Expected 'integer' | ||
--> $DIR/errors_on_multiple_fields.rs:14:67 | ||
--> tests/ui_with_2d_3d_features/errors_on_multiple_fields.rs:13:67 | ||
| | ||
14 | #[asset(texture_atlas(tile_size_x = 100., tile_size_y = 100., columns = 10., rows = 1))] | ||
13 | #[asset(texture_atlas(tile_size_x = 100., tile_size_y = 100., columns = 10., rows = 1))] | ||
| ^^^^^^^^^^^^^ |
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
12 changes: 2 additions & 10 deletions
12
bevy_asset_loader/tests/ui_with_2d_3d_features/key_and_any_other_attribute.stderr
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,22 +1,14 @@ | ||
error: The 'key' attribute cannot be combined with any other asset defining attributes | ||
--> $DIR/key_and_any_other_attribute.rs:8:5 | ||
--> tests/ui_with_2d_3d_features/key_and_any_other_attribute.rs:8:5 | ||
| | ||
8 | / #[asset(path = "test.ogg", key = "test")] | ||
9 | | test: Handle<AudioSource>, | ||
| |_____________________________^ | ||
|
||
error: The 'key' attribute cannot be combined with any other asset defining attributes | ||
--> $DIR/key_and_any_other_attribute.rs:14:5 | ||
--> tests/ui_with_2d_3d_features/key_and_any_other_attribute.rs:14:5 | ||
| | ||
14 | / #[asset(standard_material)] | ||
15 | | #[asset(key = "test")] | ||
16 | | test: Handle<StandardMaterial>, | ||
| |__________________________________^ | ||
|
||
error: The 'key' attribute cannot be combined with any other asset defining attributes | ||
--> $DIR/key_and_any_other_attribute.rs:21:5 | ||
| | ||
21 | / #[asset(texture_atlas(tile_size_x = 100., tile_size_y = 100., columns = 1, rows = 1))] | ||
22 | | #[asset(key = "test")] | ||
23 | | test: Handle<TextureAtlas>, | ||
| |______________________________^ |
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
24 changes: 23 additions & 1 deletion
24
bevy_asset_loader/tests/ui_with_2d_3d_features/missing_texture_atlas_attributes.stderr
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,7 +1,29 @@ | ||
error: Field is missing asset attributes: texture_atlas/tile_size_x, texture_atlas/tile_size_y, texture_atlas/rows | ||
--> $DIR/missing_texture_atlas_attributes.rs:8:5 | ||
--> tests/ui_with_2d_3d_features/missing_texture_atlas_attributes.rs:8:5 | ||
| | ||
8 | / #[asset(texture_atlas(columns = 2))] | ||
9 | | #[asset(path = "test.png")] | ||
10 | | test: Handle<TextureAtlas> | ||
| |______________________________^ | ||
|
||
error[E0277]: the trait bound `bevy::prelude::TextureAtlas: Asset` is not satisfied | ||
--> tests/ui_with_2d_3d_features/missing_texture_atlas_attributes.rs:10:11 | ||
| | ||
10 | test: Handle<TextureAtlas> | ||
| ^^^^^^^^^^^^^^^^^^^^ the trait `Asset` is not implemented for `bevy::prelude::TextureAtlas` | ||
| | ||
= help: the following other types implement trait `Asset`: | ||
Font | ||
AnimationClip | ||
DynamicScene | ||
Scene | ||
AudioSource | ||
Pitch | ||
bevy::gltf::Gltf | ||
GltfNode | ||
and $N others | ||
note: required by a bound in `bevy::prelude::Handle` | ||
--> /home/niklas/.cargo/git/checkouts/bevy-f7ffde730c324c74/7b5a4ec/crates/bevy_asset/src/handle.rs:125:20 | ||
| | ||
125 | pub enum Handle<A: Asset> { | ||
| ^^^^^ required by this bound in `Handle` |
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
6 changes: 3 additions & 3 deletions
6
bevy_asset_loader/tests/ui_with_2d_3d_features/unknown_attribute.stderr
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,17 +1,17 @@ | ||
error: Unknown attribute | ||
--> $DIR/unknown_attribute.rs:8:13 | ||
--> tests/ui_with_2d_3d_features/unknown_attribute.rs:8:13 | ||
| | ||
8 | #[asset(what_is_this = "I don't know this")] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: Unknown attribute | ||
--> $DIR/unknown_attribute.rs:15:13 | ||
--> tests/ui_with_2d_3d_features/unknown_attribute.rs:15:13 | ||
| | ||
15 | #[asset(paths = "test.ogg")] | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: Unknown attribute | ||
--> $DIR/unknown_attribute.rs:21:27 | ||
--> tests/ui_with_2d_3d_features/unknown_attribute.rs:21:27 | ||
| | ||
21 | #[asset(texture_atlas(what_is_this = 2))] | ||
| ^^^^^^^^^^^^^^^^ |
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
8 changes: 4 additions & 4 deletions
8
bevy_asset_loader/tests/ui_with_2d_3d_features/wrong_attribute_type.stderr
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,17 +1,17 @@ | ||
error: Wrong attribute type. Expected 'str' | ||
--> $DIR/wrong_attribute_type.rs:8:13 | ||
--> tests/ui_with_2d_3d_features/wrong_attribute_type.rs:8:13 | ||
| | ||
8 | #[asset(path = 1)] | ||
| ^^^^^^^^ | ||
|
||
error: Wrong attribute type. Expected 'float' | ||
--> $DIR/wrong_attribute_type.rs:14:27 | ||
--> tests/ui_with_2d_3d_features/wrong_attribute_type.rs:14:27 | ||
| | ||
14 | #[asset(texture_atlas(tile_size_x = 100, tile_size_y = 100., columns = 1, rows = 1))] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: Wrong attribute type. Expected 'integer' | ||
--> $DIR/wrong_attribute_type.rs:21:67 | ||
--> tests/ui_with_2d_3d_features/wrong_attribute_type.rs:20:67 | ||
| | ||
21 | #[asset(texture_atlas(tile_size_x = 100., tile_size_y = 100., columns = "5", rows = 1))] | ||
20 | #[asset(texture_atlas(tile_size_x = 100., tile_size_y = 100., columns = "5", rows = 1))] | ||
| ^^^^^^^^^^^^^ |