Skip to content

Commit d6cdd96

Browse files
luqmanacatamorphism
authored andcommitted
---
yaml --- r: 138420 b: refs/heads/try2 c: 601c2ed h: refs/heads/master v: v3
1 parent 253abc8 commit d6cdd96

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: cd82c4566bc0a436d9feb68891369fd4a79ca73e
8+
refs/heads/try2: 601c2edb4d64a45c702ce56b7e8ec1d232dff099
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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/try2/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/try2/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)