Sorry for reporting something that has been fixed already.
I tested 30.0.93, and the new function compilation--expand-fn in
compile.el works fine for me. Thank you!