# Rust-toolchain file overrides rust version set in matrix

**URL:** <https://travis-ci.community/t/rust-toolchain-file-overrides-rust-version-set-in-matrix/4326>\
**Category:** Rust\
**Tags:** bug\
**Created:** [July 22, 2019, 11:23pm UTC](https://travis-ci.community/t/rust-toolchain-file-overrides-rust-version-set-in-matrix/4326 "2019-07-22T23:23:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOZGIII](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/mozgiii/32/2614_2.png) [@MOZGIII](https://travis-ci.community/u/MOZGIII)\
**Post date:** [July 22, 2019, 11:23pm UTC](https://travis-ci.community/t/rust-toolchain-file-overrides-rust-version-set-in-matrix/4326/1 "2019-07-22T23:23:27Z")

</div>

When a repo contains a `rust-toolchain` file, Travis’ build matrix does not install the requested rust version, and always uses the version defined in the `rust-toolchain` file instead.

Is there a hook I could use (`before_install` or strh like that) to remove the `rust-toolchain` file from the CI workspace before the toolchain installation? Or, maybe there’s other workaround for this issue?
