-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
easy fix: lifetimes should contain Name's, not idents #7743
Comments
@jbclements I am actively doing this. This fix results in 17 changed files. But one error still remains, which I don't know how to resolve.
Do you have any hint? |
@lilac it will probably require a snapshot, because it's the (It's probably going to require finesse, so talking with us on IRC might be more efficient.) |
@huonw I post one message on IRC, but haven't got any response. What kind of finesse do I need? |
@lilac the reason I was vague is because I don't actually know the process that will be required. Approximately, with all the details glossed over:
I have literally no idea if step 1 is even possible. It looks like this issue is more than 20 minutes. :( (Oh, it's unfortunate that no-one responded :( you could try again during US-daytime hours, I probably won't be there (wrong timezone), but people who know more than will be around. You may need to ask a few times for help; preferably linking to this issue to make it easy for someone to jump in.) |
@lilac Oh, the other solution would be to remove the point where |
I just want to say: you guys are awesome! |
@huonw Thanks, you are really kind and helpful! I am in the AEST timezone, so guess that's the reason why few people were there and replied me. I will try and see if rewriting to raw AST is feasable. |
@lilac Good luck! (Assuming that's Australian Eastern Standard Time, I am too! I'm in Sydney, fwiw.) |
IIRC aatch and bjz should be in roughly that timezone as well. |
@huonw In Sydney too. Your suggestion does work! I'll make a pull request. |
I was thinking about this some more. It's not clear to me that lifetime names should not be subject to hygiene. In the language as it stands, it's probably ok, but in the future we'd discussed the possibility of explicitly labeling the lifetimes of subexpressions and so forth, and in that case hygiene seems relevant. Of course maybe we can cross that bridge when we come to it. |
Yep, makes sense to me. That was pretty much my thinking, as well, including the "cross that bridge when we come to it." |
Was this reverted? I still see ident: Ident in ast::Lifetime |
@tautologico, it never landed, there were some issues on windows that stopped it at the time, and I don't think @lilac resurrected their branch ever. |
That's a shame; if I recall correctly, this was blocked on the same windows issue that was blocking my hygiene pull request--it later disappeared without any action on my part, allowing my patch to land. This one may now be viable as well. |
I commented on #12451: #12451 (comment) Summary: it seems that if we ever get macros that can expand directly to methods (#4621), then we will want lifetime-hygiene. |
Add `format_in_format_args` and `to_string_in_format_args` lints Fixes rust-lang#7667 and rust-lang#7729 I put these in `perf` since that was one of `@jplatte's` suggestions, and `redundant_clone` (which I consider to be similar) lives there as well. However, I am open to changing the category or anything else. r? `@camsteffen` changelog: Add `format_in_format_args` and `to_string_in_format_args` lints
this is 20 minutes of work, but I don't think I'm going to do it: lifetimes do not need to be compared hygienically, and they should contain Names, not idents. This will allow them to be safely compared without fear of runtime-fail.
The text was updated successfully, but these errors were encountered: