File tree Expand file tree Collapse file tree 7 files changed +52
-4
lines changed Expand file tree Collapse file tree 7 files changed +52
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 7407bcc1a2aa46949d3dadd1d9b79c76ad18d4cf
8
+ refs/heads/try2: 46100c06223f737a7604b46667800ed42cf20d3b
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change 30
30
* .cps
31
31
* .log
32
32
* .pdf
33
+ * .epub
33
34
* .html
34
35
* .pg
35
36
* .toc
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ clean-misc:
53
53
$(Q)rm -Rf tmp/*
54
54
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
55
55
$(Q)rm -Rf $(foreach ext, \
56
- html aux cp fn ky log pdf pg toc tp vr cps, \
56
+ html aux cp fn ky log pdf pg toc tp vr cps epub , \
57
57
$(wildcard doc/*.$(ext)))
58
58
$(Q)find doc/std doc/extra -mindepth 1 | xargs rm -Rf
59
59
$(Q)rm -Rf doc/version.md
Original file line number Diff line number Diff line change @@ -64,6 +64,20 @@ doc/rust.tex: rust.md doc/version.md
64
64
--from=markdown --to=latex \
65
65
--output=$@
66
66
67
+ DOCS += doc/rust.epub
68
+ doc/rust.epub : rust.md doc/version_info.html doc/rust.css doc/manual.inc
69
+ @$(call E, pandoc: $@ )
70
+ $(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
71
+ " $( CFG_PANDOC) " \
72
+ --standalone --toc \
73
+ --section-divs \
74
+ --number-sections \
75
+ --from =markdown --to=epub \
76
+ --css=rust.css --include-in-header=doc/manual.inc \
77
+ --include-before-body=doc/version_info.html \
78
+ --output=$@
79
+
80
+
67
81
DOCS += doc/tutorial.tex
68
82
doc/tutorial.tex : tutorial.md doc/version.md
69
83
@$(call E, pandoc: $@ )
@@ -98,6 +112,17 @@ doc/tutorial.html: tutorial.md doc/version_info.html doc/rust.css
98
112
--include-before-body=doc/version_info.html \
99
113
--output=$@
100
114
115
+ DOCS += doc/tutorial.epub
116
+ doc/tutorial.epub : tutorial.md doc/version_info.html doc/rust.css
117
+ @$(call E, pandoc: $@ )
118
+ $(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
119
+ $(CFG_PANDOC) --standalone --toc \
120
+ --section-divs --number-sections \
121
+ --from =markdown --to=epub --css=rust.css \
122
+ --include-before-body=doc/version_info.html \
123
+ --output=$@
124
+
125
+
101
126
DOCS_L10N += doc/l10n/ja/tutorial.html
102
127
doc/l10n/ja/tutorial.html : doc/l10n/ja/tutorial.md doc/version_info.html doc/rust.css
103
128
@$(call E, pandoc: $@ )
Original file line number Diff line number Diff line change @@ -142,7 +142,8 @@ pub struct Matches {
142
142
}
143
143
144
144
/// The type returned when the command line does not conform to the
145
- /// expected format. Pass this value to <fail_str> to get an error message.
145
+ /// expected format. Call the `to_err_msg` method to retrieve the
146
+ /// error as a string.
146
147
#[ deriving( Clone , Eq , ToStr ) ]
147
148
#[ allow( missing_doc) ]
148
149
pub enum Fail_ {
Original file line number Diff line number Diff line change @@ -661,7 +661,6 @@ pub fn spawn_raw(mut opts: TaskOpts, f: ~fn()) {
661
661
} ;
662
662
new_sched. bootstrap ( bootstrap_task) ;
663
663
664
- debug ! ( "enqueing join_task" ) ;
665
664
// Now tell the original scheduler to join with this thread
666
665
// by scheduling a thread-joining task on the original scheduler
667
666
orig_sched_handle. send ( TaskFromFriend ( join_task) ) ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ // exec-env:RUST_LOG=debug
12
+ // xfail-fast
13
+
14
+ // regression test for issue #10405, make sure we don't call debug! too soon.
15
+
16
+ use std:: task;
17
+
18
+ fn main ( ) {
19
+ let mut t = task:: task ( ) ;
20
+ t. sched_mode ( task:: SingleThreaded ) ;
21
+ t. spawn ( || ( ) ) ;
22
+ }
You can’t perform that action at this time.
0 commit comments