Skip to content

Commit 16868d9

Browse files
committed
Remove a now-unused struct
1 parent 094a9c7 commit 16868d9

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

compiler/rustc_trait_selection/src/opaque_types.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,6 @@ use rustc_span::Span;
1414

1515
use std::ops::ControlFlow;
1616

17-
/// Whether member constraints should be generated for all opaque types
18-
#[derive(Debug)]
19-
pub enum GenerateMemberConstraints {
20-
/// The default, used by typeck
21-
WhenRequired,
22-
/// The borrow checker needs member constraints in any case where we don't
23-
/// have a `'static` bound. This is because the borrow checker has more
24-
/// flexibility in the values of regions. For example, given `f<'a, 'b>`
25-
/// the borrow checker can have an inference variable outlive `'a` and `'b`,
26-
/// but not be equal to `'static`.
27-
IfNoStaticBound,
28-
}
29-
3017
pub trait InferCtxtExt<'tcx> {
3118
fn instantiate_opaque_types<T: TypeFoldable<'tcx>>(
3219
&self,

0 commit comments

Comments
 (0)