mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Remove a now-unused struct
This commit is contained in:
parent
094a9c743e
commit
16868d9096
@ -14,19 +14,6 @@ use rustc_span::Span;
|
||||
|
||||
use std::ops::ControlFlow;
|
||||
|
||||
/// Whether member constraints should be generated for all opaque types
|
||||
#[derive(Debug)]
|
||||
pub enum GenerateMemberConstraints {
|
||||
/// The default, used by typeck
|
||||
WhenRequired,
|
||||
/// The borrow checker needs member constraints in any case where we don't
|
||||
/// have a `'static` bound. This is because the borrow checker has more
|
||||
/// flexibility in the values of regions. For example, given `f<'a, 'b>`
|
||||
/// the borrow checker can have an inference variable outlive `'a` and `'b`,
|
||||
/// but not be equal to `'static`.
|
||||
IfNoStaticBound,
|
||||
}
|
||||
|
||||
pub trait InferCtxtExt<'tcx> {
|
||||
fn instantiate_opaque_types<T: TypeFoldable<'tcx>>(
|
||||
&self,
|
||||
|
Loading…
Reference in New Issue
Block a user