bevyengine / bevyengine/bevy

`BTreeMap` is missing `register_type_dependencies` in `GetTypeRegistration`

Closed Beginner friendly
#25,771 1 comment 0 reactions 0 assignees View on GitHub
A-Reflection C-Bug D-Trivial S-Ready-For-Implementation X-Uncontroversial
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version and features

Main

## What you did

https://discord.com/channels/691052431525675048/1002362493634629796/1548772142659932184

## What went wrong

No impl for `register_type_dependencies` in `GetTypeRegistration`, which is required to forward Reflect registration to foreign and generic types. Such as `BTreeMap`.

## Additional information

`HashMap` already contains this method impl, which is why it works but `BTreeMap` doesnt.

Contributor guide

Open the contributing guide

Research direction

Locate the Rust implementation of GetTypeRegistration for BTreeMap and compare it with the existing HashMap implementation. Add the missing register_type_dependencies behavior and verify that Reflect registration works for foreign and generic K/V types.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.