Skip to content

Commit fce646a

Browse files
committed
---
yaml --- r: 133723 b: refs/heads/try c: e73156f h: refs/heads/master i: 133721: dd6355e 133719: fbfadd4 v: v3
1 parent aa5a20b commit fce646a

File tree

193 files changed

+7268
-10540
lines changed

Some content is hidden

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

193 files changed

+7268
-10540
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: 0e784e16840e8a0c623cc6166de26da9334db3d6
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 828e075abd8ee2f8c16f6cb1b93c0d99307e704d
5-
refs/heads/try: 1324a377953ba68cf7788cdf7d9aa15bf0e2bb09
5+
refs/heads/try: e73156fe323e761b3bed4a20a1deb21fb4b9ec5f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ DEPS_graphviz := std
7070
DEPS_green := std native:context_switch
7171
DEPS_rustuv := std native:uv native:uv_support
7272
DEPS_native := std
73-
DEPS_syntax := std term serialize log fmt_macros debug
73+
DEPS_syntax := std term serialize log fmt_macros debug arena
7474
DEPS_rustc := syntax flate arena serialize getopts rbml \
7575
time log graphviz debug rustc_llvm rustc_back
7676
DEPS_rustc_llvm := native:rustllvm libc std

branches/try/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/try/mk/rt.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ JEMALLOC_DEPS := $(wildcard \
288288
$(S)src/jemalloc/*/*/*/*)
289289
endif
290290

291+
# See #17183 for details, this file is touched during the build process so we
292+
# don't want to consider it as a dependency.
293+
JEMALLOC_DEPS := $(filter-out $(S)src/jemalloc/VERSION,$(JEMALLOC_DEPS))
294+
291295
JEMALLOC_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc)
292296
ifeq ($$(CFG_WINDOWSY_$(1)),1)
293297
JEMALLOC_REAL_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc_s)

branches/try/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/try/src/compiletest/runtest.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use util::logv;
2020
use util;
2121

2222
use std::io::File;
23+
use std::io::fs::PathExtensions;
2324
use std::io::fs;
2425
use std::io::net::tcp;
2526
use std::io::process::ProcessExit;
@@ -482,12 +483,12 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
482483
// GDB's script auto loading safe path ...
483484
script_str.push_str(
484485
format!("add-auto-load-safe-path {}\n",
485-
rust_pp_module_abs_path.as_slice())
486+
rust_pp_module_abs_path.replace("\\", "\\\\").as_slice())
486487
.as_slice());
487488
// ... and also the test directory
488489
script_str.push_str(
489490
format!("add-auto-load-safe-path {}\n",
490-
config.build_base.as_str().unwrap())
491+
config.build_base.as_str().unwrap().replace("\\", "\\\\"))
491492
.as_slice());
492493
}
493494
}
@@ -499,7 +500,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
499500

500501
// Load the target executable
501502
script_str.push_str(format!("file {}\n",
502-
exe_file.as_str().unwrap())
503+
exe_file.as_str().unwrap().replace("\\", "\\\\"))
503504
.as_slice());
504505

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

branches/try/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)