Skip to content

Commit 796c046

Browse files
committed
---
yaml --- r: 155062 b: refs/heads/try2 c: 931b115 h: refs/heads/master v: v3
1 parent 4aeb2e9 commit 796c046

Some content is hidden

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

80 files changed

+1933
-5518
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: 3da255d35a7f9d53e4c31d5712f88ff14eaaf45e
8+
refs/heads/try2: 931b11549f3aab00aaaaff39cce33c0f7219b3b6
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ documentation.
66
## Quick Start
77

88
1. Download a [binary installer][installer] for your platform.
9-
2. Read the [tutorial].
9+
2. Read the [guide].
1010
3. Enjoy!
1111

1212
> ***Note:*** Windows users can read the detailed
1313
> [getting started][wiki-start] notes on the wiki.
1414
1515
[installer]: http://www.rust-lang.org/install.html
16-
[tutorial]: http://doc.rust-lang.org/tutorial.html
16+
[guide]: http://doc.rust-lang.org/guide.html
1717
[wiki-start]: https://github.com/rust-lang/rust/wiki/Note-getting-started-developing-Rust
1818
[win-wiki]: https://github.com/rust-lang/rust/wiki/Using-Rust-on-Windows
1919

@@ -54,7 +54,7 @@ documentation.
5454
When complete, `make install` will place several programs into
5555
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
5656
API-documentation tool.
57-
3. Read the [tutorial].
57+
3. Read the [guide].
5858
4. Enjoy!
5959

6060
### Building on Windows
@@ -76,7 +76,7 @@ To easily build on windows we can use [MSYS2](http://sourceforge.net/projects/ms
7676

7777
[repo]: https://github.com/rust-lang/rust
7878
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
79-
[tutorial]: http://doc.rust-lang.org/tutorial.html
79+
[guide]: http://doc.rust-lang.org/guide.html
8080

8181
## Notes
8282

branches/try2/mk/docs.mk

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
# except according to those terms.
1010

1111
######################################################################
12-
# The various pieces of standalone documentation: guides, tutorial,
13-
# manual etc.
12+
# The various pieces of standalone documentation: guides, manual, etc
1413
#
1514
# The DOCS variable is their names (with no file extension).
1615
#
@@ -32,7 +31,7 @@ DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
3231
complement-lang-faq complement-design-faq complement-project-faq rust \
3332
rustdoc guide-unsafe guide-strings
3433

35-
PDF_DOCS := tutorial rust
34+
PDF_DOCS := guide rust
3635

3736
RUSTDOC_DEPS_rust := doc/full-toc.inc
3837
RUSTDOC_FLAGS_rust := --html-in-header=doc/full-toc.inc
@@ -226,7 +225,7 @@ $(foreach docname,$(DOCS),$(eval $(call DEF_DOC,$(docname))))
226225
#
227226
# As such, I've attempted to get it working as much as possible (and
228227
# switching from pandoc to rustdoc), but preserving the old behaviour
229-
# (e.g. only running on the tutorial)
228+
# (e.g. only running on the guide)
230229
.PHONY: l10n-mds
231230
l10n-mds: $(D)/po4a.conf \
232231
$(foreach lang,$(L10N_LANG),$(D)/po/$(lang)/*.md.po)
@@ -244,7 +243,7 @@ doc/l10n/$(1)/$(2).html: l10n-mds $$(HTML_DEPS) $$(RUSTDOC_DEPS_$(2))
244243
$$(RUSTDOC) $$(RUSTDOC_HTML_OPTS) $$(RUSTDOC_FLAGS_$(1)) doc/l10n/$(1)/$(2).md
245244
endef
246245

247-
$(foreach lang,$(L10N_LANGS),$(eval $(call DEF_L10N_DOC,$(lang),tutorial)))
246+
$(foreach lang,$(L10N_LANGS),$(eval $(call DEF_L10N_DOC,$(lang),guide)))
248247

249248

250249
######################################################################

branches/try2/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ tidy:
283283
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
284284
$(Q)echo $(ALL_HS) \
285285
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
286-
$(Q)find $(S)src -type f -perm +111 \
286+
$(Q)find $(S)src -type f -perm a+x \
287287
-not -name '*.rs' -and -not -name '*.py' \
288288
-and -not -name '*.sh' \
289289
| grep '^$(S)src/jemalloc' -v \

branches/try2/src/compiletest/runtest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,12 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
482482
// GDB's script auto loading safe path ...
483483
script_str.push_str(
484484
format!("add-auto-load-safe-path {}\n",
485-
rust_pp_module_abs_path.as_slice())
485+
rust_pp_module_abs_path.replace("\\", "\\\\").as_slice())
486486
.as_slice());
487487
// ... and also the test directory
488488
script_str.push_str(
489489
format!("add-auto-load-safe-path {}\n",
490-
config.build_base.as_str().unwrap())
490+
config.build_base.as_str().unwrap().replace("\\", "\\\\"))
491491
.as_slice());
492492
}
493493
}
@@ -499,7 +499,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
499499

500500
// Load the target executable
501501
script_str.push_str(format!("file {}\n",
502-
exe_file.as_str().unwrap())
502+
exe_file.as_str().unwrap().replace("\\", "\\\\"))
503503
.as_slice());
504504

505505
script_str.push_str(cmds.as_slice());

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ A basic example is:
209209
Rust code:
210210

211211
~~~~no_run
212-
extern fn callback(a:i32) {
212+
extern fn callback(a: i32) {
213213
println!("I'm called from C with value {0}", a);
214214
}
215215
@@ -243,7 +243,7 @@ void trigger_callback() {
243243
}
244244
~~~~
245245
246-
In this example Rust's `main()` will call `do_callback()` in C,
246+
In this example Rust's `main()` will call `trigger_callback()` in C,
247247
which would, in turn, call back to `callback()` in Rust.
248248
249249
@@ -269,7 +269,7 @@ struct RustObject {
269269
// other members
270270
}
271271
272-
extern "C" fn callback(target: *mut RustObject, a:i32) {
272+
extern "C" fn callback(target: *mut RustObject, a: i32) {
273273
println!("I'm called from C with value {0}", a);
274274
unsafe {
275275
// Update the value in RustObject with the value received from the callback

0 commit comments

Comments
 (0)