@@ -68,8 +68,7 @@ pub(super) const UNKNOWN_COLUMN_NUMBER: c_uint = 0;
6868
6969const NO_SCOPE_METADATA : Option < & DIScope > = None ;
7070/// A function that returns an empty list of generic parameter debuginfo nodes.
71- const NO_GENERICS : for <' ll > fn ( & CodegenCx < ' ll , ' _ > ) -> SmallVec < Option < & ' ll DIType > > =
72- |_| SmallVec :: new ( ) ;
71+ const NO_GENERICS : for <' ll > fn ( & CodegenCx < ' ll , ' _ > ) -> SmallVec < & ' ll DIType > = |_| SmallVec :: new ( ) ;
7372
7473// SmallVec is used quite a bit in this module, so create a shorthand.
7574// The actual number of elements is not so important.
@@ -1289,7 +1288,7 @@ fn build_union_type_di_node<'ll, 'tcx>(
12891288fn build_generic_type_param_di_nodes < ' ll , ' tcx > (
12901289 cx : & CodegenCx < ' ll , ' tcx > ,
12911290 ty : Ty < ' tcx > ,
1292- ) -> SmallVec < Option < & ' ll DIType > > {
1291+ ) -> SmallVec < & ' ll DIType > {
12931292 if let ty:: Adt ( def, args) = * ty. kind ( ) {
12941293 if args. types ( ) . next ( ) . is_some ( ) {
12951294 let generics = cx. tcx . generics_of ( def. did ( ) ) ;
@@ -1299,7 +1298,7 @@ fn build_generic_type_param_di_nodes<'ll, 'tcx>(
12991298 kind. as_type ( ) . map ( |ty| {
13001299 let actual_type = cx. tcx . normalize_erasing_regions ( cx. typing_env ( ) , ty) ;
13011300 let actual_type_di_node = type_di_node ( cx, actual_type) ;
1302- Some ( cx. create_template_type_parameter ( name. as_str ( ) , actual_type_di_node) )
1301+ cx. create_template_type_parameter ( name. as_str ( ) , actual_type_di_node)
13031302 } )
13041303 } )
13051304 . collect ( ) ;
0 commit comments