It's worse than formal. It's a hyper-correction. There is no rule that forbids ending a sentence with a preposition. That "style" was fobbed off on people hundreds of years ago by other people who wanted English to be more like Latin.
– RobustoDec 20 '16 at 4:57