@@ -114,6 +114,12 @@ jobs:
114114 mkdir -p runtime/grammars/sources
115115 tar xJf grammars/grammars.tar.xz -C runtime/grammars/sources
116116
117+ # The rust-toolchain action ignores rust-toolchain.toml files.
118+ # Removing this before building with cargo ensures that the rust-toolchain
119+ # is considered the same between installation and usage.
120+ - name: Remove the rust-toolchain.toml file
121+ run: rm rust-toolchain.toml
122+
117123 - name: Install ${{ matrix.rust }} toolchain
118124 uses: dtolnay/rust-toolchain@master
119125 with: