Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update description to reflect language changes
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.
- Loading branch information
4f90025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at zzmp@4f90025
4f90025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging zzmp/rust/patch-2 = 4f90025 into auto
4f90025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zzmp/rust/patch-2 = 4f90025 merged ok, testing candidate = 8b87c3a
4f90025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/6199
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/6197
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/5293
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/5302
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/6296
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/5385
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/5392
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/6299
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/5384
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/5389
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/5450
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/3185
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/6289
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/5400
4f90025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 8b87c3a