-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Introduce 'ra
lifetime name.
#130208
Introduce 'ra
lifetime name.
#130208
Conversation
how about 'res, an already common abbreviation for resolution/resolving? |
I deliberately avoided |
Technically it's not a lifetime of resolver (i.e. you can't do I don't like long lifetime names though, as long as |
|
I like
This is in reference to changes like this one:
There are a handful of structs where I changed
instead of using |
`rustc_resolve` allocates many things in `ResolverArenas`. The lifetime used for references into the arena is mostly `'a`, and sometimes `'b`. This commit changes it to `'ra`, which is much more descriptive. The commit also changes the order of lifetimes on a couple of structs so that '`ra` is second last, before `'tcx`, and does other minor renamings such as `'r` to `'a`.
e6bfa0b
to
d4fc76c
Compare
'rslv
lifetime name.'ra
lifetime name.
I have updated |
@bors r+ |
…chenkov Introduce `'ra` lifetime name. `rustc_resolve` allocates many things in `ResolverArenas`. The lifetime used for references into the arena is mostly `'a`, and sometimes `'b`. This commit changes it to `'rslv`, which is much more descriptive. The commit also changes the order of lifetimes on a couple of structs so that '`rslv` is second last, before `'tcx`, and does other minor renamings such as `'r` to `'a`. r? `@petrochenkov` cc `@oli-obk`
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#130101 (some const cleanup: remove unnecessary attributes, add const-hack indications) - rust-lang#130208 (Introduce `'ra` lifetime name.) - rust-lang#130263 (coverage: Simplify creation of sum counters) - rust-lang#130273 (more eagerly discard constraints on overflow) - rust-lang#130276 (Add test for nalgebra hang in coherence) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#130208 - nnethercote:rslv-lifetime, r=petrochenkov Introduce `'ra` lifetime name. `rustc_resolve` allocates many things in `ResolverArenas`. The lifetime used for references into the arena is mostly `'a`, and sometimes `'b`. This commit changes it to `'rslv`, which is much more descriptive. The commit also changes the order of lifetimes on a couple of structs so that '`rslv` is second last, before `'tcx`, and does other minor renamings such as `'r` to `'a`. r? ``@petrochenkov`` cc ``@oli-obk``
rustc_resolve
allocates many things inResolverArenas
. The lifetime used for references into the arena is mostly'a
, and sometimes'b
.This commit changes it to
'rslv
, which is much more descriptive. The commit also changes the order of lifetimes on a couple of structs so that 'rslv
is second last, before'tcx
, and does other minor renamings such as'r
to'a
.r? @petrochenkov
cc @oli-obk