BTreeMap: enforce the panic rule imposed by replace
#75071
+51
−53
Merged