Skip to content

build: Use `OUT_DIR` for test compilation output

894e46f
Select commit
Loading
Failed to load commit list.
Open

build: Use OUT_DIR for test compilation output #1526

build: Use `OUT_DIR` for test compilation output
894e46f
Select commit
Loading
Failed to load commit list.
Cirrus CI / stable x86_64-unknown-freebsd-14 failed Sep 26, 2025 in 37s

Task Summary

Instruction test failed in 00:19

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:03 clone
✅ 00:13 setup
❌ 00:19 test

    = note: multiple `impl`s satisfying `CStr: PartialEq<_>` found in the following crates: `alloc`, `core`:
            - impl PartialEq for CStr;
            - impl PartialEq<&CStr> for CStr;
            - impl PartialEq<CString> for CStr;
            - impl PartialEq<Cow<'_, CStr>> for CStr;
    = note: required for `&CStr` to implement `PartialEq<&_>`
help: consider specifying the generic argument
    |
131 |     assert_eq!(cstr!("hello"), Borrow::<Borrowed>::borrow(&t.into_c_str().unwrap()));
    |                                      ++++++++++++

error[E0283]: type annotations needed
   --> tests/path/arg.rs:136:32
    |
136 |     assert_eq!(cstr!("43110"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
    |     ---------------------------^^^^^^^^^^^^^^-----------------------------
    |     |                          |
    |     |                          cannot infer type of the type parameter `Borrowed` declared on the trait `Borrow`
    |     type must be known at this point
    |
    = note: multiple `impl`s satisfying `CStr: PartialEq<_>` found in the following crates: `alloc`, `core`:
            - impl PartialEq for CStr;
            - impl PartialEq<&CStr> for CStr;
            - impl PartialEq<CString> for CStr;
            - impl PartialEq<Cow<'_, CStr>> for CStr;
    = note: required for `&CStr` to implement `PartialEq<&_>`
help: consider specifying the generic argument
    |
136 |     assert_eq!(cstr!("43110"), Borrow::<Borrowed>::borrow(&t.as_cow_c_str().unwrap()));
    |                                      ++++++++++++

error[E0283]: type annotations needed
   --> tests/path/arg.rs:138:32
    |
138 |     assert_eq!(cstr!("43110"), Borrow::borrow(&t.into_c_str().unwrap()));
    |     ---------------------------^^^^^^^^^^^^^^---------------------------
    |     |                          |
    |     |                          cannot infer type of the type parameter `Borrowed` declared on the trait `Borrow`
    |     type must be known at this point
    |
    = note: multiple `impl`s satisfying `CStr: PartialEq<_>` found in the following crates: `alloc`, `core`:
            - impl PartialEq for CStr;
            - impl PartialEq<&CStr> for CStr;
            - impl PartialEq<CString> for CStr;
            - impl PartialEq<Cow<'_, CStr>> for CStr;
    = note: required for `&CStr` to implement `PartialEq<&_>`
help: consider specifying the generic argument
    |
138 |     assert_eq!(cstr!("43110"), Borrow::<Borrowed>::borrow(&t.into_c_str().unwrap()));
    |                                      ++++++++++++

For more information about this error, try `rustc --explain E0283`.
error: could not compile `rustix` (test "path") due to 80 previous errors
warning: build failed, waiting for other jobs to finish...

Exit status: 101