Skip to content

Commit e700e31

Browse files
committed
added ui test, clarified error message
1 parent d0b12f3 commit e700e31

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ mod desc {
380380
pub const parse_panic_strategy: &str = "either `unwind` or `abort`";
381381
pub const parse_on_broken_pipe: &str = "either `kill`, `error`, or `inherit`";
382382
pub const parse_patchable_function_entry: &str =
383-
"either two comma separated integers (total_nops,prefix_nops) or one integer (total_nops)";
383+
"either two comma separated integers (total_nops,prefix_nops), with prefix_nops <= total_nops, or one integer (total_nops)";
384384
pub const parse_opt_panic_strategy: &str = parse_panic_strategy;
385385
pub const parse_oom_strategy: &str = "either `panic` or `abort`";
386386
pub const parse_relro_level: &str = "one of: `full`, `partial`, or `off`";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//@ compile-flags: -Z patchable-function-entry=1,2
2+
fn main() {}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: incorrect value `1,2` for unstable option `patchable-function-entry` - either two comma separated integers (total_nops,prefix_nops), with prefix_nops <= total_nops, or one integer (total_nops) was expected
2+

0 commit comments

Comments
 (0)