Skip to content

Commit 74d3062

Browse files
committed
---
yaml --- r: 85500 b: refs/heads/dist-snap c: a106613 h: refs/heads/master v: v3
1 parent 3d24669 commit 74d3062

File tree

105 files changed

+1105
-2784
lines changed

Some content is hidden

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

105 files changed

+1105
-2784
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 8b80922a4c7414c5bd3fc96e8f2b511e9603d5e5
9+
refs/heads/dist-snap: a1066130c07b864a1612c49b4b84dc34d5f113a1
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ a referencing source file, or by the name of the crate itself.
582582

583583
Each source file contains a sequence of zero or more `item` definitions,
584584
and may optionally begin with any number of `attributes` that apply to the containing module.
585-
Attributes on the anonymous crate module define important metadata that influences
585+
Atributes on the anonymous crate module define important metadata that influences
586586
the behavior of the compiler.
587587

588588
~~~~~~~~
@@ -1273,7 +1273,7 @@ since the typechecker checks that any type with an implementation of `Circle` al
12731273

12741274
In type-parameterized functions,
12751275
methods of the supertrait may be called on values of subtrait-bound type parameters.
1276-
Referring to the previous example of `trait Circle : Shape`:
1276+
Refering to the previous example of `trait Circle : Shape`:
12771277

12781278
~~~
12791279
# trait Shape { fn area(&self) -> float; }
@@ -1914,7 +1914,7 @@ A field access on a record is an [lvalue](#lvalues-rvalues-and-temporaries) refe
19141914
When the field is mutable, it can be [assigned](#assignment-expressions) to.
19151915

19161916
When the type of the expression to the left of the dot is a pointer to a record or structure,
1917-
it is automatically dereferenced to make the field access possible.
1917+
it is automatically derferenced to make the field access possible.
19181918

19191919

19201920
### Vector expressions

branches/dist-snap/mk/rt.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ RUNTIME_CXXS_$(1)_$(2) := \
6868
rt/sync/rust_thread.cpp \
6969
rt/rust_builtin.cpp \
7070
rt/rust_run_program.cpp \
71+
rt/rust_env.cpp \
7172
rt/rust_rng.cpp \
73+
rt/rust_stack.cpp \
7274
rt/rust_upcall.cpp \
7375
rt/rust_uv.cpp \
7476
rt/rust_crate_map.cpp \

branches/dist-snap/src/etc/cmathconsts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <math.h>
1414
#include <stdio.h>
1515

16-
// must match std::ctypes
16+
// must match core::ctypes
1717

1818
#define C_FLT(x) (float)x
1919
#define C_DBL(x) (double)x

branches/dist-snap/src/etc/ziggurat_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# xfail-license
33

44
# This creates the tables used for distributions implemented using the
5-
# ziggurat algorithm in `std::rand::distributions;`. They are
5+
# ziggurat algorithm in `core::rand::distributions;`. They are
66
# (basically) the tables as used in the ZIGNOR variant (Doornik 2005).
77
# They are changed rarely, so the generated file should be checked in
88
# to git.

branches/dist-snap/src/etc/zsh/_rust

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _rustc_opts_lint=(
3636
'path-statement[path statements with no effect]'
3737
'missing-trait-doc[detects missing documentation for traits]'
3838
'missing-struct-doc[detects missing documentation for structs]'
39-
'ctypes[proper use of std::libc types in foreign modules]'
39+
'ctypes[proper use of core::libc types in foreign modules]'
4040
"unused-mut[detect mut variables which don't need to be mutable]"
4141
'unused-imports[imports that are never used]'
4242
'heap-memory[use of any (~ type or @ type) heap memory]'

branches/dist-snap/src/libextra/crypto/cryptoutil.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub fn add_bytes_to_bits_tuple
176176
/// method that modifies the buffer directory or provides the caller with bytes that can be modifies
177177
/// results in those bytes being marked as used by the buffer.
178178
pub trait FixedBuffer {
179-
/// Input a vector of bytes. If the buffer becomes full, process it with the provided
179+
/// Input a vector of bytes. If the buffer becomes full, proccess it with the provided
180180
/// function and then clear the buffer.
181181
fn input(&mut self, input: &[u8], func: &fn(&[u8]));
182182

branches/dist-snap/src/libextra/crypto/digest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ pub trait Digest {
4747
fn output_bits(&self) -> uint;
4848

4949
/**
50-
* Convenience function that feeds a string into a digest.
50+
* Convenience functon that feeds a string into a digest
5151
*
5252
* # Arguments
5353
*
54-
* * `input` The string to feed into the digest
54+
* * in The string to feed into the digest
5555
*/
5656
fn input_str(&mut self, input: &str) {
5757
self.input(input.as_bytes());
5858
}
5959

6060
/**
61-
* Convenience function that retrieves the result of a digest as a
61+
* Convenience functon that retrieves the result of a digest as a
6262
* ~str in hexadecimal format.
6363
*/
6464
fn result_str(&mut self) -> ~str {

branches/dist-snap/src/libextra/enum_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct EnumSet<E> {
1818
priv bits: uint
1919
}
2020

21-
/// An interface for casting C-like enum to uint and back.
21+
/// An iterface for casting C-like enum to uint and back.
2222
pub trait CLike {
2323
/// Converts C-like enum to uint.
2424
fn to_uint(&self) -> uint;

branches/dist-snap/src/libextra/fileinput.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl FileInput {
156156
/**
157157
Create a `FileInput` object from a vec of files. An empty
158158
vec means lines are read from `stdin` (use `from_vec_raw` to stop
159-
this behaviour). Any occurrence of `None` represents `stdin`.
159+
this behaviour). Any occurence of `None` represents `stdin`.
160160
*/
161161
pub fn from_vec(files: ~[Option<Path>]) -> FileInput {
162162
FileInput::from_vec_raw(

branches/dist-snap/src/libextra/flatpipes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Constructors for flat pipes that send POD types using memcpy.
166166
167167
This module is currently unsafe because it uses `Clone + Send` as a type
168168
parameter bounds meaning POD (plain old data), but `Clone + Send` and
169-
POD are not equivalent.
169+
POD are not equivelant.
170170
171171
*/
172172
pub mod pod {

branches/dist-snap/src/libextra/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ pub fn write_boxplot(w: @io::Writer, s: &Summary, width_hint: uint) {
365365
w.write_str(histr);
366366
}
367367

368-
/// Returns a HashMap with the number of occurrences of every element in the
368+
/// Returns a HashMap with the number of occurences of every element in the
369369
/// sequence that the iterator exposes.
370370
pub fn freq_count<T: Iterator<U>, U: Eq+Hash>(mut iter: T) -> hashmap::HashMap<U, uint> {
371371
let mut map = hashmap::HashMap::new::<U, uint>();

branches/dist-snap/src/libextra/term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl Terminal {
157157
/// If the color is a bright color, but the terminal only supports 8 colors,
158158
/// the corresponding normal color will be used instead.
159159
///
160-
/// Returns true if the color was set, false otherwise.
160+
/// Rturns true if the color was set, false otherwise.
161161
pub fn bg(&self, color: color::Color) -> bool {
162162
let color = self.dim_if_necessary(color);
163163
if self.num_colors > color {

branches/dist-snap/src/libextra/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub mod rustrt {
3434
}
3535

3636
/// A record specifying a time value in seconds and nanoseconds.
37-
#[deriving(Clone, DeepClone, Eq, Encodable, Decodable)]
37+
#[deriving(Eq, Encodable, Decodable)]
3838
pub struct Timespec { sec: i64, nsec: i32 }
3939

4040
/*
@@ -100,7 +100,7 @@ pub fn tzset() {
100100
}
101101
}
102102

103-
#[deriving(Clone, DeepClone, Eq, Encodable, Decodable)]
103+
#[deriving(Eq, Encodable, Decodable)]
104104
pub struct Tm {
105105
tm_sec: i32, // seconds after the minute ~[0-60]
106106
tm_min: i32, // minutes after the hour ~[0-59]

branches/dist-snap/src/librustc/driver/driver.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -691,14 +691,6 @@ pub fn build_session_options(binary: @str,
691691
let extra_debuginfo = debugging_opts & session::extra_debug_info != 0;
692692
let debuginfo = debugging_opts & session::debug_info != 0 ||
693693
extra_debuginfo;
694-
695-
// If debugging info is generated, do not collapse monomorphized function instances.
696-
// Functions with equivalent llvm code still need separate debugging descriptions because names
697-
// might differ.
698-
if debuginfo {
699-
debugging_opts |= session::no_monomorphic_collapse;
700-
}
701-
702694
let statik = debugging_opts & session::statik != 0;
703695

704696
let addl_lib_search_paths = getopts::opt_strs(matches, "L").map(|s| Path(*s));

branches/dist-snap/src/librustc/front/test.rs

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ fn mk_std(cx: &TestCtxt) -> ast::view_item {
292292
}
293293
}
294294

295-
#[cfg(stage0)]
296295
fn mk_test_module(cx: &TestCtxt) -> @ast::item {
297296

298297
// Link to extra
@@ -335,48 +334,6 @@ fn mk_test_module(cx: &TestCtxt) -> @ast::item {
335334

336335
return @item;
337336
}
338-
#[cfg(not(stage0))]
339-
fn mk_test_module(cx: &TestCtxt) -> @ast::item {
340-
341-
// Link to extra
342-
let view_items = ~[mk_std(cx)];
343-
344-
// A constant vector of test descriptors.
345-
let tests = mk_tests(cx);
346-
347-
// The synthesized main function which will call the console test runner
348-
// with our list of tests
349-
let mainfn = (quote_item!(cx.ext_cx,
350-
pub fn main() {
351-
#[main];
352-
extra::test::test_main_static(::std::os::args(), TESTS);
353-
}
354-
)).unwrap();
355-
356-
let testmod = ast::_mod {
357-
view_items: view_items,
358-
items: ~[mainfn, tests],
359-
};
360-
let item_ = ast::item_mod(testmod);
361-
362-
// This attribute tells resolve to let us call unexported functions
363-
let resolve_unexported_attr =
364-
attr::mk_attr(attr::mk_word_item(@"!resolve_unexported"));
365-
366-
let item = ast::item {
367-
ident: cx.sess.ident_of("__test"),
368-
attrs: ~[resolve_unexported_attr],
369-
id: cx.sess.next_node_id(),
370-
node: item_,
371-
vis: ast::public,
372-
span: dummy_sp(),
373-
};
374-
375-
debug!("Synthetic test module:\n%s\n",
376-
pprust::item_to_str(@item.clone(), cx.sess.intr()));
377-
378-
return @item;
379-
}
380337

381338
fn nospan<T>(t: T) -> codemap::spanned<T> {
382339
codemap::spanned { node: t, span: dummy_sp() }
@@ -398,7 +355,6 @@ fn path_node_global(ids: ~[ast::ident]) -> ast::Path {
398355
types: ~[] }
399356
}
400357

401-
#[cfg(stage0)]
402358
fn mk_tests(cx: &TestCtxt) -> @ast::item {
403359

404360
let ext_cx = cx.ext_cx;
@@ -412,17 +368,6 @@ fn mk_tests(cx: &TestCtxt) -> @ast::item {
412368
;
413369
)).unwrap()
414370
}
415-
#[cfg(not(stage0))]
416-
fn mk_tests(cx: &TestCtxt) -> @ast::item {
417-
// The vector of test_descs for this crate
418-
let test_descs = mk_test_descs(cx);
419-
420-
(quote_item!(cx.ext_cx,
421-
pub static TESTS : &'static [self::extra::test::TestDescAndFn] =
422-
$test_descs
423-
;
424-
)).unwrap()
425-
}
426371

427372
fn is_extra(cx: &TestCtxt) -> bool {
428373
let items = attr::find_linkage_metas(cx.crate.attrs);
@@ -453,7 +398,6 @@ fn mk_test_descs(cx: &TestCtxt) -> @ast::expr {
453398
}
454399
}
455400

456-
#[cfg(stage0)]
457401
fn mk_test_desc_and_fn_rec(cx: &TestCtxt, test: &Test) -> @ast::expr {
458402
let span = test.span;
459403
let path = test.path.clone();
@@ -509,57 +453,3 @@ fn mk_test_desc_and_fn_rec(cx: &TestCtxt, test: &Test) -> @ast::expr {
509453
);
510454
e
511455
}
512-
#[cfg(not(stage0))]
513-
fn mk_test_desc_and_fn_rec(cx: &TestCtxt, test: &Test) -> @ast::expr {
514-
let span = test.span;
515-
let path = test.path.clone();
516-
517-
debug!("encoding %s", ast_util::path_name_i(path));
518-
519-
let name_lit: ast::lit =
520-
nospan(ast::lit_str(ast_util::path_name_i(path).to_managed()));
521-
522-
let name_expr = @ast::expr {
523-
id: cx.sess.next_node_id(),
524-
node: ast::expr_lit(@name_lit),
525-
span: span
526-
};
527-
528-
let fn_path = path_node_global(path);
529-
530-
let fn_expr = @ast::expr {
531-
id: cx.sess.next_node_id(),
532-
node: ast::expr_path(fn_path),
533-
span: span,
534-
};
535-
536-
let t_expr = if test.bench {
537-
quote_expr!(cx.ext_cx, self::extra::test::StaticBenchFn($fn_expr) )
538-
} else {
539-
quote_expr!(cx.ext_cx, self::extra::test::StaticTestFn($fn_expr) )
540-
};
541-
542-
let ignore_expr = if test.ignore {
543-
quote_expr!(cx.ext_cx, true )
544-
} else {
545-
quote_expr!(cx.ext_cx, false )
546-
};
547-
548-
let fail_expr = if test.should_fail {
549-
quote_expr!(cx.ext_cx, true )
550-
} else {
551-
quote_expr!(cx.ext_cx, false )
552-
};
553-
554-
let e = quote_expr!(cx.ext_cx,
555-
self::extra::test::TestDescAndFn {
556-
desc: self::extra::test::TestDesc {
557-
name: self::extra::test::StaticTestName($name_expr),
558-
ignore: $ignore_expr,
559-
should_fail: $fail_expr
560-
},
561-
testfn: $t_expr,
562-
}
563-
);
564-
e
565-
}

branches/dist-snap/src/librustc/lib/llvm.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,16 +2086,6 @@ pub mod llvm {
20862086

20872087
#[fast_ffi]
20882088
pub fn LLVMSetUnnamedAddr(GlobalVar: ValueRef, UnnamedAddr: Bool);
2089-
2090-
#[fast_ffi]
2091-
pub fn LLVMDIBuilderCreateTemplateTypeParameter(Builder: DIBuilderRef,
2092-
Scope: ValueRef,
2093-
Name: *c_char,
2094-
Ty: ValueRef,
2095-
File: ValueRef,
2096-
LineNo: c_uint,
2097-
ColumnNo: c_uint)
2098-
-> ValueRef;
20992089
}
21002090
}
21012091

branches/dist-snap/src/librustc/middle/astencode.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,24 +1288,24 @@ fn roundtrip(in_item: Option<@ast::item>) {
12881288

12891289
#[test]
12901290
fn test_basic() {
1291-
let cx = mk_ctxt();
1292-
roundtrip(quote_item!(cx,
1291+
let ext_cx = mk_ctxt();
1292+
roundtrip(quote_item!(
12931293
fn foo() {}
12941294
));
12951295
}
12961296

12971297
#[test]
12981298
fn test_smalltalk() {
1299-
let cx = mk_ctxt();
1300-
roundtrip(quote_item!(cx,
1299+
let ext_cx = mk_ctxt();
1300+
roundtrip(quote_item!(
13011301
fn foo() -> int { 3 + 4 } // first smalltalk program ever executed.
13021302
));
13031303
}
13041304

13051305
#[test]
13061306
fn test_more() {
1307-
let cx = mk_ctxt();
1308-
roundtrip(quote_item!(cx,
1307+
let ext_cx = mk_ctxt();
1308+
roundtrip(quote_item!(
13091309
fn foo(x: uint, y: uint) -> uint {
13101310
let z = x + y;
13111311
return z;
@@ -1315,15 +1315,15 @@ fn test_more() {
13151315

13161316
#[test]
13171317
fn test_simplification() {
1318-
let cx = mk_ctxt();
1319-
let item_in = ast::ii_item(quote_item!(cx,
1318+
let ext_cx = mk_ctxt();
1319+
let item_in = ast::ii_item(quote_item!(
13201320
fn new_int_alist<B>() -> alist<int, B> {
13211321
fn eq_int(a: int, b: int) -> bool { a == b }
13221322
return alist {eq_fn: eq_int, data: ~[]};
13231323
}
13241324
).unwrap());
13251325
let item_out = simplify_ast(&item_in);
1326-
let item_exp = ast::ii_item(quote_item!(cx,
1326+
let item_exp = ast::ii_item(quote_item!(
13271327
fn new_int_alist<B>() -> alist<int, B> {
13281328
return alist {eq_fn: eq_int, data: ~[]};
13291329
}

0 commit comments

Comments
 (0)