Skip to content

Commit a2a6184

Browse files
committed
---
yaml --- r: 144733 b: refs/heads/try2 c: 1fbbc71 h: refs/heads/master i: 144731: 7047d60 v: v3
1 parent 11d0e0d commit a2a6184

File tree

245 files changed

+5029
-7470
lines changed

Some content is hidden

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

245 files changed

+5029
-7470
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: 3c3ae1d0e26c9ae0906dc57daa14bb9e4627e3c8
8+
refs/heads/try2: 1fbbc71a335996a1a8e5560117bde956a54816cb
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ done
667667
make_dir llvm
668668
for t in $CFG_HOST_TRIPLES
669669
do
670-
make_dir llvm/$t
670+
make_dir $t/llvm
671671
done
672672

673673
make_dir rustllvm
@@ -791,7 +791,7 @@ do
791791

792792
if [ -z $CFG_LLVM_ROOT ]
793793
then
794-
LLVM_BUILD_DIR=${CFG_BUILD_DIR}llvm/$t
794+
LLVM_BUILD_DIR=${CFG_BUILD_DIR}$t/llvm
795795
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]
796796
then
797797
LLVM_DBG_OPTS="--enable-debug-symbols --disable-optimized"

branches/try2/doc/rust.md

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ code_. They are defined in the same way as any other Rust function,
10381038
except that they have the `extern` modifier.
10391039

10401040
~~~
1041-
// Declares an extern fn, the ABI defaults to "C"
1041+
// Declares an extern fn, the ABI defaults to "C"
10421042
extern fn new_vec() -> ~[int] { ~[] }
10431043
10441044
// Declares an extern fn with "stdcall" ABI
@@ -1723,62 +1723,6 @@ Supported traits for `deriving` are:
17231723
each constituent field of the type must also implement `ToStr` and will have
17241724
`field.to_str()` invoked to build up the result.
17251725

1726-
### Stability
1727-
One can indicate the stability of an API using the following attributes:
1728-
1729-
* `deprecated`: This item should no longer be used, e.g. it has been
1730-
replaced. No guarantee of backwards-compatibility.
1731-
* `experimental`: This item was only recently introduced or is
1732-
otherwise in a state of flux. It may change significantly, or even
1733-
be removed. No guarantee of backwards-compatibility.
1734-
* `unstable`: This item is still under development, but requires more
1735-
testing to be considered stable. No guarantee of backwards-compatibility.
1736-
* `stable`: This item is considered stable, and will not change
1737-
significantly. Guarantee of backwards-compatibility.
1738-
* `frozen`: This item is very stable, and is unlikely to
1739-
change. Guarantee of backwards-compatibility.
1740-
* `locked`: This item will never change unless a serious bug is
1741-
found. Guarantee of backwards-compatibility.
1742-
1743-
These levels are directly inspired by
1744-
[Node.js' "stability index"](http://nodejs.org/api/documentation.html).
1745-
1746-
There are lints for disallowing items marked with certain levels:
1747-
`deprecated`, `experimental` and `unstable`; the first two will warn
1748-
by default. Items with not marked with a stability are considered to
1749-
be unstable for the purposes of the lint. One can give an optional
1750-
string that will be displayed when the lint flags the use of an item.
1751-
1752-
~~~ {.xfail-test}
1753-
#[warn(unstable)];
1754-
1755-
#[deprecated="replaced by `best`"]
1756-
fn bad() {
1757-
// delete everything
1758-
}
1759-
1760-
fn better() {
1761-
// delete fewer things
1762-
}
1763-
1764-
#[stable]
1765-
fn best() {
1766-
// delete nothing
1767-
}
1768-
1769-
fn main() {
1770-
bad(); // "warning: use of deprecated item: replaced by `best`"
1771-
1772-
better(); // "warning: use of unmarked item"
1773-
1774-
best(); // no warning
1775-
}
1776-
~~~
1777-
1778-
> **Note:** Currently these are only checked when applied to
1779-
> individual functions, structs, methods and enum variants, *not* to
1780-
> entire modules, traits, impls or enums themselves.
1781-
17821726
# Statements and expressions
17831727

17841728
Rust is _primarily_ an expression language. This means that most forms of

branches/try2/mk/rt.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ RUNTIME_CXXS_$(1)_$(2) := \
7676
rt/rust_upcall.cpp \
7777
rt/rust_uv.cpp \
7878
rt/rust_crate_map.cpp \
79+
rt/rust_log.cpp \
7980
rt/isaac/randport.cpp \
8081
rt/miniz.cpp \
8182
rt/memory_region.cpp \

branches/try2/src/compiletest/compiletest.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
extern mod extra;
1717

1818
use std::os;
19-
use std::rt;
2019
use std::f64;
2120

2221
use extra::getopts;
@@ -224,10 +223,6 @@ pub fn mode_str(mode: mode) -> ~str {
224223
pub fn run_tests(config: &config) {
225224
let opts = test_opts(config);
226225
let tests = make_tests(config);
227-
// sadly osx needs some file descriptor limits raised for running tests in
228-
// parallel (especially when we have lots and lots of child processes).
229-
// For context, see #8904
230-
rt::test::prepare_for_lots_of_tests();
231226
let res = test::run_tests_console(&opts, tests);
232227
if !res { fail!("Some tests failed"); }
233228
}
@@ -307,9 +302,8 @@ pub fn make_test_name(config: &config, testfile: &Path) -> test::TestName {
307302
// Try to elide redundant long paths
308303
fn shorten(path: &Path) -> ~str {
309304
let filename = path.filename();
310-
let p = path.pop();
311-
let dir = p.filename();
312-
fmt!("%s/%s", dir.unwrap_or_default(""), filename.unwrap_or_default(""))
305+
let dir = path.pop().filename();
306+
fmt!("%s/%s", dir.unwrap_or_default(~""), filename.unwrap_or_default(~""))
313307
}
314308

315309
test::DynTestName(fmt!("[%s] %s",

branches/try2/src/compiletest/header.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
use common::config;
1212
use common;
13-
use util;
1413

1514
use std::io;
15+
use std::os;
1616

1717
pub struct TestProps {
1818
// Lines that should be expected, in order, on standard out
@@ -89,13 +89,13 @@ pub fn load_props(testfile: &Path) -> TestProps {
8989
}
9090

9191
pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
92-
fn xfail_target(config: &config) -> ~str {
93-
~"xfail-" + util::get_os(config.target)
92+
fn xfail_target() -> ~str {
93+
~"xfail-" + os::SYSNAME
9494
}
9595
9696
let val = do iter_header(testfile) |ln| {
9797
if parse_name_directive(ln, "xfail-test") { false }
98-
else if parse_name_directive(ln, xfail_target(config)) { false }
98+
else if parse_name_directive(ln, xfail_target()) { false }
9999
else if config.mode == common::mode_pretty &&
100100
parse_name_directive(ln, "xfail-pretty") { false }
101101
else { true }

branches/try2/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ fn _arm_push_aux_shared_library(config: &config, testfile: &Path) {
880880
let dirs = os::list_dir_path(&Path(tstr));
881881
for file in dirs.iter() {
882882

883-
if (file.filetype() == Some(".so")) {
883+
if (file.filetype() == Some(~".so")) {
884884

885885
let copy_result = procsrv::run("", config.adb_path,
886886
[~"push", file.to_str(), config.adb_test_dir.clone()],

branches/try2/src/compiletest/util.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,6 @@ use common::config;
1313
use std::io;
1414
use std::os::getenv;
1515

16-
/// Conversion table from triple OS name to Rust SYSNAME
17-
static OS_TABLE: &'static [(&'static str, &'static str)] = &[
18-
("mingw32", "win32"),
19-
("win32", "win32"),
20-
("darwin", "macos"),
21-
("android", "android"),
22-
("linux", "linux"),
23-
("freebsd", "freebsd"),
24-
];
25-
26-
pub fn get_os(triple: &str) -> &'static str {
27-
for &(triple_os, os) in OS_TABLE.iter() {
28-
if triple.contains(triple_os) {
29-
return os
30-
}
31-
}
32-
fail!("Cannot determine OS from triple");
33-
}
34-
3516
pub fn make_new_path(path: &str) -> ~str {
3617

3718
// Windows just uses PATH as the library search path, so we have to

branches/try2/src/etc/unicode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def emit_property_module(f, mod, tbl):
158158
keys.sort()
159159
emit_bsearch_range_table(f);
160160
for cat in keys:
161-
if cat == "Cs": continue
162161
f.write(" static %s_table : &'static [(char,char)] = &[\n" % cat)
163162
ix = 0
164163
for pair in tbl[cat]:

branches/try2/src/etc/vim/ftplugin/rust.vim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ else
2121
setlocal comments=s0:/*!,m:\ ,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,://
2222
endif
2323
setlocal commentstring=//%s
24-
setlocal formatoptions-=t formatoptions+=croqnl
25-
" j was only added in 7.3.541, so stop complaints about its nonexistence
26-
silent! setlocal formatoptions+=j
24+
setlocal formatoptions-=t formatoptions+=croqnlj
2725

2826
" This includeexpr isn't perfect, but it's a good start
2927
setlocal includeexpr=substitute(v:fname,'::','/','g')

0 commit comments

Comments
 (0)