Skip to content

Commit 6cc567d

Browse files
luqmanacatamorphism
authored andcommitted
---
yaml --- r: 47154 b: refs/heads/try c: 601c2ed h: refs/heads/master v: v3
1 parent 8e6c7b8 commit 6cc567d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5-
refs/heads/try: cd82c4566bc0a436d9feb68891369fd4a79ca73e
5+
refs/heads/try: 601c2edb4d64a45c702ce56b7e8ec1d232dff099
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/librusti/rusti.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn record(repl: Repl, blk: @ast::blk, intr: @token::ident_interner) -> Repl {
131131

132132
/// Run an input string in a Repl, returning the new Repl.
133133
fn run(repl: Repl, input: ~str) -> Repl {
134-
let options: @session::options = @{
134+
let options = @session::options {
135135
crate_type: session::unknown_crate,
136136
binary: repl.binary,
137137
addl_lib_search_paths: repl.lib_search_paths.map(|p| Path(*p)),
@@ -157,7 +157,7 @@ fn run(repl: Repl, input: ~str) -> Repl {
157157

158158
let outputs = driver::build_output_filenames(wrapped, &None, &None, sess);
159159
debug!("calling compile_upto");
160-
let {crate: crate, tcx: _} = driver::compile_upto(sess, cfg, wrapped,
160+
let (crate, _) = driver::compile_upto(sess, cfg, wrapped,
161161
driver::cu_everything,
162162
Some(outputs));
163163

@@ -196,7 +196,7 @@ fn run(repl: Repl, input: ~str) -> Repl {
196196
fn compile_crate(src_filename: ~str, binary: ~str) -> Option<bool> {
197197
match do task::try {
198198
let src_path = Path(src_filename);
199-
let options: @session::options = @{
199+
let options = @session::options {
200200
binary: binary,
201201
addl_lib_search_paths: ~[os::getcwd()],
202202
.. *session::basic_options()

branches/try/src/librustpkg/rustpkg.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ impl PackageScript {
6464
}
6565

6666
let binary = os::args()[0];
67-
let options: @session::options = @{
67+
let options = @session::options {
6868
binary: binary,
6969
crate_type: session::bin_crate,
7070
.. *session::basic_options()
7171
};
7272
let input = driver::file_input(script);
7373
let sess = driver::build_session(options, diagnostic::emit);
7474
let cfg = driver::build_configuration(sess, binary, input);
75-
let {crate, _} = driver::compile_upto(sess, cfg, input,
75+
let (crate, _) = driver::compile_upto(sess, cfg, input,
7676
driver::cu_parse, None);
7777
let mut id = None;
7878
let mut vers = None;

branches/try/src/librustpkg/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ pub fn compile_input(sysroot: Option<Path>, input: driver::input, dir: &Path,
599599
let test_dir = dir.push(~"test");
600600
let binary = os::args()[0];
601601
let matches = getopts(flags, driver::optgroups()).get();
602-
let options = @{
602+
let options = @session::options {
603603
crate_type: session::unknown_crate,
604604
optimize: if opt { session::Aggressive } else { session::No },
605605
test: test,
@@ -612,15 +612,15 @@ pub fn compile_input(sysroot: Option<Path>, input: driver::input, dir: &Path,
612612
crate_cfg.push(attr::mk_word_item(@cfg));
613613
}
614614

615-
let options = @{
615+
let options = @session::options {
616616
cfg: vec::append(options.cfg, crate_cfg),
617617
.. *options
618618
};
619619
let sess = driver::build_session(options, diagnostic::emit);
620620
let cfg = driver::build_configuration(sess, binary, input);
621621
let mut outputs = driver::build_output_filenames(input, &None, &None,
622622
sess);
623-
let {crate, _} = driver::compile_upto(sess, cfg, input, driver::cu_parse,
623+
let (crate, _) = driver::compile_upto(sess, cfg, input, driver::cu_parse,
624624
Some(outputs));
625625

626626
let mut name = None;

0 commit comments

Comments
 (0)