Skip to content

regression: from_raw_parts is ambiguous #121606

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

https://crater-reports.s3.amazonaws.com/beta-1.77-3/beta-2024-02-18/reg/rsubox-0.2.1/log.txt

My guess is this will be closed as expected, but should be a conscious decision.

[INFO] [stdout] error[E0659]: `from_raw_parts` is ambiguous
[INFO] [stdout]     --> src/utils.rs:1255:65
[INFO] [stdout]      |
[INFO] [stdout] 1255 | ...   version: OsString::from(&OsStr::from_bytes(unsafe { from_raw_parts(libc_name.assume_init_ref().version.as_ptr() as *const u8, versi...
[INFO] [stdout]      |                                                           ^^^^^^^^^^^^^^ ambiguous name
[INFO] [stdout]      |
[INFO] [stdout]      = note: ambiguous because of multiple glob imports of a name in the same module
[INFO] [stdout] note: `from_raw_parts` could refer to the function imported here
[INFO] [stdout]     --> src/utils.rs:39:5
[INFO] [stdout]      |
[INFO] [stdout] 39   | use std::slice::*;
[INFO] [stdout]      |     ^^^^^^^^^^^^^
[INFO] [stdout]      = help: consider adding an explicit import of `from_raw_parts` to disambiguate
[INFO] [stdout] note: `from_raw_parts` could also refer to the function imported here
[INFO] [stdout]     --> src/utils.rs:40:5
[INFO] [stdout]      |
[INFO] [stdout] 40   | use std::str::*;
[INFO] [stdout]      |     ^^^^^^^^^^^
[INFO] [stdout]      = help: consider adding an explicit import of `from_raw_parts` to disambiguate

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions