I know many people who add a couple of gallons of gasoline to their diesel fuel now and then because they claim it "cleans out" the carbon buildup of soot in the prechamber and combustion chamber.
I don't know if that is true or not but I do know that it seems to do them no harm.
We have had many cars over the years that got their diesel tank filled with gasoline by mistake. Including mine
After being drained and replaced with diesel, they seemed to suffer no damage.