File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
compiler/rustc_session/src Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -2407,17 +2407,8 @@ fn parse_opt_level(
2407
2407
}
2408
2408
}
2409
2409
2410
- fn select_debuginfo ( matches : & getopts:: Matches , cg : & CodegenOptions ) -> DebugInfo {
2411
- let max_g = matches. opt_positions ( "g" ) . into_iter ( ) . max ( ) ;
2412
- let max_c = matches
2413
- . opt_strs_pos ( "C" )
2414
- . into_iter ( )
2415
- . flat_map ( |( i, s) | {
2416
- // NB: This can match a string without `=`.
2417
- if let Some ( "debuginfo" ) = s. split ( '=' ) . next ( ) { Some ( i) } else { None }
2418
- } )
2419
- . max ( ) ;
2420
- if max_g > max_c { DebugInfo :: Full } else { cg. debuginfo }
2410
+ fn select_debuginfo ( _matches : & getopts:: Matches , _cg : & CodegenOptions ) -> DebugInfo {
2411
+ DebugInfo :: None
2421
2412
}
2422
2413
2423
2414
fn parse_assert_incr_state (
You can’t perform that action at this time.
0 commit comments