-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
regression: local ambiguity: multiple parsing options: built-in NTs lifetime #70446
Comments
@rustbot ping cleanup |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @chrissimpkins @contrun @DutchGhost @elshize @ethanboxx @h-michael @HallerPatrick @hdhoang @hellow554 @imtsuki @jakevossen5 @kanru @KarlK90 @LeSeulArtichaut @MAdrianMattocks @matheus-consoli @mental32 @nmccarty @Noah-Kennedy @pard68 @PeytonT @pierreN @Redblueflame @RobbieClarken @RobertoSnap @robjtede @SarthakSingh31 @senden9 @shekohex @sinato @spastorino @turboladen @woshilapin @yerke |
For code I used: use pin_project_lite::pin_project;
pin_project! {
pub struct Struct<T: 'static> {
field: T
}
}
fn main() {
} |
@rustbot modify labels: -E-needs-bisection |
Reduced example: macro_rules! m {
( $(: $p:path)? : $l:lifetime)
=> {m!{@internal $(: $p )? : $l }};
(@internal $(: $p:path)? : $l:lifetime) => {};
}
m! {: 'static}
fn main() {} Errors:
|
Split the macro in two parts to make it easier to follow, and removed the special lifetime macro_rules! foo {
($(: $p:path)? $(: $l:lifetime)? ) => { bar! {$(: $p)? $(: $l)? } };
}
macro_rules! bar {
($(: $p:path)? $(: $l:lifetime)? ) => {};
}
foo! {: 'a } Error:
I think we can now @rustbot modify labels: -E-needs-mcve |
I believe that the most probable culprit is #69384, cc @petrochenkov |
This was briefly discussed during pre-triage. Assigning |
Fixed in #70768. |
https://crater-reports.s3.amazonaws.com/beta-1.43-1/beta-2020-03-12/reg/pin-project-lite-0.1.4/log.txt
cc @Centril
The text was updated successfully, but these errors were encountered: