Skip to content

Commit afb7c06

Browse files
committed
Remove unused nll debug flags
1 parent 49e52e7 commit afb7c06

File tree

5 files changed

+9
-19
lines changed

5 files changed

+9
-19
lines changed

src/librustc/session/config.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1309,12 +1309,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
13091309
"Disable the instrumentation pre-inliner, useful for profiling / PGO."),
13101310
relro_level: Option<RelroLevel> = (None, parse_relro_level, [TRACKED],
13111311
"choose which RELRO level to use"),
1312-
nll_subminimal_causes: bool = (false, parse_bool, [UNTRACKED],
1313-
"when tracking region error causes, accept subminimal results for faster execution."),
13141312
nll_facts: bool = (false, parse_bool, [UNTRACKED],
13151313
"dump facts from NLL analysis into side files"),
1316-
disable_nll_user_type_assert: bool = (false, parse_bool, [UNTRACKED],
1317-
"disable user provided type assertion in NLL"),
13181314
nll_dont_emit_read_for_match: bool = (false, parse_bool, [UNTRACKED],
13191315
"in match codegen, do not include FakeRead statements (used by mir-borrowck)"),
13201316
dont_buffer_diagnostics: bool = (false, parse_bool, [UNTRACKED],

src/test/run-pass/generator/yield-subtype.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![allow(dead_code)]
44

55
// revisions:lexical nll
6-
//[nll]compile-flags: -Z disable-nll-user-type-assert
76
#![cfg_attr(nll, feature(nll))]
87

98
#![feature(generators)]

src/test/ui/span/dropck_vec_cycle_checked.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0597]: `c2` does not live long enough
2-
--> $DIR/dropck_vec_cycle_checked.rs:103:24
2+
--> $DIR/dropck_vec_cycle_checked.rs:98:24
33
|
44
LL | c1.v[0].v.set(Some(&c2));
55
| ^^^ borrowed value does not live long enough
@@ -13,7 +13,7 @@ LL | }
1313
= note: values in a scope are dropped in the opposite order they are defined
1414

1515
error[E0597]: `c3` does not live long enough
16-
--> $DIR/dropck_vec_cycle_checked.rs:105:24
16+
--> $DIR/dropck_vec_cycle_checked.rs:100:24
1717
|
1818
LL | c1.v[1].v.set(Some(&c3));
1919
| ^^^ borrowed value does not live long enough
@@ -27,7 +27,7 @@ LL | }
2727
= note: values in a scope are dropped in the opposite order they are defined
2828

2929
error[E0597]: `c1` does not live long enough
30-
--> $DIR/dropck_vec_cycle_checked.rs:111:24
30+
--> $DIR/dropck_vec_cycle_checked.rs:106:24
3131
|
3232
LL | c3.v[0].v.set(Some(&c1));
3333
| ^^^ borrowed value does not live long enough

src/test/ui/span/dropck_vec_cycle_checked.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
// compile-flags: -Z nll-subminimal-causes
2-
// (Work around rust-lang/rust#49998 by opting into nll-subminimal-causes.)
3-
41
// Reject mixing cyclic structure and Drop when using Vec.
52
//
63
// (Compare against compile-fail/dropck_arr_cycle_checked.rs)
74

8-
9-
105
use std::cell::Cell;
116
use id::Id;
127

src/test/ui/span/dropck_vec_cycle_checked.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0597]: `c2` does not live long enough
2-
--> $DIR/dropck_vec_cycle_checked.rs:103:25
2+
--> $DIR/dropck_vec_cycle_checked.rs:98:25
33
|
44
LL | c1.v[0].v.set(Some(&c2));
55
| ^^ borrowed value does not live long enough
@@ -10,7 +10,7 @@ LL | }
1010
= note: values in a scope are dropped in the opposite order they are created
1111

1212
error[E0597]: `c3` does not live long enough
13-
--> $DIR/dropck_vec_cycle_checked.rs:105:25
13+
--> $DIR/dropck_vec_cycle_checked.rs:100:25
1414
|
1515
LL | c1.v[1].v.set(Some(&c3));
1616
| ^^ borrowed value does not live long enough
@@ -21,7 +21,7 @@ LL | }
2121
= note: values in a scope are dropped in the opposite order they are created
2222

2323
error[E0597]: `c2` does not live long enough
24-
--> $DIR/dropck_vec_cycle_checked.rs:107:25
24+
--> $DIR/dropck_vec_cycle_checked.rs:102:25
2525
|
2626
LL | c2.v[0].v.set(Some(&c2));
2727
| ^^ borrowed value does not live long enough
@@ -32,7 +32,7 @@ LL | }
3232
= note: values in a scope are dropped in the opposite order they are created
3333

3434
error[E0597]: `c3` does not live long enough
35-
--> $DIR/dropck_vec_cycle_checked.rs:109:25
35+
--> $DIR/dropck_vec_cycle_checked.rs:104:25
3636
|
3737
LL | c2.v[1].v.set(Some(&c3));
3838
| ^^ borrowed value does not live long enough
@@ -43,7 +43,7 @@ LL | }
4343
= note: values in a scope are dropped in the opposite order they are created
4444

4545
error[E0597]: `c1` does not live long enough
46-
--> $DIR/dropck_vec_cycle_checked.rs:111:25
46+
--> $DIR/dropck_vec_cycle_checked.rs:106:25
4747
|
4848
LL | c3.v[0].v.set(Some(&c1));
4949
| ^^ borrowed value does not live long enough
@@ -54,7 +54,7 @@ LL | }
5454
= note: values in a scope are dropped in the opposite order they are created
5555

5656
error[E0597]: `c2` does not live long enough
57-
--> $DIR/dropck_vec_cycle_checked.rs:113:25
57+
--> $DIR/dropck_vec_cycle_checked.rs:108:25
5858
|
5959
LL | c3.v[1].v.set(Some(&c2));
6060
| ^^ borrowed value does not live long enough

0 commit comments

Comments
 (0)