-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rust-analyzer error in example bounding 2d #17420
base: main
Are you sure you want to change the base?
Fix rust-analyzer error in example bounding 2d #17420
Conversation
I'd like a second verification of the error before we merge this. This is quite odd: this flavor of error should 100% be caught in CI. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I can reproduce the issue with Rust Analyzer, but I don't think this PR should be merged. It introduces unneeded syntax, and hides the problem |
@mockersf That's true, after I switched the tag to 0.15.1 and rustc to 1.82.0, then rust analyze error prompt disappeared After I diving deep into this issue(main branch with rustc 1.84.0), I found RA know the query type is for (shape, transform) in query.iter() { |
Can you please bisect it? |
@BenjaminBrienen I'm not understand what's your meaning of bisect. So I just make a simple test to see in which case this error will occure
not only this error. other example like anisotropy and clearcoat has no such field error. and this error is not same as error in bounding 2d. |
|
@BenjaminBrienen PS D:\Projects\Github Repostries\bevy> rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.84.0 (9fc6b4312 2025-01-07)`
PS D:\Projects\Github Repostries\bevy> git bisect start
HEAD is now at 1030a99b8 Release 0.15.1
status: waiting for both good and bad commits
PS D:\Projects\Github Repostries\bevy> git bisect good 1030a99b8e2680a7e696d6433b79f5671768231c
status: waiting for bad commit, 1 good commit known
PS D:\Projects\Github Repostries\bevy> git bisect bad b66c3ceb0ee39374ff1759ffb1b5bee2e4b93e99
Bisecting: a merge base must be tested
[fac0b34b20d18dd3d539c28f98ebe92829abe394] remove reference to missing file in bevy_remote cargo.toml (#16057)
PS D:\Projects\Github Repostries\bevy> git bisect good
Bisecting: 312 revisions left to test after this (roughly 8 steps)
[56688b387c04a06697a94307fe077af3da8132d6] Fix registering all reflection types that are components as reflection components (#16800)
PS D:\Projects\Github Repostries\bevy> git bisect bad
Bisecting: 155 revisions left to test after this (roughly 7 steps)
[d9282486e3d96af0c3067d55cf9f4fef0b977b5b] Dont enable bevy_remote by default (#16464)
PS D:\Projects\Github Repostries\bevy> git bisect good
Bisecting: 77 revisions left to test after this (roughly 6 steps)
[e763b7159106a57c3de645665c3acf0c8c2b5b5a] picking: disable raycast backface culling for Mesh2d (#16657)
PS D:\Projects\Github Repostries\bevy> git bisect good
Bisecting: 38 revisions left to test after this (roughly 5 steps)
[3188e5af619577a2b5d8192d9cc4154ebe9e2527] Batch skinned meshes on platforms where storage buffers are available. (#16599)
PS D:\Projects\Github Repostries\bevy> git bisect good
Bisecting: 19 revisions left to test after this (roughly 4 steps)
[b2d3371814497b02d3b95ab8fff2ea4a60739579] Event source location tracking (#16778)
PS D:\Projects\Github Repostries\bevy> git bisect good
Bisecting: 9 revisions left to test after this (roughly 3 steps)
[c14135d1500850fe7d37d59f2e2736069f3dfd46] Support `SystemInput` tuples up to 8 elements (#16814)
PS D:\Projects\Github Repostries\bevy> git bisect good
Bisecting: 4 revisions left to test after this (roughly 2 steps)
[622ca0d17be2c777557461f6ff287a54d208fe66] Fix stale comment on `LoadContext::finish`. (#16821)
PS D:\Projects\Github Repostries\bevy> git bisect bad
Bisecting: 2 revisions left to test after this (roughly 1 step)
[760d0a31003c70ed6017b2a70059a76d9b268425] Use one `BevyManifest` instance in proc macros (#16766)
PS D:\Projects\Github Repostries\bevy> git bisect bad
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[73a66d6bd8e3d21b928f2a31f1aff5c9fb95a564] doc: fix camera link (#16827) |
Awesome, thanks! |
Objective
the rust-analyzer error in example bounding 2d
the
r
will cause expected &{unknown}, found RectangleSolution
this error will occure in many place in this example
for match adding ref will solve this and pass lint