Skip to content

text_example_rs - cast check needs structural norm #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
compiler-errors opened this issue May 6, 2025 · 1 comment · Fixed by rust-lang/rust#140713
Closed

text_example_rs - cast check needs structural norm #203

compiler-errors opened this issue May 6, 2025 · 1 comment · Fixed by rust-lang/rust#140713
Assignees
Labels
from-crater A regression found via a crater run, not part of our test suite

Comments

@compiler-errors
Copy link
Member

https://crater-reports.s3.amazonaws.com/pr-133502-11/try%2328f13ad7c79d80decb5a3d54595a8b4105f397a3/gh/BsoftLimited.text_example_rs/log.txt

trait Mirror {
    type Assoc: ?Sized;
}
impl<T: ?Sized> Mirror for T {
    type Assoc = T;
}

struct W<'a>(&'a <[f32; 0] as Mirror>::Assoc);

fn foo(x: W<'_>) -> *const f32 {
    x.0 as *const f32
}

fn main() {}
@compiler-errors compiler-errors self-assigned this May 6, 2025
@lcnr lcnr added the from-crater A regression found via a crater run, not part of our test suite label May 6, 2025
@lcnr lcnr moved this from unknown to in progress in -Znext-solver=globally May 6, 2025
jhpratt added a commit to jhpratt/rust that referenced this issue May 7, 2025
…lcnr

Structurally resolve in `check_ref_cast` in new solver

Fixes rust-lang/trait-system-refactor-initiative#203

r? lcnr
rust-timer added a commit to rust-lang-ci/rust that referenced this issue May 7, 2025
Rollup merge of rust-lang#140713 - compiler-errors:check_ref_cast, r=lcnr

Structurally resolve in `check_ref_cast` in new solver

Fixes rust-lang/trait-system-refactor-initiative#203

r? lcnr
@lcnr
Copy link
Contributor

lcnr commented May 8, 2025

fixed by rust-lang/rust#140713

@lcnr lcnr moved this from in progress to done in -Znext-solver=globally May 8, 2025
@lcnr lcnr closed this as completed by moving to done in -Znext-solver=globally May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from-crater A regression found via a crater run, not part of our test suite
Projects
Development

Successfully merging a pull request may close this issue.

2 participants