We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09aa5af commit e0669e8Copy full SHA for e0669e8
hir/src/pass/manager.rs
@@ -51,6 +51,13 @@ impl TryFrom<&Options> for IRPrintingConfig {
51
.iter()
52
.map(|a| a.try_into())
53
.collect::<Result<Vec<PassIdentifier>, Report>>()?;
54
+ if options.print_ir_after_all && !pass_filters.is_empty() {
55
+ return Err(Report::msg(
56
+ "Flags `print_ir_after_all` and `print_ir_after_pass` are mutually exclusive. \
57
+ Please select only one."
58
+ .to_string(),
59
+ ));
60
+ };
61
Ok(IRPrintingConfig {
62
print_ir_after_all: options.print_ir_after_all,
63
print_ir_after_pass: pass_filters,
0 commit comments