Auto merge of #31038 - gereeter:btree-panic, r=Gankro
Auto merge of #31038 - gereeter:btree-panic, r=Gankro

…ving elements into it.

Fixes #31029.

GBGamer/rust,GBGamer/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,graydon/rust,graydon/rust