File tree 2 files changed +24
-2
lines changed
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,34 @@ jobs:
92
92
- name : Test
93
93
run : bash ./ci.sh
94
94
95
+ fmt :
96
+ name : check formatting (ignored by bors)
97
+ runs-on : ubuntu-latest
98
+ steps :
99
+ - uses : actions/checkout@v2
100
+ - name : Install latest nightly
101
+ uses : actions-rs/toolchain@v1
102
+ with :
103
+ toolchain : nightly
104
+ components : rustfmt
105
+ default : true
106
+ - name : Check formatting (miri)
107
+ uses : actions-rs/cargo@v1
108
+ with :
109
+ command : fmt
110
+ args : --all -- --check
111
+ - name : Check formatting (cargo-miri)
112
+ uses : actions-rs/cargo@v1
113
+ with :
114
+ command : fmt
115
+ args : --manifest-path cargo-miri/Cargo.toml --all -- --check
116
+
95
117
# These jobs doesn't actually test anything, but they're only used to tell
96
118
# bors the build completed, as there is no practical way to detect when a
97
119
# workflow is successful listening to webhooks only.
98
120
#
99
121
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
122
+ # (`fmt` is deliberately not listed, we want bors to ignore it.)
100
123
end-success :
101
124
name : bors build finished
102
125
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls<'_> {
20
20
compiler. session ( ) . abort_if_errors ( ) ;
21
21
22
22
queries. global_ctxt ( ) . unwrap ( ) . peek_mut ( ) . enter ( |tcx| {
23
- let ( entry_def_id, _) =
24
- tcx. entry_fn ( ( ) ) . expect ( "no main or start function found" ) ;
23
+ let ( entry_def_id, _) = tcx. entry_fn ( ( ) ) . expect ( "no main or start function found" ) ;
25
24
26
25
self . bencher . iter ( || {
27
26
let config = miri:: MiriConfig :: default ( ) ;
You can’t perform that action at this time.
0 commit comments