File tree 3 files changed +22
-9
lines changed
3 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ name: Check binary size
6
6
7
7
on :
8
8
pull_request_target :
9
- branches :
10
- - master
9
+ # HACK(jubilee): something broke the distributed LLVM libso and I don't know what.
10
+ branches : []
11
+ # - master
11
12
12
13
# Both the "measure" and "report" jobs need to know this.
13
14
env :
Original file line number Diff line number Diff line change @@ -26,14 +26,13 @@ jobs:
26
26
rust : stable
27
27
- os : macos-latest
28
28
rust : nightly
29
- # Note that these are on nightly due to rust-lang/rust#63700 not being
30
- # on stable yet
29
+ # HACK(jubilee): 1.77 broke backtraces on Windows lol
31
30
- os : windows-latest
32
- rust : stable -x86_64-msvc
31
+ rust : 1.76.0 -x86_64-msvc
33
32
- os : windows-latest
34
- rust : stable -i686-msvc
33
+ rust : 1.76.0 -i686-msvc
35
34
- os : windows-latest
36
- rust : stable -x86_64-gnu
35
+ rust : 1.76.0 -x86_64-gnu
37
36
steps :
38
37
- uses : actions/checkout@v3
39
38
with :
@@ -234,7 +233,13 @@ jobs:
234
233
235
234
msrv :
236
235
name : MSRV
237
- runs-on : ubuntu-20.04
236
+ runs-on : ${{ matrix.os }}
237
+ strategy :
238
+ fail-fast : false
239
+ matrix :
240
+ include :
241
+ - os : ubuntu-20.04
242
+ - os : windows-latest
238
243
steps :
239
244
- uses : actions/checkout@v3
240
245
with :
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ use core::mem;
26
26
use core:: ptr;
27
27
use core:: slice;
28
28
29
+ // FIXME: replace with ptr::from_ref once MSRV is high enough
30
+ #[ inline( always) ]
31
+ #[ must_use]
32
+ const fn ptr_from_ref < T : ?Sized > ( r : & T ) -> * const T {
33
+ r
34
+ }
35
+
29
36
// Store an OsString on std so we can provide the symbol name and filename.
30
37
pub struct Symbol < ' a > {
31
38
name : * const [ u8 ] ,
@@ -257,7 +264,7 @@ unsafe fn do_resolve(
257
264
258
265
let len = len as usize ;
259
266
260
- filename = Some ( ptr :: from_ref ( slice:: from_raw_parts ( base, len) ) ) ;
267
+ filename = Some ( ptr_from_ref ( slice:: from_raw_parts ( base, len) ) ) ;
261
268
}
262
269
263
270
cb ( & super :: Symbol {
You can’t perform that action at this time.
0 commit comments