Skip to content

Commit 905b065

Browse files
committed
---
yaml --- r: 15755 b: refs/heads/try c: d709ed2 h: refs/heads/master i: 15753: ef951b2 15751: 651cf2b v: v3
1 parent ddb2dd4 commit 905b065

Some content is hidden

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

73 files changed

+1514
-732
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 16848becaa8a1f812ba5e131cd6d4d4601f63979
5+
refs/heads/try: d709ed2542d25a9dfcda40492412bb99155c8dea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/LICENSE.txt

Lines changed: 105 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ included:
186186
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
187187
OF SUCH DAMAGE.
188188

189+
189190
* The auxiliary file src/etc/pkg/modpath.iss contains a
190191
library routine compiled, by Inno Setup, into the Windows
191192
installer binary. This file is licensed under the LGPL,
@@ -198,8 +199,9 @@ included:
198199
of any of the files installed by such an installer (such
199200
as the Rust compiler or runtime libraries themselves).
200201

202+
201203
* The libuv asynchronous I/O library. Code for this package
202-
is found in the src/rt/libuv directory, within this
204+
is found in the src/libuv directory, within this
203205
distribution. This package is redistributed under the
204206
following terms, as noted in its source:
205207

@@ -230,10 +232,102 @@ included:
230232

231233

232234
* Additional libraries included in libuv carry separate
233-
BSD-compatible licenses. See src/rt/libuv/LICENSE for
235+
BSD-compatible licenses. See src/libuv/LICENSE for
234236
details.
235237

236238

239+
* LLVM and Clang. Code for this package is found in
240+
src/llvm.
241+
242+
Copyright (c) 2003-2012 University of Illinois at
243+
Urbana-Champaign. All rights reserved.
244+
245+
Developed by:
246+
247+
LLVM Team
248+
249+
University of Illinois at Urbana-Champaign
250+
251+
http://llvm.org
252+
253+
Permission is hereby granted, free of charge, to any
254+
person obtaining a copy of this software and associated
255+
documentation files (the "Software"), to deal with the
256+
Software without restriction, including without
257+
limitation the rights to use, copy, modify, merge,
258+
publish, distribute, sublicense, and/or sell copies of
259+
the Software, and to permit persons to whom the Software
260+
is furnished to do so, subject to the following
261+
conditions:
262+
263+
* Redistributions of source code must retain the
264+
above copyright notice, this list of conditions
265+
and the following disclaimers.
266+
267+
* Redistributions in binary form must reproduce the
268+
above copyright notice, this list of conditions
269+
and the following disclaimers in the documentation
270+
and/or other materials provided with the
271+
distribution.
272+
273+
* Neither the names of the LLVM Team, University of
274+
Illinois at Urbana-Champaign, nor the names of its
275+
contributors may be used to endorse or promote
276+
products derived from this Software without
277+
specific prior written permission.
278+
279+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
280+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
281+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
282+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
283+
SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE
284+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
285+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
286+
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
287+
OTHER DEALINGS WITH THE SOFTWARE.
288+
289+
290+
* Additional libraries included in LLVM carry separate
291+
BSD-compatible licenses. See src/llvm/LICENSE.txt for
292+
details.
293+
294+
295+
* Portions of the FFI code for interacting with the native ABI
296+
is derived from the Clay programming language, which carries
297+
the following license.
298+
299+
Copyright (C) 2008-2010 Tachyon Technologies.
300+
All rights reserved.
301+
302+
Redistribution and use in source and binary forms, with
303+
or without modification, are permitted provided that the
304+
following conditions are met:
305+
306+
1. Redistributions of source code must retain the above
307+
copyright notice, this list of conditions and the
308+
following disclaimer.
309+
310+
2. Redistributions in binary form must reproduce the
311+
above copyright notice, this list of conditions and
312+
the following disclaimer in the documentation and/or
313+
other materials provided with the distribution.
314+
315+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR
316+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
317+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
318+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
319+
DEVELOPERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
320+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
321+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
322+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
323+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
324+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
325+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
326+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
327+
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
328+
OF SUCH DAMAGE.
329+
330+
237331
* Additional copyright may be retained by contributors other
238332
than Mozilla or the parties enumerated in this file. Such
239333
copyright can be determined on a case-by-case basis by
@@ -242,19 +336,19 @@ included:
242336
consulting representative comments claiming copyright
243337
ownership for a file.
244338

245-
For example, the text:
339+
For example, the text:
246340

247341
"Copyright (c) 2011 Google Inc."
248342

249-
appears in some files, and these files thereby denote
250-
that their author and copyright-holder is Google Inc.
343+
appears in some files, and these files thereby denote
344+
that their author and copyright-holder is Google Inc.
251345

252-
In all such cases, the absence of explicit licensing text
253-
indicates that the contributor chose to license their
254-
work for distribution under identical terms to those
255-
Mozilla has chosen for the collective work, enumerated
256-
below. The only difference is the retention of copyright
257-
itself, held by the contributor.
346+
In all such cases, the absence of explicit licensing text
347+
indicates that the contributor chose to license their
348+
work for distribution under identical terms to those
349+
Mozilla has chosen for the collective work, enumerated
350+
below. The only difference is the retention of copyright
351+
itself, held by the contributor.
258352

259353

260354
The remaining code and documentation in the collective work

branches/try/src/compiletest/header.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn load_props(testfile: str) -> test_props {
2929
let mut exec_env = [];
3030
let mut compile_flags = option::none;
3131
let mut pp_exact = option::none;
32-
iter_header(testfile) {|ln|
32+
for iter_header(testfile) {|ln|
3333
alt parse_error_pattern(ln) {
3434
option::some(ep) { error_patterns += [ep]; }
3535
option::none { }
@@ -62,14 +62,11 @@ fn load_props(testfile: str) -> test_props {
6262

6363
fn is_test_ignored(config: config, testfile: str) -> bool {
6464
let mut found = false;
65-
iter_header(testfile) {|ln|
66-
// FIXME: Can't return or break from iterator
67-
// (Fix when Issue #1619 is resolved)
68-
found = found || parse_name_directive(ln, "xfail-test");
69-
found = found || parse_name_directive(ln, xfail_target());
70-
if (config.mode == common::mode_pretty) {
71-
found = found || parse_name_directive(ln, "xfail-pretty");
72-
}
65+
for iter_header(testfile) {|ln|
66+
if parse_name_directive(ln, "xfail-test") { ret true; }
67+
if parse_name_directive(ln, xfail_target()) { ret true; }
68+
if config.mode == common::mode_pretty &&
69+
parse_name_directive(ln, "xfail-pretty") { ret true; }
7370
};
7471
ret found;
7572

@@ -78,7 +75,7 @@ fn is_test_ignored(config: config, testfile: str) -> bool {
7875
}
7976
}
8077

81-
fn iter_header(testfile: str, it: fn(str)) {
78+
fn iter_header(testfile: str, it: fn(str) -> bool) -> bool {
8279
let rdr = result::get(io::file_reader(testfile));
8380
while !rdr.eof() {
8481
let ln = rdr.read_line();
@@ -88,9 +85,10 @@ fn iter_header(testfile: str, it: fn(str)) {
8885
// with a warm page cache. Maybe with a cold one.
8986
if str::starts_with(ln, "fn")
9087
|| str::starts_with(ln, "mod") {
91-
break;
92-
} else { it(ln); }
88+
ret false;
89+
} else { if !(it(ln)) { ret false; } }
9390
}
91+
ret true;
9492
}
9593

9694
fn parse_error_pattern(line: str) -> option<str> {

branches/try/src/fuzzer/fuzzer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ fn steal(crate: ast::crate, tm: test_mode) -> stolen_stuff {
154154
fn safe_to_replace_expr(e: ast::expr_, _tm: test_mode) -> bool {
155155
alt e {
156156
// https://github.com/mozilla/rust/issues/652
157-
ast::expr_if(_, _, _) { false }
157+
ast::expr_if(*) { false }
158158
ast::expr_block(_) { false }
159159

160160
// expr_call is also missing a constraint
161-
ast::expr_fn_block(_, _) { false }
161+
ast::expr_fn_block(*) { false }
162162

163163
_ { true }
164164
}

0 commit comments

Comments
 (0)