Skip to content

Commit ae966bf

Browse files
committed
---
yaml --- r: 155099 b: refs/heads/try2 c: 0af2bb5 h: refs/heads/master i: 155097: 81ccce3 155095: 10d74fb v: v3
1 parent 69baa37 commit ae966bf

File tree

194 files changed

+10543
-7269
lines changed

Some content is hidden

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

194 files changed

+10543
-7269
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: 1f5ee97184db63196713cf05fe834e6f32537e30
8+
refs/heads/try2: 0af2bb5fbe301dab02fca043926cc5abe83e07ba
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 [guide].
9+
2. Read the [tutorial].
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-
[guide]: http://doc.rust-lang.org/guide.html
16+
[tutorial]: http://doc.rust-lang.org/tutorial.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 [guide].
57+
3. Read the [tutorial].
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-
[guide]: http://doc.rust-lang.org/guide.html
79+
[tutorial]: http://doc.rust-lang.org/tutorial.html
8080

8181
## Notes
8282

branches/try2/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 arena
73+
DEPS_syntax := std term serialize log fmt_macros debug
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/try2/mk/docs.mk

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

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

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

3637
RUSTDOC_DEPS_rust := doc/full-toc.inc
3738
RUSTDOC_FLAGS_rust := --html-in-header=doc/full-toc.inc
@@ -225,7 +226,7 @@ $(foreach docname,$(DOCS),$(eval $(call DEF_DOC,$(docname))))
225226
#
226227
# As such, I've attempted to get it working as much as possible (and
227228
# switching from pandoc to rustdoc), but preserving the old behaviour
228-
# (e.g. only running on the guide)
229+
# (e.g. only running on the tutorial)
229230
.PHONY: l10n-mds
230231
l10n-mds: $(D)/po4a.conf \
231232
$(foreach lang,$(L10N_LANG),$(D)/po/$(lang)/*.md.po)
@@ -243,7 +244,7 @@ doc/l10n/$(1)/$(2).html: l10n-mds $$(HTML_DEPS) $$(RUSTDOC_DEPS_$(2))
243244
$$(RUSTDOC) $$(RUSTDOC_HTML_OPTS) $$(RUSTDOC_FLAGS_$(1)) doc/l10n/$(1)/$(2).md
244245
endef
245246

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

248249

249250
######################################################################

branches/try2/mk/platform.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ CFG_LIB_NAME_i686-w64-mingw32=$(1).dll
503503
CFG_STATIC_LIB_NAME_i686-w64-mingw32=$(1).lib
504504
CFG_LIB_GLOB_i686-w64-mingw32=$(1)-*.dll
505505
CFG_LIB_DSYM_GLOB_i686-w64-mingw32=$(1)-*.dylib.dSYM
506-
CFG_CFLAGS_i586-w64-mingw32 := -march=i586 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
506+
CFG_CFLAGS_i686-w64-mingw32 := -march=i686 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
507507
CFG_GCCISH_CFLAGS_i686-w64-mingw32 := -Wall -Werror -g -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
508508
CFG_GCCISH_CXXFLAGS_i686-w64-mingw32 := -fno-rtti $(CXXFLAGS)
509509
CFG_GCCISH_LINK_FLAGS_i686-w64-mingw32 := -shared -g -m32
@@ -521,6 +521,8 @@ CFG_PATH_MUNGE_i686-w64-mingw32 :=
521521
CFG_LDPATH_i686-w64-mingw32 :=$(CFG_LDPATH_i686-w64-mingw32):$(PATH)
522522
CFG_RUN_i686-w64-mingw32=PATH="$(CFG_LDPATH_i686-w64-mingw32):$(1)" $(2)
523523
CFG_RUN_TARG_i686-w64-mingw32=$(call CFG_RUN_i686-w64-mingw32,$(HLIB$(1)_H_$(CFG_BUILD)),$(2))
524+
# Stop rustc from OOMing when building itself (I think)
525+
RUSTC_FLAGS_i686-w64-mingw32=-C link-args="-Wl,--large-address-aware"
524526
RUSTC_CROSS_FLAGS_i686-w64-mingw32 :=
525527

526528
# x86_64-w64-mingw32 configuration

branches/try2/mk/rt.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,6 @@ 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-
295291
JEMALLOC_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc)
296292
ifeq ($$(CFG_WINDOWSY_$(1)),1)
297293
JEMALLOC_REAL_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc_s)

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 a+x \
286+
$(Q)find $(S)src -type f -perm +111 \
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use util::logv;
2020
use util;
2121

2222
use std::io::File;
23-
use std::io::fs::PathExtensions;
2423
use std::io::fs;
2524
use std::io::net::tcp;
2625
use std::io::process::ProcessExit;
@@ -483,12 +482,12 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
483482
// GDB's script auto loading safe path ...
484483
script_str.push_str(
485484
format!("add-auto-load-safe-path {}\n",
486-
rust_pp_module_abs_path.replace("\\", "\\\\").as_slice())
485+
rust_pp_module_abs_path.as_slice())
487486
.as_slice());
488487
// ... and also the test directory
489488
script_str.push_str(
490489
format!("add-auto-load-safe-path {}\n",
491-
config.build_base.as_str().unwrap().replace("\\", "\\\\"))
490+
config.build_base.as_str().unwrap())
492491
.as_slice());
493492
}
494493
}
@@ -500,7 +499,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
500499

501500
// Load the target executable
502501
script_str.push_str(format!("file {}\n",
503-
exe_file.as_str().unwrap().replace("\\", "\\\\"))
502+
exe_file.as_str().unwrap())
504503
.as_slice());
505504

506505
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 `trigger_callback()` in C,
246+
In this example Rust's `main()` will call `do_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)