We're seeing this in machine learning right now. Machine learning can replace a lot of the code we used to implement with expert systems or rote heuristics. If you can develop that code (and not many can), you can command unusually high salaries, but there will come a time when developing machine intelligence becomes fairly straightforward itself. In fact, this is already beginning to happen. And then even these coders with their rare skills will start to see their salaries fall.
This has been a consistent pattern throughout the history of software engineering. However, I believe we're going to see salaries fall off a cliff soon, because I believe we're actually quite close to automating good software engineering in general.
It's going to be amusing, as a lot of the best coders feel particularly superior and entitled to their impressive compensations.