Skip to content

Commit 04988a6

Browse files
committed
---
yaml --- r: 85502 b: refs/heads/dist-snap c: e185b04 h: refs/heads/master v: v3
1 parent 9e5551b commit 04988a6

File tree

97 files changed

+2633
-992
lines changed

Some content is hidden

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

97 files changed

+2633
-992
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: 29ab2daa5efebb59b5ad4a2710d570e89696e583
9+
refs/heads/dist-snap: e185b049af214cc7900beaae557a12863f4b3ce3
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-
Atributes on the anonymous crate module define important metadata that influences
585+
Attributes 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-
Refering to the previous example of `trait Circle : Shape`:
1276+
Referring 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 derferenced to make the field access possible.
1917+
it is automatically dereferenced to make the field access possible.
19181918

19191919

19201920
### Vector expressions

branches/dist-snap/mk/rt.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ 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 \
7271
rt/rust_rng.cpp \
73-
rt/rust_stack.cpp \
7472
rt/rust_upcall.cpp \
7573
rt/rust_uv.cpp \
7674
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 core::ctypes
16+
// must match std::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 `core::rand::distributions;`. They are
5+
# ziggurat algorithm in `std::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 core::libc types in foreign modules]'
39+
'ctypes[proper use of std::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, proccess it with the provided
179+
/// Input a vector of bytes. If the buffer becomes full, process 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 functon that feeds a string into a digest
50+
* Convenience function that feeds a string into a digest.
5151
*
5252
* # Arguments
5353
*
54-
* * in The string to feed into the digest
54+
* * `input` 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 functon that retrieves the result of a digest as a
61+
* Convenience function 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 iterface for casting C-like enum to uint and back.
21+
/// An interface 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 occurence of `None` represents `stdin`.
159+
this behaviour). Any occurrence 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 equivelant.
169+
POD are not equivalent.
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 occurences of every element in the
368+
/// Returns a HashMap with the number of occurrences 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-
/// Rturns true if the color was set, false otherwise.
160+
/// Returns 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(Eq, Encodable, Decodable)]
37+
#[deriving(Clone, DeepClone, 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(Eq, Encodable, Decodable)]
103+
#[deriving(Clone, DeepClone, 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,14 @@ 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+
694702
let statik = debugging_opts & session::statik != 0;
695703

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

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,16 @@ 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;
20892099
}
20902100
}
20912101

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

Lines changed: 42 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,27 @@ pub enum LangItem {
5757

5858
StrEqFnLangItem, // 19
5959
UniqStrEqFnLangItem, // 20
60-
AnnihilateFnLangItem, // 21
61-
LogTypeFnLangItem, // 22
62-
FailFnLangItem, // 23
63-
FailBoundsCheckFnLangItem, // 24
64-
ExchangeMallocFnLangItem, // 25
65-
ClosureExchangeMallocFnLangItem, // 26
66-
ExchangeFreeFnLangItem, // 27
67-
MallocFnLangItem, // 28
68-
FreeFnLangItem, // 29
69-
BorrowAsImmFnLangItem, // 30
70-
BorrowAsMutFnLangItem, // 31
71-
ReturnToMutFnLangItem, // 32
72-
CheckNotBorrowedFnLangItem, // 33
73-
StrDupUniqFnLangItem, // 34
74-
RecordBorrowFnLangItem, // 35
75-
UnrecordBorrowFnLangItem, // 36
76-
77-
StartFnLangItem, // 37
78-
79-
TyDescStructLangItem, // 38
80-
TyVisitorTraitLangItem, // 39
81-
OpaqueStructLangItem, // 40
60+
LogTypeFnLangItem, // 21
61+
FailFnLangItem, // 22
62+
FailBoundsCheckFnLangItem, // 23
63+
ExchangeMallocFnLangItem, // 24
64+
ClosureExchangeMallocFnLangItem, // 25
65+
ExchangeFreeFnLangItem, // 26
66+
MallocFnLangItem, // 27
67+
FreeFnLangItem, // 28
68+
BorrowAsImmFnLangItem, // 29
69+
BorrowAsMutFnLangItem, // 30
70+
ReturnToMutFnLangItem, // 31
71+
CheckNotBorrowedFnLangItem, // 32
72+
StrDupUniqFnLangItem, // 33
73+
RecordBorrowFnLangItem, // 34
74+
UnrecordBorrowFnLangItem, // 35
75+
76+
StartFnLangItem, // 36
77+
78+
TyDescStructLangItem, // 37
79+
TyVisitorTraitLangItem, // 38
80+
OpaqueStructLangItem, // 39
8281
}
8382

8483
pub struct LanguageItems {
@@ -122,28 +121,27 @@ impl LanguageItems {
122121

123122
19 => "str_eq",
124123
20 => "uniq_str_eq",
125-
21 => "annihilate",
126-
22 => "log_type",
127-
23 => "fail_",
128-
24 => "fail_bounds_check",
129-
25 => "exchange_malloc",
130-
26 => "closure_exchange_malloc",
131-
27 => "exchange_free",
132-
28 => "malloc",
133-
29 => "free",
134-
30 => "borrow_as_imm",
135-
31 => "borrow_as_mut",
136-
32 => "return_to_mut",
137-
33 => "check_not_borrowed",
138-
34 => "strdup_uniq",
139-
35 => "record_borrow",
140-
36 => "unrecord_borrow",
141-
142-
37 => "start",
143-
144-
38 => "ty_desc",
145-
39 => "ty_visitor",
146-
40 => "opaque",
124+
21 => "log_type",
125+
22 => "fail_",
126+
23 => "fail_bounds_check",
127+
24 => "exchange_malloc",
128+
25 => "closure_exchange_malloc",
129+
26 => "exchange_free",
130+
27 => "malloc",
131+
28 => "free",
132+
29 => "borrow_as_imm",
133+
30 => "borrow_as_mut",
134+
31 => "return_to_mut",
135+
32 => "check_not_borrowed",
136+
33 => "strdup_uniq",
137+
34 => "record_borrow",
138+
35 => "unrecord_borrow",
139+
140+
36 => "start",
141+
142+
37 => "ty_desc",
143+
38 => "ty_visitor",
144+
39 => "opaque",
147145

148146
_ => "???"
149147
}
@@ -226,9 +224,6 @@ impl LanguageItems {
226224
pub fn uniq_str_eq_fn(&self) -> Option<def_id> {
227225
self.items[UniqStrEqFnLangItem as uint]
228226
}
229-
pub fn annihilate_fn(&self) -> Option<def_id> {
230-
self.items[AnnihilateFnLangItem as uint]
231-
}
232227
pub fn log_type_fn(&self) -> Option<def_id> {
233228
self.items[LogTypeFnLangItem as uint]
234229
}
@@ -327,7 +322,6 @@ impl<'self> LanguageItemCollector<'self> {
327322

328323
item_refs.insert(@"str_eq", StrEqFnLangItem as uint);
329324
item_refs.insert(@"uniq_str_eq", UniqStrEqFnLangItem as uint);
330-
item_refs.insert(@"annihilate", AnnihilateFnLangItem as uint);
331325
item_refs.insert(@"log_type", LogTypeFnLangItem as uint);
332326
item_refs.insert(@"fail_", FailFnLangItem as uint);
333327
item_refs.insert(@"fail_bounds_check",

0 commit comments

Comments
 (0)