Skip to content

Commit caf31ff

Browse files
committed
---
yaml --- r: 103867 b: refs/heads/try c: 65f3578 h: refs/heads/master i: 103865: 37560c5 103863: 68dc961 v: v3
1 parent 9d6f462 commit caf31ff

File tree

405 files changed

+18631
-13398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+18631
-13398
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 62f1d68439dcfd509eaca29887afa97f22938373
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
5-
refs/heads/try: 10de762f6cf87a1c41cd047ec6b9970688f48873
5+
refs/heads/try: 65f35781489ccaa66585b91f215308f3091bf404
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,20 @@ src/.DS_Store
7171
/stage2/
7272
/stage3/
7373
*.bz2
74-
/doc
74+
/doc/html
75+
/doc/latex
76+
/doc/std
77+
/doc/arena
78+
/doc/extra
79+
/doc/flate
80+
/doc/glob
81+
/doc/green
82+
/doc/native
83+
/doc/rustc
84+
/doc/syntax
85+
/doc/rustdoc
86+
/doc/rustuv
87+
/doc/rustpkg
7588
/nd/
7689
/llvm/
7790
version.md

branches/try/Makefile.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ endef
206206
$(foreach target,$(CFG_TARGET),\
207207
$(eval $(call DEF_X,$(target))))
208208

209+
# Look in doc and src dirs.
210+
VPATH := $(S)doc $(S)src
211+
209212
# "Source" files we generate in builddir along the way.
210213
GENERATED :=
211214

@@ -367,6 +370,7 @@ SREQ$(1)_T_$(2)_H_$(3) = \
367370
# libraries
368371
CSREQ$(1)_T_$(2)_H_$(3) = \
369372
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
373+
$$(HBIN$(1)_H_$(3))/rustpkg$$(X_$(3)) \
370374
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
371375
$$(foreach dep,$$(CRATES),$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(dep)) \
372376
$$(foreach dep,$$(HOST_CRATES),$$(HLIB$(1)_H_$(3))/stamp.$$(dep))

branches/try/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ documentation.
5252
> options are also supported, pass `--help` for more information on them.
5353
5454
When complete, `make install` will place several programs into
55-
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
56-
API-documentation tool.
55+
`/usr/local/bin`: `rustc`, the Rust compiler; `rustdoc`, the
56+
API-documentation tool, and `rustpkg`, the Rust package manager and build
5757
system.
5858
3. Read the [tutorial].
5959
4. Enjoy!

branches/try/src/doc/README.md renamed to branches/try/doc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ po4a --copyright-holder="The Rust Project Developers" \
5959
--package-name="Rust" \
6060
--package-version="0.10-pre" \
6161
-M UTF-8 -L UTF-8 \
62-
src/doc/po4a.conf
62+
po4a.conf
6363
~~~~
6464

6565
(the version number must be changed if it is not 0.10-pre now.)
@@ -73,7 +73,7 @@ When you want to make a commit, do the command below before staging your
7373
change:
7474

7575
~~~~
76-
for f in src/doc/po/**/*.po; do
76+
for f in doc/po/**/*.po; do
7777
msgattrib --translated $f -o $f.strip
7878
if [ -e $f.strip ]; then
7979
mv $f.strip $f
File renamed without changes.
File renamed without changes.

branches/try/src/doc/guide-conditions.md renamed to branches/try/doc/guide-conditions.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ An example program that does this task reads like this:
4747
# #[allow(unused_imports)];
4848
use std::io::{BufferedReader, File};
4949
# mod BufferedReader {
50-
# use std::io::{File, IoResult};
50+
# use std::io::File;
5151
# use std::io::MemReader;
5252
# use std::io::BufferedReader;
5353
# static s : &'static [u8] = bytes!("1 2\n\
5454
# 34 56\n\
5555
# 789 123\n\
5656
# 45 67\n\
5757
# ");
58-
# pub fn new(_inner: IoResult<File>) -> BufferedReader<MemReader> {
58+
# pub fn new(_inner: Option<File>) -> BufferedReader<MemReader> {
5959
# BufferedReader::new(MemReader::new(s.to_owned()))
6060
# }
6161
# }
@@ -71,6 +71,7 @@ fn read_int_pairs() -> ~[(int,int)] {
7171
let mut pairs = ~[];
7272
7373
// Path takes a generic by-value, rather than by reference
74+
# let _g = std::io::ignore_io_error();
7475
let path = Path::new(&"foo.txt");
7576
let mut reader = BufferedReader::new(File::open(&path));
7677
@@ -244,15 +245,15 @@ and trapping its exit status using `task::try`:
244245
use std::io::{BufferedReader, File};
245246
use std::task;
246247
# mod BufferedReader {
247-
# use std::io::{File, IoResult};
248+
# use std::io::File;
248249
# use std::io::MemReader;
249250
# use std::io::BufferedReader;
250251
# static s : &'static [u8] = bytes!("1 2\n\
251252
# 34 56\n\
252253
# 789 123\n\
253254
# 45 67\n\
254255
# ");
255-
# pub fn new(_inner: IoResult<File>) -> BufferedReader<MemReader> {
256+
# pub fn new(_inner: Option<File>) -> BufferedReader<MemReader> {
256257
# BufferedReader::new(MemReader::new(s.to_owned()))
257258
# }
258259
# }
@@ -276,6 +277,7 @@ fn main() {
276277
277278
fn read_int_pairs() -> ~[(int,int)] {
278279
let mut pairs = ~[];
280+
# let _g = std::io::ignore_io_error();
279281
let path = Path::new(&"foo.txt");
280282
281283
let mut reader = BufferedReader::new(File::open(&path));
@@ -345,15 +347,15 @@ but similarly clear as the version that used `fail!` in the logic where the erro
345347
# #[allow(unused_imports)];
346348
use std::io::{BufferedReader, File};
347349
# mod BufferedReader {
348-
# use std::io::{File, IoResult};
350+
# use std::io::File;
349351
# use std::io::MemReader;
350352
# use std::io::BufferedReader;
351353
# static s : &'static [u8] = bytes!("1 2\n\
352354
# 34 56\n\
353355
# 789 123\n\
354356
# 45 67\n\
355357
# ");
356-
# pub fn new(_inner: IoResult<File>) -> BufferedReader<MemReader> {
358+
# pub fn new(_inner: Option<File>) -> BufferedReader<MemReader> {
357359
# BufferedReader::new(MemReader::new(s.to_owned()))
358360
# }
359361
# }
@@ -372,6 +374,7 @@ fn main() {
372374
373375
fn read_int_pairs() -> ~[(int,int)] {
374376
let mut pairs = ~[];
377+
# let _g = std::io::ignore_io_error();
375378
let path = Path::new(&"foo.txt");
376379
377380
let mut reader = BufferedReader::new(File::open(&path));
@@ -412,15 +415,15 @@ and replaces bad input lines with the pair `(-1,-1)`:
412415
# #[allow(unused_imports)];
413416
use std::io::{BufferedReader, File};
414417
# mod BufferedReader {
415-
# use std::io::{File, IoResult};
418+
# use std::io::File;
416419
# use std::io::MemReader;
417420
# use std::io::BufferedReader;
418421
# static s : &'static [u8] = bytes!("1 2\n\
419422
# 34 56\n\
420423
# 789 123\n\
421424
# 45 67\n\
422425
# ");
423-
# pub fn new(_inner: IoResult<File>) -> BufferedReader<MemReader> {
426+
# pub fn new(_inner: Option<File>) -> BufferedReader<MemReader> {
424427
# BufferedReader::new(MemReader::new(s.to_owned()))
425428
# }
426429
# }
@@ -444,6 +447,7 @@ fn main() {
444447
445448
fn read_int_pairs() -> ~[(int,int)] {
446449
let mut pairs = ~[];
450+
# let _g = std::io::ignore_io_error();
447451
let path = Path::new(&"foo.txt");
448452
449453
let mut reader = BufferedReader::new(File::open(&path));
@@ -485,15 +489,15 @@ Changing the condition's return type from `(int,int)` to `Option<(int,int)>` wil
485489
# #[allow(unused_imports)];
486490
use std::io::{BufferedReader, File};
487491
# mod BufferedReader {
488-
# use std::io::{IoResult, File};
492+
# use std::io::File;
489493
# use std::io::MemReader;
490494
# use std::io::BufferedReader;
491495
# static s : &'static [u8] = bytes!("1 2\n\
492496
# 34 56\n\
493497
# 789 123\n\
494498
# 45 67\n\
495499
# ");
496-
# pub fn new(_inner: IoResult<File>) -> BufferedReader<MemReader> {
500+
# pub fn new(_inner: Option<File>) -> BufferedReader<MemReader> {
497501
# BufferedReader::new(MemReader::new(s.to_owned()))
498502
# }
499503
# }
@@ -518,6 +522,7 @@ fn main() {
518522
519523
fn read_int_pairs() -> ~[(int,int)] {
520524
let mut pairs = ~[];
525+
# let _g = std::io::ignore_io_error();
521526
let path = Path::new(&"foo.txt");
522527
523528
let mut reader = BufferedReader::new(File::open(&path));
@@ -568,15 +573,15 @@ This can be encoded in the handler API by introducing a helper type: `enum Malfo
568573
# #[allow(unused_imports)];
569574
use std::io::{BufferedReader, File};
570575
# mod BufferedReader {
571-
# use std::io::{File, IoResult};
576+
# use std::io::File;
572577
# use std::io::MemReader;
573578
# use std::io::BufferedReader;
574579
# static s : &'static [u8] = bytes!("1 2\n\
575580
# 34 56\n\
576581
# 789 123\n\
577582
# 45 67\n\
578583
# ");
579-
# pub fn new(_inner: IoResult<File>) -> BufferedReader<MemReader> {
584+
# pub fn new(_inner: Option<File>) -> BufferedReader<MemReader> {
580585
# BufferedReader::new(MemReader::new(s.to_owned()))
581586
# }
582587
# }
@@ -610,6 +615,7 @@ fn main() {
610615
611616
fn read_int_pairs() -> ~[(int,int)] {
612617
let mut pairs = ~[];
618+
# let _g = std::io::ignore_io_error();
613619
let path = Path::new(&"foo.txt");
614620
615621
let mut reader = BufferedReader::new(File::open(&path));
@@ -690,15 +696,15 @@ a second condition and a helper function will suffice:
690696
# #[allow(unused_imports)];
691697
use std::io::{BufferedReader, File};
692698
# mod BufferedReader {
693-
# use std::io::{File, IoResult};
699+
# use std::io::File;
694700
# use std::io::MemReader;
695701
# use std::io::BufferedReader;
696702
# static s : &'static [u8] = bytes!("1 2\n\
697703
# 34 56\n\
698704
# 789 123\n\
699705
# 45 67\n\
700706
# ");
701-
# pub fn new(_inner: IoResult<File>) -> BufferedReader<MemReader> {
707+
# pub fn new(_inner: Option<File>) -> BufferedReader<MemReader> {
702708
# BufferedReader::new(MemReader::new(s.to_owned()))
703709
# }
704710
# }
@@ -746,6 +752,7 @@ fn parse_int(x: &str) -> int {
746752
747753
fn read_int_pairs() -> ~[(int,int)] {
748754
let mut pairs = ~[];
755+
# let _g = std::io::ignore_io_error();
749756
let path = Path::new(&"foo.txt");
750757
751758
let mut reader = BufferedReader::new(File::open(&path));
File renamed without changes.

0 commit comments

Comments
 (0)