Skip to content

Commit ac41533

Browse files
committed
---
yaml --- r: 155407 b: refs/heads/try2 c: 58413c0 h: refs/heads/master i: 155405: 39999ff 155403: 7bac28d 155399: a5404dd 155391: 462693d v: v3
1 parent 9bdcce3 commit ac41533

Some content is hidden

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

82 files changed

+1114
-907
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: e87209ecd6fd22bde2185083e7034c674498d915
8+
refs/heads/try2: 58413c09cd52ea4005d6ea7733ba1fb3a8f36589
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/rt.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ LIBUV_CFLAGS_$(1) := $(subst -Werror,,$(CFG_GCCISH_CFLAGS_$(1)))
203203

204204
$$(LIBUV_MAKEFILE_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS) $$(LIBUV_STAMP_$(1))
205205
(cd $(S)src/libuv/ && \
206+
CC="$$(CC_$(1))" \
207+
CXX="$$(CXX_$(1))" \
208+
AR="$$(AR_$(1))" \
206209
$$(CFG_PYTHON) ./gyp_uv.py -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) \
207210
-D ninja \
208211
-DOS=$$(LIBUV_OSTYPE_$(1)) \
@@ -225,6 +228,9 @@ else ifeq ($(OSTYPE_$(1)), apple-ios) # iOS
225228
$$(LIBUV_XCODEPROJ_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS) $$(LIBUV_STAMP_$(1))
226229
cp -rf $(S)src/libuv/ $$(LIBUV_BUILD_DIR_$(1))
227230
(cd $$(LIBUV_BUILD_DIR_$(1)) && \
231+
CC="$$(CC_$(1))" \
232+
CXX="$$(CXX_$(1))" \
233+
AR="$$(AR_$(1))" \
228234
$$(CFG_PYTHON) ./gyp_uv.py -f xcode \
229235
-D ninja \
230236
-R libuv)

branches/try2/mk/tests.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ ifdef VERBOSE
6060
CTEST_TESTARGS += --verbose
6161
endif
6262

63+
# Setting locale ensures that gdb's output remains consistent.
64+
# This prevents tests from failing with some locales (fixes #17423).
65+
export LC_ALL=C
66+
6367
# If we're running perf then set this environment variable
6468
# to put the benchmarks into 'hard mode'
6569
ifeq ($(MAKECMDGOALS),perf)
66-
RUST_BENCH=1
67-
export RUST_BENCH
70+
export RUST_BENCH=1
6871
endif
6972

7073
TEST_LOG_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log

branches/try2/src/compiletest/runtest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
444444
"-nx".to_string(),
445445
format!("-command={}", debugger_script.as_str().unwrap()));
446446

447-
let gdb_path = tool_path.append("/bin/arm-linux-androideabi-gdb");
447+
let mut gdb_path = tool_path;
448+
gdb_path.push_str("/bin/arm-linux-androideabi-gdb");
448449
let procsrv::Result {
449450
out,
450451
err,

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ pub extern fn dot_product(a: *const u32, a_len: u32,
573573
return ret;
574574
}
575575
576-
#[lang = "begin_unwind"]
577-
extern fn begin_unwind(args: &core::fmt::Arguments,
576+
#[lang = "fail_fmt"]
577+
extern fn fail_fmt(args: &core::fmt::Arguments,
578578
file: &str,
579579
line: uint) -> ! {
580580
loop {}
@@ -587,8 +587,8 @@ extern fn begin_unwind(args: &core::fmt::Arguments,
587587
```
588588

589589
Note that there is one extra lang item here which differs from the examples
590-
above, `begin_unwind`. This must be defined by consumers of libcore because the
591-
core library declares failure, but it does not define it. The `begin_unwind`
590+
above, `fail_fmt`. This must be defined by consumers of libcore because the
591+
core library declares failure, but it does not define it. The `fail_fmt`
592592
lang item is this crate's definition of failure, and it must be guaranteed to
593593
never return.
594594

@@ -706,7 +706,7 @@ Other features provided by lang items include:
706706
`==`, `<`, dereferencing (`*`) and `+` (etc.) operators are all
707707
marked with lang items; those specific four are `eq`, `ord`,
708708
`deref`, and `add` respectively.
709-
- stack unwinding and general failure; the `eh_personality`, `fail_`
709+
- stack unwinding and general failure; the `eh_personality`, `fail`
710710
and `fail_bounds_checks` lang items.
711711
- the traits in `std::kinds` used to indicate types that satisfy
712712
various kinds; lang items `send`, `sync` and `copy`.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
" Vim compiler file
2+
" Compiler: Cargo Compiler
3+
" Maintainer: Damien Radtke <[email protected]>
4+
" Latest Revision: 2014 Sep 18
5+
6+
if exists("current_compiler")
7+
finish
8+
endif
9+
let current_compiler = "cargo"
10+
11+
if exists(":CompilerSet") != 2
12+
command -nargs=* CompilerSet setlocal <args>
13+
endif
14+
15+
CompilerSet errorformat&
16+
CompilerSet makeprg=cargo\ $*
17+
18+
" Allow a configurable global Cargo.toml name. This makes it easy to
19+
" support variations like 'cargo.toml'.
20+
if !exists('g:cargo_toml_name')
21+
let g:cargo_toml_name = 'Cargo.toml'
22+
endif
23+
24+
let s:toml_dir = fnamemodify(findfile(g:cargo_toml_name, '.;'), ':p:h').'/'
25+
26+
if s:toml_dir != ''
27+
augroup cargo
28+
au!
29+
au QuickfixCmdPost make call s:FixPaths()
30+
augroup END
31+
32+
" FixPaths() is run after Cargo, and is used to change the file paths
33+
" to be relative to the current directory instead of Cargo.toml.
34+
function! s:FixPaths()
35+
let qflist = getqflist()
36+
for qf in qflist
37+
if !qf['valid']
38+
continue
39+
endif
40+
let filename = bufname(qf['bufnr'])
41+
if stridx(filename, s:toml_dir) == -1
42+
let filename = s:toml_dir.filename
43+
endif
44+
let qf['filename'] = simplify(s:toml_dir.bufname(qf['bufnr']))
45+
call remove(qf, 'bufnr')
46+
endfor
47+
call setqflist(qflist, 'r')
48+
endfunction
49+
endif

branches/try2/src/libcollections/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ pub trait StrAllocating: Str {
698698
let me = self.as_slice();
699699
let mut out = String::with_capacity(me.len());
700700
for c in me.chars() {
701-
c.escape_default(|c| out.push_char(c));
701+
c.escape_default(|c| out.push(c));
702702
}
703703
out
704704
}
@@ -708,7 +708,7 @@ pub trait StrAllocating: Str {
708708
let me = self.as_slice();
709709
let mut out = String::with_capacity(me.len());
710710
for c in me.chars() {
711-
c.escape_unicode(|c| out.push_char(c));
711+
c.escape_unicode(|c| out.push(c));
712712
}
713713
out
714714
}

0 commit comments

Comments
 (0)