You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-LinterRelated to the linter and custom lintsC-BugA bug in the programD-ComplexQuite challenging from either a design or technical perspective. Ask for help!
#![feature(register_tool)]#![register_tool(bevy)]#![deny(bevy::insert_unit_bundle)]use bevy::prelude::*;fnmy_system(mutcommands:Commands){// Error emitted here:
commands.spawn(bundle());// ^^^^^^^^}fnbundle() -> (Name,()){// Error should be emitted here:(Name::new("Foo"),())// ^^}
insert_unit_bundle expects the tuple bundle to be created inside of Commands::spawn(). If it is created outside, it will not recurse into the expression to find the erroneous unit ().
The text was updated successfully, but these errors were encountered:
BD103
added
A-Linter
Related to the linter and custom lints
C-Bug
A bug in the program
D-Complex
Quite challenging from either a design or technical perspective. Ask for help!
labels
Jan 28, 2025
BD103
changed the title
insert_unit_bundle lint cannot find expression of unit if created outside Commands::spawn()insert_unit_bundle lint diagnostic cannot find expression of unit if created outside Commands::spawn()Feb 18, 2025
A-LinterRelated to the linter and custom lintsC-BugA bug in the programD-ComplexQuite challenging from either a design or technical perspective. Ask for help!
insert_unit_bundle
expects the tuple bundle to be created inside ofCommands::spawn()
. If it is created outside, it will not recurse into the expression to find the erroneous unit()
.The text was updated successfully, but these errors were encountered: