Skip to content

Commit 94f4692

Browse files
authored
[tools/update-ui-test-files.sh] Better support MSRV (#2576)
1 parent f69050c commit 94f4692

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/update-ui-test-files.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ set -e
1414

1515
TRYBUILD=overwrite ./cargo.sh +nightly test ui --test trybuild -p zerocopy --all-features
1616
TRYBUILD=overwrite ./cargo.sh +stable test ui --test trybuild -p zerocopy --features=__internal_use_only_features_that_work_on_stable
17-
TRYBUILD=overwrite ./cargo.sh +msrv test ui --test trybuild -p zerocopy --features=__internal_use_only_features_that_work_on_stable
17+
# For developers using Rust Analyzer, it's often the case that Rust Analyzer has
18+
# chosen versions of dependencies (especially syn) which have an MSRV higher than
19+
# our own. Doing `rm Cargo.lock` here permits `./cargo.sh +msrv` to choose its own
20+
# versions of these crates that have a lower MSRV.
21+
rm Cargo.lock && TRYBUILD=overwrite ./cargo.sh +msrv test ui --test trybuild -p zerocopy --features=__internal_use_only_features_that_work_on_stable
1822

1923
TRYBUILD=overwrite ./cargo.sh +all test ui --test trybuild -p zerocopy-derive

0 commit comments

Comments
 (0)