Skip to content

Commit bd1fff2

Browse files
committed
---
yaml --- r: 152007 b: refs/heads/try2 c: 9b5bdfc h: refs/heads/master i: 152005: 5079030 152003: d3f75f4 151999: f7ddac1 v: v3
1 parent 4fb8ef8 commit bd1fff2

File tree

6 files changed

+18
-196
lines changed

6 files changed

+18
-196
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: 489f470886ed95d005c6687aa29d12f514e626c2
8+
refs/heads/try2: 9b5bdfc2e2cb6928f9d592a3663fc8d090e5e3c6
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/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: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,13 @@ 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-
let tmp = self.list_tail.resolve_immut(); // FIXME: #3511: shouldn't need variable
224-
tmp.as_ref().map(|tail| &tail.value)
223+
self.list_tail.resolve_immut().as_ref().map(|tail| &tail.value)
225224
}
226225

227226
/// Provide a mutable reference to the back element, or None if the list is empty
228227
#[inline]
229228
fn back_mut<'a>(&'a mut self) -> Option<&'a mut T> {
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)
229+
self.list_tail.resolve().map(|tail| &mut tail.value)
233230
}
234231

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

branches/try2/src/libstd/ascii.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,13 @@ mod tests {
591591
fn test_ascii_vec() {
592592
let test = &[40u8, 32u8, 59u8];
593593
assert_eq!(test.to_ascii(), v2ascii!([40, 32, 59]));
594-
assert_eq!("( ;".to_ascii(), v2ascii!([40, 32, 59]));
594+
assert_eq!("( ;".to_ascii(), v2ascii!([40, 32, 59]));
595+
// FIXME: #5475 borrowchk error, owned vectors do not live long enough
596+
// if chained-from directly
595597
let v = box [40u8, 32u8, 59u8];
596598
assert_eq!(v.to_ascii(), v2ascii!([40, 32, 59]));
597-
assert_eq!("( ;".to_strbuf().as_slice().to_ascii(), v2ascii!([40, 32, 59]));
599+
let v = "( ;".to_strbuf();
600+
assert_eq!(v.as_slice().to_ascii(), v2ascii!([40, 32, 59]));
598601

599602
assert_eq!("abCDef&?#".to_ascii().to_lower().into_str(), "abcdef&?#".to_strbuf());
600603
assert_eq!("abCDef&?#".to_ascii().to_upper().into_str(), "ABCDEF&?#".to_strbuf());

0 commit comments

Comments
 (0)