File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
src/librustc_mir/borrow_check/diagnostics Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,7 @@ enum Trace {
63
63
64
64
/// A collection of errors encountered during region inference. This is needed to efficiently
65
65
/// report errors after borrow checking.
66
- #[ derive( Clone , Debug ) ]
67
- crate struct RegionErrors < ' tcx > {
68
- errors : smallvec:: SmallVec < [ RegionErrorKind < ' tcx > ; 4 ] > ,
69
- }
66
+ crate type RegionErrors < ' tcx > = smallvec:: SmallVec < [ RegionErrorKind < ' tcx > ; 4 ] > ;
70
67
71
68
#[ derive( Clone , Debug ) ]
72
69
crate enum RegionErrorKind < ' tcx > {
@@ -155,22 +152,6 @@ pub struct ErrorConstraintInfo {
155
152
pub ( super ) span : Span ,
156
153
}
157
154
158
- impl < ' tcx > RegionErrors < ' tcx > {
159
- pub fn new ( ) -> Self {
160
- RegionErrors {
161
- errors : smallvec:: SmallVec :: new ( ) ,
162
- }
163
- }
164
-
165
- pub fn push ( & mut self , error : RegionErrorKind < ' tcx > ) {
166
- self . errors . push ( error)
167
- }
168
-
169
- pub fn into_iter ( self ) -> impl Iterator < Item =RegionErrorKind < ' tcx > > {
170
- self . errors . into_iter ( )
171
- }
172
- }
173
-
174
155
impl < ' tcx > RegionInferenceContext < ' tcx > {
175
156
/// Converts a region inference variable into a `ty::Region` that
176
157
/// we can use for error reporting. If `r` is universally bound,
You can’t perform that action at this time.
0 commit comments