Skip to content

Commit f462bca

Browse files
committed
Re-enable drop tracking
1 parent 44ca6bc commit f462bca

File tree

6 files changed

+1
-21
lines changed

6 files changed

+1
-21
lines changed

compiler/rustc_typeck/src/check/generator_interior.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mod drop_ranges;
2525
// FIXME(eholk): This flag is here to give a quick way to disable drop tracking in case we find
2626
// unexpected breakages while it's still new. It should be removed before too long. For example,
2727
// see #93161.
28-
const ENABLE_DROP_TRACKING: bool = false;
28+
const ENABLE_DROP_TRACKING: bool = true;
2929

3030
struct InteriorVisitor<'a, 'tcx> {
3131
fcx: &'a FnCtxt<'a, 'tcx>,

src/test/ui/async-await/async-fn-nonsend.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
// edition:2018
22
// compile-flags: --crate-type lib
33

4-
// FIXME(eholk): temporarily disabled while drop range tracking is disabled
5-
// (see generator_interior.rs:27)
6-
// ignore-test
7-
84
use std::{cell::RefCell, fmt::Debug, rc::Rc};
95

106
fn non_sync() -> impl Debug {

src/test/ui/async-await/unresolved_type_param.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
// (rather than give a general error message)
44
// edition:2018
55

6-
// FIXME(eholk): temporarily disabled while drop range tracking is disabled
7-
// (see generator_interior.rs:27)
8-
// ignore-test
9-
106
async fn bar<T>() -> () {}
117

128
async fn foo() {

src/test/ui/generator/drop-control-flow.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// build-pass
22

3-
// FIXME(eholk): temporarily disabled while drop range tracking is disabled
4-
// (see generator_interior.rs:27)
5-
// ignore-test
6-
73
// A test to ensure generators capture values that were conditionally dropped,
84
// and also that values that are dropped along all paths to a yield do not get
95
// included in the generator type.

src/test/ui/generator/issue-57478.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// check-pass
22

3-
// FIXME(eholk): temporarily disabled while drop range tracking is disabled
4-
// (see generator_interior.rs:27)
5-
// ignore-test
6-
73
#![feature(negative_impls, generators)]
84

95
struct Foo;

src/test/ui/generator/partial-drop.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// FIXME(eholk): temporarily disabled while drop range tracking is disabled
2-
// (see generator_interior.rs:27)
3-
// ignore-test
4-
51
#![feature(negative_impls, generators)]
62

73
struct Foo;

0 commit comments

Comments
 (0)