about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-09 15:53:59 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-10 00:24:42 +0530
commit3b871402998d093de327dc2bf424f69fab277b54 (patch)
tree70a20a8fc0d7e0ae1ea9d13e6450bded8cde7b03 /src/libstd/sys/unix/stack_overflow.rs
parent68100e4c07f986dfacbd75b38cd25336de344b7c (diff)
parent1e79870770c08973d018e71d309816b970c7abe1 (diff)
downloadrust-3b871402998d093de327dc2bf424f69fab277b54.tar.gz
rust-3b871402998d093de327dc2bf424f69fab277b54.zip
Rollup merge of #24191 - nikomatsakis:issue-20791, r=pnkfelix
 Modify the ExprUseVisitor to walk each part of an AutoRef, and in
particular to treat an AutoUnsize as as kind of \"instantaneous\" borrow
of the value being unsized. This prevents us from feeding uninitialized
data.

This caused a problem for the eager reborrow of comparison traits,
because that wound up introducing a \"double AutoRef\", which was not
being thoroughly checked before but turned out not to type check.
Fortunately, we can just remove that \"eager reborrow\" as it is no longer
needed now that `PartialEq` doesn't force both LHS and RHS to have the
same type (and even if we did have this problem, the better way would be
to lean on introducing a common supertype).

Fixes #20791.

r? @nrc
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions