Skip to content

Commit 0ddc22b

Browse files
committed
---
yaml --- r: 107709 b: refs/heads/dist-snap c: 2846ee6 h: refs/heads/master i: 107707: 46670b4 v: v3
1 parent b18970a commit 0ddc22b

File tree

168 files changed

+2536
-2819
lines changed

Some content is hidden

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

168 files changed

+2536
-2819
lines changed

[refs]

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

branches/dist-snap/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ src/.DS_Store
7575
/doc/latex
7676
/doc/std
7777
/doc/extra
78+
/doc/flate
7879
/doc/green
7980
/doc/native
8081
/doc/rustc
8182
/doc/syntax
83+
/doc/rustdoc
8284
/doc/rustuv
8385
/doc/rustpkg
8486
/nd/

branches/dist-snap/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,7 @@ ifeq ($(NO_REBUILD),)
344344
STDTESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
345345
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.extra \
346346
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.rustuv \
347-
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.green \
348-
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.native
347+
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.green
349348
else
350349
STDTESTDEP_$(1)_$(2)_$(3)_$(4) =
351350
endif

branches/dist-snap/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<keyword>f64</keyword>
8888
<keyword>char</keyword>
8989
<keyword>str</keyword>
90+
<keyword>Either</keyword>
9091
<keyword>Option</keyword>
9192
<keyword>Result</keyword>
9293
</context>
@@ -133,6 +134,8 @@
133134
<keyword>false</keyword>
134135
<keyword>Some</keyword>
135136
<keyword>None</keyword>
137+
<keyword>Left</keyword>
138+
<keyword>Right</keyword>
136139
<keyword>Ok</keyword>
137140
<keyword>Err</keyword>
138141
<keyword>Success</keyword>

branches/dist-snap/src/etc/generate-deriving-span-tests.py

Lines changed: 0 additions & 131 deletions
This file was deleted.

branches/dist-snap/src/etc/kate/rust.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<item> float </item>
8787
<item> char </item>
8888
<item> str </item>
89+
<item> Either </item>
8990
<item> Option </item>
9091
<item> Result </item>
9192
<item> Self </item>
@@ -130,6 +131,8 @@
130131
<item> false </item>
131132
<item> Some </item>
132133
<item> None </item>
134+
<item> Left </item>
135+
<item> Right </item>
133136
<item> Ok </item>
134137
<item> Err </item>
135138
<item> Success </item>

branches/dist-snap/src/etc/vim/syntax/rust.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ syn keyword rustType f64 i8 i16 i32 i64 str Self
4646
" to make it easy to update.
4747

4848
" Core operators {{{3
49+
syn keyword rustEnum Either
50+
syn keyword rustEnumVariant Left Right
4951
syn keyword rustTrait Sized
5052
syn keyword rustTrait Freeze Send
5153
syn keyword rustTrait Add Sub Mul Div Rem Neg Not
@@ -111,6 +113,7 @@ syn keyword rustSelf self
111113
syn keyword rustBoolean true false
112114

113115
syn keyword rustConstant Some None " option
116+
syn keyword rustConstant Left Right " either
114117
syn keyword rustConstant Ok Err " result
115118
syn keyword rustConstant Less Equal Greater " Ordering
116119

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,13 @@ struct Node<T> {
4747
}
4848

4949
/// Double-ended DList iterator
50+
#[deriving(Clone)]
5051
pub struct Items<'a, T> {
5152
priv head: &'a Link<T>,
5253
priv tail: Rawlink<Node<T>>,
5354
priv nelem: uint,
5455
}
5556

56-
// FIXME #11820: the &'a Option<> of the Link stops clone working.
57-
impl<'a, T> Clone for Items<'a, T> {
58-
fn clone(&self) -> Items<'a, T> { *self }
59-
}
60-
6157
/// Double-ended mutable DList iterator
6258
pub struct MutItems<'a, T> {
6359
priv list: &'a mut DList<T>,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,6 @@ impl<'a> RWLockReadMode<'a> {
686686

687687
/// A barrier enables multiple tasks to synchronize the beginning
688688
/// of some computation.
689-
///
690689
/// ```rust
691690
/// use extra::sync::Barrier;
692691
///

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ pub fn run_test(force_ignore: bool,
895895
return;
896896
}
897897
StaticBenchFn(benchfn) => {
898-
let bs = ::test::bench::benchmark(|harness| benchfn(harness));
898+
let bs = ::test::bench::benchmark(benchfn);
899899
monitor_ch.send((desc, TrBench(bs)));
900900
return;
901901
}

branches/dist-snap/src/librustc/back/abi.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ pub static general_code_alignment: uint = 16u;
4242

4343
pub static tydesc_field_size: uint = 0u;
4444
pub static tydesc_field_align: uint = 1u;
45-
pub static tydesc_field_drop_glue: uint = 2u;
46-
pub static tydesc_field_visit_glue: uint = 3u;
47-
pub static tydesc_field_name_offset: uint = 4u;
48-
pub static n_tydesc_fields: uint = 5u;
45+
pub static tydesc_field_take_glue: uint = 2u;
46+
pub static tydesc_field_drop_glue: uint = 3u;
47+
pub static tydesc_field_visit_glue: uint = 4u;
48+
pub static tydesc_field_name_offset: uint = 5u;
49+
pub static n_tydesc_fields: uint = 6u;
4950

5051
// The two halves of a closure: code and environment.
5152
pub static fn_field_code: uint = 0u;

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

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -897,56 +897,42 @@ pub fn build_session_options(binary: ~str,
897897
return sopts;
898898
}
899899

900-
pub fn build_session(sopts: @session::Options,
901-
local_crate_source_file: Option<Path>,
902-
demitter: @diagnostic::Emitter)
900+
pub fn build_session(sopts: @session::Options, demitter: @diagnostic::Emitter)
903901
-> Session {
904902
let codemap = @codemap::CodeMap::new();
905903
let diagnostic_handler =
906904
diagnostic::mk_handler(Some(demitter));
907905
let span_diagnostic_handler =
908906
diagnostic::mk_span_handler(diagnostic_handler, codemap);
909-
910-
build_session_(sopts, local_crate_source_file, codemap, demitter, span_diagnostic_handler)
907+
build_session_(sopts, codemap, demitter, span_diagnostic_handler)
911908
}
912909

913910
pub fn build_session_(sopts: @session::Options,
914-
local_crate_source_file: Option<Path>,
915-
codemap: @codemap::CodeMap,
911+
cm: @codemap::CodeMap,
916912
demitter: @diagnostic::Emitter,
917913
span_diagnostic_handler: @diagnostic::SpanHandler)
918914
-> Session {
919915
let target_cfg = build_target_config(sopts, demitter);
920-
let p_s = parse::new_parse_sess_special_handler(span_diagnostic_handler, codemap);
916+
let p_s = parse::new_parse_sess_special_handler(span_diagnostic_handler,
917+
cm);
921918
let cstore = @CStore::new(token::get_ident_interner());
922919
let filesearch = @filesearch::FileSearch::new(
923920
&sopts.maybe_sysroot,
924921
sopts.target_triple,
925922
sopts.addl_lib_search_paths);
926-
927-
// Make the path absolute, if necessary
928-
let local_crate_source_file = local_crate_source_file.map(|path|
929-
if path.is_absolute() {
930-
path.clone()
931-
} else {
932-
os::getcwd().join(path.clone())
933-
}
934-
);
935-
936923
@Session_ {
937924
targ_cfg: target_cfg,
938925
opts: sopts,
939926
cstore: cstore,
940927
parse_sess: p_s,
941-
codemap: codemap,
928+
codemap: cm,
942929
// For a library crate, this is always none
943930
entry_fn: RefCell::new(None),
944931
entry_type: Cell::new(None),
945932
macro_registrar_fn: RefCell::new(None),
946933
span_diagnostic: span_diagnostic_handler,
947934
filesearch: filesearch,
948935
building_library: Cell::new(false),
949-
local_crate_source_file: local_crate_source_file,
950936
working_dir: os::getcwd(),
951937
lints: RefCell::new(HashMap::new()),
952938
node_id: Cell::new(1),
@@ -1178,8 +1164,13 @@ mod test {
11781164
Ok(m) => m,
11791165
Err(f) => fail!("test_switch_implies_cfg_test: {}", f.to_err_msg())
11801166
};
1181-
let sessopts = build_session_options(~"rustc", matches, @diagnostic::DefaultEmitter);
1182-
let sess = build_session(sessopts, None, @diagnostic::DefaultEmitter);
1167+
let sessopts = build_session_options(
1168+
~"rustc",
1169+
matches,
1170+
@diagnostic::DefaultEmitter as @diagnostic::Emitter);
1171+
let sess = build_session(sessopts,
1172+
@diagnostic::DefaultEmitter as
1173+
@diagnostic::Emitter);
11831174
let cfg = build_configuration(sess);
11841175
assert!((attr::contains_name(cfg, "test")));
11851176
}
@@ -1196,8 +1187,13 @@ mod test {
11961187
f.to_err_msg());
11971188
}
11981189
};
1199-
let sessopts = build_session_options(~"rustc", matches, @diagnostic::DefaultEmitter);
1200-
let sess = build_session(sessopts, None, @diagnostic::DefaultEmitter);
1190+
let sessopts = build_session_options(
1191+
~"rustc",
1192+
matches,
1193+
@diagnostic::DefaultEmitter as @diagnostic::Emitter);
1194+
let sess = build_session(sessopts,
1195+
@diagnostic::DefaultEmitter as
1196+
@diagnostic::Emitter);
12011197
let cfg = build_configuration(sess);
12021198
let mut test_items = cfg.iter().filter(|m| "test" == m.name());
12031199
assert!(test_items.next().is_some());

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,6 @@ pub struct Session_ {
211211
macro_registrar_fn: RefCell<Option<ast::DefId>>,
212212
filesearch: @filesearch::FileSearch,
213213
building_library: Cell<bool>,
214-
// The name of the root source file of the crate, in the local file system. The path is always
215-
// expected to be absolute. `None` means that there is no source file.
216-
local_crate_source_file: Option<Path>,
217214
working_dir: Path,
218215
lints: RefCell<HashMap<ast::NodeId,
219216
~[(lint::Lint, codemap::Span, ~str)]>>,

0 commit comments

Comments
 (0)