@@ -881,8 +881,6 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
881
881
"disable the use of the redzone" ) ,
882
882
relocation_model: Option <String > = ( None , parse_opt_string, [ TRACKED ] ,
883
883
"choose the relocation model to use (rustc --print relocation-models for details)" ) ,
884
- relro_level: Option <RelroLevel > = ( None , parse_relro_level, [ TRACKED ] ,
885
- "choose which RELRO level to use" ) ,
886
884
code_model: Option <String > = ( None , parse_opt_string, [ TRACKED ] ,
887
885
"choose the code model to use (rustc --print code-models for details)" ) ,
888
886
metadata: Vec <String > = ( Vec :: new( ) , parse_list, [ TRACKED ] ,
@@ -1057,6 +1055,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
1057
1055
"extra arguments to prepend to the linker invocation (space separated)" ) ,
1058
1056
profile: bool = ( false , parse_bool, [ TRACKED ] ,
1059
1057
"insert profiling code" ) ,
1058
+ relro_level: Option <RelroLevel > = ( None , parse_relro_level, [ TRACKED ] ,
1059
+ "choose which RELRO level to use" ) ,
1060
1060
}
1061
1061
1062
1062
pub fn default_lib_output ( ) -> CrateType {
@@ -2450,10 +2450,6 @@ mod tests {
2450
2450
opts. cg . relocation_model = Some ( String :: from ( "relocation model" ) ) ;
2451
2451
assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2452
2452
2453
- opts = reference. clone ( ) ;
2454
- opts. cg . relro_level = Some ( RelroLevel :: Full ) ;
2455
- assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2456
-
2457
2453
opts = reference. clone ( ) ;
2458
2454
opts. cg . code_model = Some ( String :: from ( "code model" ) ) ;
2459
2455
assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
@@ -2602,5 +2598,9 @@ mod tests {
2602
2598
opts = reference. clone ( ) ;
2603
2599
opts. debugging_opts . mir_opt_level = 3 ;
2604
2600
assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2601
+
2602
+ opts = reference. clone ( ) ;
2603
+ opts. debugging_opts . relro_level = Some ( RelroLevel :: Full ) ;
2604
+ assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2605
2605
}
2606
2606
}
0 commit comments