Skip to content

Commit 6e0b82e

Browse files
committed
auto merge of #10909 : sanxiyn/rust/coherence, r=alexcrichton
Now coherence checking is always done.
2 parents d52e1bf + 55d2d8e commit 6e0b82e

File tree

1 file changed

+23
-26
lines changed

1 file changed

+23
-26
lines changed

src/librustc/driver/session.rs

+23-26
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,29 @@ pub static time_llvm_passes: uint = 1 << 3;
4545
pub static trans_stats: uint = 1 << 4;
4646
pub static asm_comments: uint = 1 << 5;
4747
pub static no_verify: uint = 1 << 6;
48-
pub static coherence: uint = 1 << 7;
49-
pub static borrowck_stats: uint = 1 << 8;
50-
pub static borrowck_note_pure: uint = 1 << 9;
51-
pub static borrowck_note_loan: uint = 1 << 10;
52-
pub static no_landing_pads: uint = 1 << 11;
53-
pub static debug_llvm: uint = 1 << 12;
54-
pub static count_type_sizes: uint = 1 << 13;
55-
pub static meta_stats: uint = 1 << 14;
56-
pub static no_opt: uint = 1 << 15;
57-
pub static gc: uint = 1 << 16;
58-
pub static debug_info: uint = 1 << 17;
59-
pub static extra_debug_info: uint = 1 << 18;
60-
pub static print_link_args: uint = 1 << 19;
61-
pub static no_debug_borrows: uint = 1 << 20;
62-
pub static lint_llvm: uint = 1 << 21;
63-
pub static print_llvm_passes: uint = 1 << 22;
64-
pub static no_vectorize_loops: uint = 1 << 23;
65-
pub static no_vectorize_slp: uint = 1 << 24;
66-
pub static no_prepopulate_passes: uint = 1 << 25;
67-
pub static use_softfp: uint = 1 << 26;
68-
pub static gen_crate_map: uint = 1 << 27;
69-
pub static prefer_dynamic: uint = 1 << 28;
70-
pub static no_integrated_as: uint = 1 << 29;
71-
pub static lto: uint = 1 << 30;
48+
pub static borrowck_stats: uint = 1 << 7;
49+
pub static borrowck_note_pure: uint = 1 << 8;
50+
pub static borrowck_note_loan: uint = 1 << 9;
51+
pub static no_landing_pads: uint = 1 << 10;
52+
pub static debug_llvm: uint = 1 << 11;
53+
pub static count_type_sizes: uint = 1 << 12;
54+
pub static meta_stats: uint = 1 << 13;
55+
pub static no_opt: uint = 1 << 14;
56+
pub static gc: uint = 1 << 15;
57+
pub static debug_info: uint = 1 << 16;
58+
pub static extra_debug_info: uint = 1 << 17;
59+
pub static print_link_args: uint = 1 << 18;
60+
pub static no_debug_borrows: uint = 1 << 19;
61+
pub static lint_llvm: uint = 1 << 20;
62+
pub static print_llvm_passes: uint = 1 << 21;
63+
pub static no_vectorize_loops: uint = 1 << 22;
64+
pub static no_vectorize_slp: uint = 1 << 23;
65+
pub static no_prepopulate_passes: uint = 1 << 24;
66+
pub static use_softfp: uint = 1 << 25;
67+
pub static gen_crate_map: uint = 1 << 26;
68+
pub static prefer_dynamic: uint = 1 << 27;
69+
pub static no_integrated_as: uint = 1 << 28;
70+
pub static lto: uint = 1 << 29;
7271

7372
pub fn debugging_opts_map() -> ~[(&'static str, &'static str, uint)] {
7473
~[("verbose", "in general, enable more debug printouts", verbose),
@@ -80,7 +79,6 @@ pub fn debugging_opts_map() -> ~[(&'static str, &'static str, uint)] {
8079
("trans-stats", "gather trans statistics", trans_stats),
8180
("asm-comments", "generate comments into the assembly (may change behavior)", asm_comments),
8281
("no-verify", "skip LLVM verification", no_verify),
83-
("coherence", "perform coherence checking", coherence),
8482
("borrowck-stats", "gather borrowck statistics", borrowck_stats),
8583
("borrowck-note-pure", "note where purity is req'd",
8684
borrowck_note_pure),
@@ -315,7 +313,6 @@ impl Session_ {
315313
pub fn asm_comments(&self) -> bool { self.debugging_opt(asm_comments) }
316314
pub fn no_verify(&self) -> bool { self.debugging_opt(no_verify) }
317315
pub fn lint_llvm(&self) -> bool { self.debugging_opt(lint_llvm) }
318-
pub fn coherence(&self) -> bool { self.debugging_opt(coherence) }
319316
pub fn borrowck_stats(&self) -> bool { self.debugging_opt(borrowck_stats) }
320317
pub fn borrowck_note_pure(&self) -> bool {
321318
self.debugging_opt(borrowck_note_pure)

0 commit comments

Comments
 (0)