Skip to content

Commit 5de0d48

Browse files
committed
---
yaml --- r: 152011 b: refs/heads/try2 c: 712118b h: refs/heads/master i: 152009: 1e3a8b4 152007: bd1fff2 v: v3
1 parent 0ec4be1 commit 5de0d48

File tree

9 files changed

+163
-246
lines changed

9 files changed

+163
-246
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 1cf1527b91db3c605e44fe9b90fc46ecf1d04c4f
8+
refs/heads/try2: 712118b9c0030762fa8942c0ad52a652875bee02
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/docs.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
DOCS := index intro tutorial guide-ffi guide-macros guide-lifetimes \
3030
guide-tasks guide-container guide-pointers guide-testing \
3131
guide-runtime complement-bugreport complement-cheatsheet \
32-
complement-lang-faq complement-design-faq complement-project-faq rust \
33-
rustdoc guide-unsafe
32+
complement-lang-faq complement-project-faq rust rustdoc \
33+
guide-unsafe
3434

3535
PDF_DOCS := tutorial rust
3636

branches/try2/src/doc/complement-design-faq.md

Lines changed: 0 additions & 176 deletions
This file was deleted.

branches/try2/src/doc/guide-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The runtime is designed with a few goals in mind:
4545
support as well.
4646

4747
* The runtime should not enforce separate "modes of compilation" in order to
48-
work in multiple circumstances. It is an explicit goal that you compile a Rust
48+
work in multiple circumstances. Is it an explicit goal that you compile a Rust
4949
library once and use it forever (in all environments).
5050

5151
* The runtime should be fast. There should be no architectural design barrier

branches/try2/src/doc/index.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ li {list-style-type: none; }
2323
* [Testing](guide-testing.html)
2424
* [Rust's Runtime](guide-runtime.html)
2525

26-
# FAQs
27-
28-
* [Language Design FAQ](complement-design-faq.html)
29-
* [Language FAQ](complement-lang-faq.html)
30-
* [Project FAQ](complement-project-faq.html)
31-
* [Code cheatsheet](complement-cheatsheet.html) - "How do I do X?"
32-
* [How to submit a bug report](complement-bugreport.html)
33-
3426
# Libraries
3527

3628
* [The standard library, `std`](std/index.html)
@@ -68,6 +60,13 @@ li {list-style-type: none; }
6860

6961
* [The `rustdoc` manual](rustdoc.html)
7062

63+
# FAQs
64+
65+
* [Language FAQ](complement-lang-faq.html)
66+
* [Project FAQ](complement-project-faq.html)
67+
* [Code cheatsheet](complement-cheatsheet.html) - "How do I do X?"
68+
* [How to submit a bug report](complement-bugreport.html)
69+
7170
# External resources
7271

7372
* The Rust IRC channels on [irc.mozilla.org](http://irc.mozilla.org/)

branches/try2/src/libcollections/dlist.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,16 @@ impl<T> Deque<T> for DList<T> {
220220
/// Provide a reference to the back element, or None if the list is empty
221221
#[inline]
222222
fn back<'a>(&'a self) -> Option<&'a T> {
223-
self.list_tail.resolve_immut().as_ref().map(|tail| &tail.value)
223+
let tmp = self.list_tail.resolve_immut(); // FIXME: #3511: shouldn't need variable
224+
tmp.as_ref().map(|tail| &tail.value)
224225
}
225226

226227
/// Provide a mutable reference to the back element, or None if the list is empty
227228
#[inline]
228229
fn back_mut<'a>(&'a mut self) -> Option<&'a mut T> {
229-
self.list_tail.resolve().map(|tail| &mut tail.value)
230+
let tmp: Option<&'a mut Node<T>> =
231+
self.list_tail.resolve(); // FIXME: #3511: shouldn't need variable
232+
tmp.map(|tail| &mut tail.value)
230233
}
231234

232235
/// Add an element first in the list
@@ -446,7 +449,8 @@ impl<'a, A> DoubleEndedIterator<&'a A> for Items<'a, A> {
446449
if self.nelem == 0 {
447450
return None;
448451
}
449-
self.tail.resolve_immut().as_ref().map(|prev| {
452+
let tmp = self.tail.resolve_immut(); // FIXME: #3511: shouldn't need variable
453+
tmp.as_ref().map(|prev| {
450454
self.nelem -= 1;
451455
self.tail = prev.prev;
452456
&prev.value

0 commit comments

Comments
 (0)