-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
matches! problem with edition 2021 #84429
Comments
I believe this was caused by #83468 cc @hi-rustin There seems to be some edition hygiene problem here. The This makes it impossible to test 2021 on any project that uses the |
Yes, The pat2021 matcher will match new patterns, which include the | character. @nikomatsakis How do you think this can be fixed? Do we need to adjust matches! Or is there another way? |
I suppose this should be fixed in the compiler by correcting the edition hygiene? I don't think it should be fixed by adjusting @rustbot claim |
Interesting! Let me poke a second into this. |
@hyd-dev do you need any help or do you think you know what to do? Your diagnosis sounds correct to me. |
Thanks @nikomatsakis! I don't know what to do yet and am digging into it now. |
This is caused by the fact that we currently map |
Assigning priority as discussed as part of the Prioritization Working Group procedure and removing @rustbot label -I-prioritize +P-medium |
Increasing to |
I made an initial attempt at changing the I don't really understand how the
This would preserve the properties relied by callers of |
@Aaron1011 have you had any more time to look at this? I'm trying to decide what it's going to take to get this fixed by end of week. |
I've started a discussion on Zulip (https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Cross.20crate-hygiene.20roots) - there are some unresolved questions about how we want the general solution ('correct' cross-crate decoding of |
I've opened #85709 with a |
If I compile this:
With:
If I use the command:
The compilation seems OK. If I compile with:
rustc gives an error without line numbers:
The text was updated successfully, but these errors were encountered: