Skip to content

regression: ~const not implemented #105105

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

This is a regression (the code used to get documented on stable). It also seems surprising that we're leaking ~const into stable error messages (presumably a T-compiler problem).

[INFO] [stdout] error[E0277]: the trait bound `sundries::int64: std::convert::From<{integer}>` is not satisfied
[INFO] [stdout]    --> src/assembly.rs:107:11
[INFO] [stdout]     |
[INFO] [stdout] 107 |     r7 <- 1;
[INFO] [stdout]     |           ^ the trait `~const std::convert::From<{integer}>` is not implemented for `sundries::int64`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/sundries.rs:72:55
[INFO] [stdout]     |
[INFO] [stdout] 72  |             LoadImmediate{destination: $d, value: $s1.into()}; => $($stmt)*)
[INFO] [stdout]     |                                                       ---- required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout] note: the trait `std::convert::From<{integer}>` is implemented for `sundries::int64`, but that implementation is not `const`
[INFO] [stdout]    --> src/assembly.rs:107:11
[INFO] [stdout]     |
[INFO] [stdout] 107 |     r7 <- 1;
[INFO] [stdout]     |           ^
[INFO] [stdout]     = note: required for `{integer}` to implement `~const std::convert::Into<sundries::int64>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc 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