Skip to content

Commit c40b005

Browse files
committed
removed eprintln
1 parent bef14fd commit c40b005

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,9 +1364,6 @@ pub mod parse {
13641364
if let Some(fun) = arg {
13651365
AutoDiff::PrintTAFn(fun.to_string())
13661366
} else {
1367-
eprintln!(
1368-
"Missing argument for PrintTAFn (expected PrintTAFn=<function_name>)"
1369-
);
13701367
return false;
13711368
}
13721369
}
@@ -1380,10 +1377,7 @@ pub mod parse {
13801377
"PrintPasses" => AutoDiff::PrintPasses,
13811378
"LooseTypes" => AutoDiff::LooseTypes,
13821379
"Inline" => AutoDiff::Inline,
1383-
_ => {
1384-
eprintln!("Unknown autodiff option: {key}");
1385-
return false;
1386-
}
1380+
_ => return false,
13871381
};
13881382
slot.push(variant);
13891383
}

0 commit comments

Comments
 (0)