about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-sum-overflow-debug.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-19 16:00:56 +0200
committerGitHub <noreply@github.com>2019-10-19 16:00:56 +0200
commit2de4f4335e454d3e6b635e57d5f2f56f4f5a03d4 (patch)
tree6cbfafcebd329f33d8db10c6199af49409b80b9e /src/test/ui/iterators/iter-sum-overflow-debug.rs
parent55326992513aefa96af2a70c44aed4334e9eca23 (diff)
parent1b3846359a084f62eaab74390134011ed9e6cd48 (diff)
downloadrust-2de4f4335e454d3e6b635e57d5f2f56f4f5a03d4.tar.gz
rust-2de4f4335e454d3e6b635e57d5f2f56f4f5a03d4.zip
Rollup merge of #65505 - RalfJung:rc, r=Centril
Rc: value -> allocation

See https://github.com/rust-lang/rust/issues/64484. This does not yet edit `Arc` as I first wanted to be sure we agree on the terminology the way it actually ends up. "value" as a term appears a lot in this file, and sometimes it refers to the value stored inside the `RcBox` while sometimes it refers to the `RcBox` itself. I tried to properly tease these apart but may have made some mistakes. The former should now always be called "inner value" and the latter "allocation".

One area where I was very unsure of which terminology is dropping: the `value` field of the `RcBox` will get dropped *earlier* than the `RcBox` itself if there are weak references. I decided that "dropping the value stored in the allocation" refers to dropping the value field, while "destroying the allocation" refers to actually freeing its backing memory.

r? @Centril
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-debug.rs')
0 files changed, 0 insertions, 0 deletions