Skip to content

Commit 9c56a21

Browse files
committed
Fix ui tests in CI which now print snippets from standard library
1 parent bbc25f7 commit 9c56a21

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
- uses: dtolnay/rust-toolchain@master
4747
with:
4848
toolchain: ${{matrix.rust}}
49+
components: rust-src
4950
- name: Determine test suite subset
5051
# Our Windows and macOS jobs are the longest running, so exclude the
5152
# relatively slow compiletest from them to speed up end-to-end CI time,
@@ -83,6 +84,8 @@ jobs:
8384
with:
8485
submodules: true
8586
- uses: dtolnay/rust-toolchain@stable
87+
with:
88+
components: rust-src
8689
- uses: dtolnay/install-buck2@latest
8790
- name: Install lld
8891
run: sudo apt-get install lld
@@ -124,7 +127,9 @@ jobs:
124127
timeout-minutes: 45
125128
steps:
126129
- uses: actions/checkout@v3
127-
- uses: dtolnay/rust-toolchain@clippy
130+
- uses: dtolnay/rust-toolchain@nightly
131+
with:
132+
components: clippy, rust-src
128133
- run: cargo clippy --workspace --tests -- -Dclippy::all
129134

130135
clang-tidy:

rust-toolchain.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
components = ["rust-src"]

0 commit comments

Comments
 (0)