Your example is more like rewriting GCC in Rust and then claiming it no longer needs to be GPL. What Google did would be like writing a set of stock superhero character descriptions and then releasing them under a Creative Commons license so that other movie writers could use them in their movies.