add broken diff_code implementation in rust.