env:
  global:
    - secure: j+t4P29gt7WNQMC9YMguNkoV+jrbO2EkujywpF88MPrrR8t42wrjjUSSzzPXv4vL512ki39vk0qwgkWGL5OdysoU4onCQj9ETCn3rkm9gXPnzhIhr0I8CerxG7HQSGCveMCHgzx5fp0tkN/Qcd0w5kn1+o1gX7NXMw22+yZ4DbI=
install:
  - curl http://static.rust-lang.org/cargo-dist/cargo-nightly-linux.tar.gz |
    sudo tar --strip-components 1 -C /usr -xzf -
  - curl http://www.rust-lang.org/rustup.sh | sudo sh -
script:
  - cargo build
  - make all docs test
after_script:
  - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh

env:
  global:
    - secure: j+t4P29gt7WNQMC9YMguNkoV+jrbO2EkujywpF88MPrrR8t42wrjjUSSzzPXv4vL512ki39vk0qwgkWGL5OdysoU4onCQj9ETCn3rkm9gXPnzhIhr0I8CerxG7HQSGCveMCHgzx5fp0tkN/Qcd0w5kn1+o1gX7NXMw22+yZ4DbI=
install:
  - curl http://www.rust-lang.org/rustup.sh | sudo sh -
script:
  - cargo build
  - make all docs test
after_script:
  - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh

Remove the Cargo installation step for Travis.
Remove the Cargo installation step for Travis.

rustup.sh now does it for us.
