For `dist: focal`, Xenial VM is used instead with `language: rust`

While dist: bionic now works for Rust testing the same problem occurs with dist: focal now. Example:

The problem is even worse now: instead of building with Ubuntu 20.04 Travis CI simply ignores the configuration and builds with Ubuntu 16.04. That is really confusing because the UI shows “focal”, but in reality the worker uses xenial.

Instead of silently running the build with a completely different Ubuntu version could you throw a build error instead? Like “Ubuntu 20.04 focal is not supported yet for the Rust testing”

Sorry about the issue. There was a misconfiguration, which we’ve fixed. This should now work as expected.