When building via cargo --locked test, if the Cargo.lock file is out of date you'll get the message:
error: the lock file /home/.../Cargo.lock needs to be updated but --locked was passed to prevent this
Adding --verbose doesn't yield any additional information.