about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-06-12 16:02:05 +0000
committerbors <bors@rust-lang.org>2014-06-12 16:02:05 +0000
commit8b87c3a2a82507ac33e067311c591c8f3815a382 (patch)
treea6049d44d4e10e4e7dbbac25c443cbd5f1d4d41b /src/rustllvm/RustWrapper.cpp
parentc0a6f72e8bfea2647da7f63f9f09b2cfeaa161c9 (diff)
parent4f90025b68b41cc9e32bb8da7765ddae081a2ed7 (diff)
downloadrust-8b87c3a2a82507ac33e067311c591c8f3815a382.tar.gz
rust-8b87c3a2a82507ac33e067311c591c8f3815a382.zip
auto merge of #14809 : zzmp/rust/patch-2, r=alexcrichton
Previously, the type system's restrictions on borrowing were summarized as

> The previous example showed that the type system forbids any borrowing of owned boxes found in aliasable, mutable memory.

This did not jive with the example, which allowed mutations so long as the borrowed reference had been returned. Also, the language has changed to no longer allow aliasable mutable locations. This changes the summary to read

> The previous example showed that the type system forbids mutations of owned boxed values while they are being borrowed. In general, the type system also forbids borrowing a value as mutable if it is already being borrowed - either as a mutable reference or an immutable one.

This adds more general information for the experienced reader as well, to offer a more complete understanding.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions