about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2015-10-12 23:37:52 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2015-10-12 23:51:59 +0300
commited2a11da89252774fe15bd0eafdf94545ad4644f (patch)
tree041e5ffc995a1c38dd8b0cc30a1bcd4cffb17af0 /src/rustllvm/RustWrapper.cpp
parent843e528fd0c09666cc5f2896258f88c25eaacb29 (diff)
downloadrust-ed2a11da89252774fe15bd0eafdf94545ad4644f.tar.gz
rust-ed2a11da89252774fe15bd0eafdf94545ad4644f.zip
require a method callee's type to outlive the call
This rather crucial requirement was not checked. In most cases, that
didn't cause any trouble because the argument types are required to
outlive the call and are subtypes of a subformula of the callee type.

However, binary ops are taken by ref only indirectly, without it being
marked in the argument types, which led to the argument types not being
constrained anywhere causing spurious errors (as these are basically
unconstrainable, I don't think this change can break code). Of course,
the old way was also incorrent with contravariance, but that is still
unsound for other reasons.

This also improves rustc::front to get RUST_LOG to *somewhat* work.

Fixes #28999
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions