File tree Expand file tree Collapse file tree 5 files changed +13
-10
lines changed
ci/docker/x86_64-unknown-linux-gnu Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 12
12
fail-fast : false
13
13
matrix :
14
14
version :
15
- - 1.56 .0 # MSRV
15
+ - 1.63 .0 # MSRV
16
16
- stable
17
17
- beta
18
18
- nightly
29
29
run : TOOLCHAIN=${{ matrix.version }} TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
30
30
31
31
- name : Check MSRV
32
- if : matrix.version == '1.56 .0'
32
+ if : matrix.version == '1.63 .0'
33
33
run : cargo check
34
34
35
35
# FIXME: Some symbols cause multiple definitions error on the same line:
38
38
# /home/runner/work/ctest2/ctest2/target/debug/deps/libtestcrate-a072d428f9532abb.rlib(t1.o):
39
39
# /home/runner/work/ctest2/ctest2/testcrate/src/t1.h:65: first defined here
40
40
# - name: Run tests
41
- # if: matrix.version != '1.56 .0'
41
+ # if: matrix.version != '1.63 .0'
42
42
# run: cargo test --all -- --nocapture
43
43
44
44
- name : Run libc tests
45
- if : matrix.version != '1.56 .0'
45
+ if : matrix.version != '1.63 .0'
46
46
run : sh ./ci/run-docker.sh ${{ matrix.target }}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Automated tests of FFI bindings.
11
11
"""
12
12
include = [" src/lib.rs" , " LICENSE-*" , " README.md" ]
13
13
edition = " 2021"
14
- rust-version = " 1.56 .0"
14
+ rust-version = " 1.63 .0"
15
15
16
16
[dependencies ]
17
17
garando_syntax = " 0.1"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ APIs in Rust match the APIs defined in C.
14
14
15
15
## MSRV (Minimum Supported Rust Version)
16
16
17
- The MSRV is 1.56 .0 because of the transitive dependencies.
17
+ The MSRV is 1.63 .0 because of the transitive dependencies.
18
18
Note that MSRV may be changed anytime by dependencies.
19
19
20
20
## Example
Original file line number Diff line number Diff line change 1
- FROM ubuntu:22.04
1
+ FROM ubuntu:23.10
2
2
RUN apt-get update
3
3
RUN apt-get install -y --no-install-recommends \
4
4
gcc libc6-dev ca-certificates linux-headers-generic git
Original file line number Diff line number Diff line change @@ -1716,7 +1716,8 @@ impl<'a> Generator<'a> {
1716
1716
fn __test_static_{name}() -> {ty};
1717
1717
}}
1718
1718
unsafe {{
1719
- same(*(&{name} as *const _ as *const {ty}) as usize,
1719
+ // We must use addr_of! here because of https://github.com/rust-lang/rust/issues/114447
1720
+ same(*(std::ptr::addr_of!({name}) as *const {ty}) as usize,
1720
1721
__test_static_{name}() as usize,
1721
1722
"{name} static");
1722
1723
}}
@@ -1760,7 +1761,8 @@ impl<'a> Generator<'a> {
1760
1761
fn __test_static_{name}() -> *{mutbl} {ty};
1761
1762
}}
1762
1763
unsafe {{
1763
- same(&{name} as *const _ as usize,
1764
+ // We must use addr_of! here because of https://github.com/rust-lang/rust/issues/114447
1765
+ same(std::ptr::addr_of!({name}) as usize,
1764
1766
__test_static_{name}() as usize,
1765
1767
"{name} static");
1766
1768
}}
@@ -1804,7 +1806,8 @@ impl<'a> Generator<'a> {
1804
1806
fn __test_static_{name}() -> *{mutbl} {ty};
1805
1807
}}
1806
1808
unsafe {{
1807
- same(&{name} as *const _ as usize,
1809
+ // We must use addr_of! here because of https://github.com/rust-lang/rust/issues/114447
1810
+ same(std::ptr::addr_of!({name}) as usize,
1808
1811
__test_static_{name}() as usize,
1809
1812
"{name} static");
1810
1813
}}
You can’t perform that action at this time.
0 commit comments