File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,10 @@ where
131
131
} ;
132
132
133
133
let sess = self . sess ;
134
- // UNWRAP: safe, created above
135
- self . maybe_in_progress . as_mut ( ) . unwrap ( ) . add_input_object ( sess, obj, encoding)
134
+ self . maybe_in_progress
135
+ . as_mut ( )
136
+ . expect ( "`process_input_object` is broken" )
137
+ . add_input_object ( sess, obj, encoding)
136
138
}
137
139
138
140
/// Add input objects referenced by executable to the DWARF package.
Original file line number Diff line number Diff line change @@ -164,8 +164,7 @@ where
164
164
R : gimli:: Reader ,
165
165
Sess : Session < RelocationMap > ,
166
166
{
167
- // UNWRAP: `Index` types provided known to have `dwo_name` value.
168
- let index_name = Index :: id ( ) . dwo_name ( ) . unwrap ( ) ;
167
+ let index_name = Index :: id ( ) . dwo_name ( ) . expect ( "index id w/out known value" ) ;
169
168
if let Some ( index_section) = input. section_by_name ( index_name) {
170
169
let index_data = index_section
171
170
. compressed_data ( )
@@ -312,8 +311,7 @@ macro_rules! generate_append_for {
312
311
self . $name = Some ( id) ;
313
312
id
314
313
} else {
315
- // UNWRAP: checked above
316
- self . $name. unwrap( )
314
+ self . $name. expect( "`generate_append_for` is broken" )
317
315
} ;
318
316
319
317
// FIXME: correct alignment
You can’t perform that action at this time.
0 commit comments