Been there done that.
I had:
Passport 1 expired/voided but with valid B1/B2 visa
Passport 2 expired/voided but with valid C1/D visa
Passport 3 valid with no visa
I had the same type of notation in mine (this passport replaces passport #.....) nobody ever looked at that.
As stated above. Airline gets to see your current valid passport and your valid visa.
At the border you hand the officer your valid passport and the expired passport with the valid visa.
I always brought them all but only gave them 2. It's not nearly as uncommon as you might think.