From 9887abd0372ea1fc95dac62c68a52e19eb582ccc Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 14 Jun 2023 13:03:21 -0400 Subject: [PATCH] tamer: nir::air: Include mention of .experimental file in TODO help The previous commit introduced support for a `.experimental` file to tigger `xmlo-experimental`. This modifies the error message for unsupported features to make mention of it to help to the user track down the problem. DEV-13162 --- tamer/src/nir/air.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tamer/src/nir/air.rs b/tamer/src/nir/air.rs index a86f9bf4..4b7a710f 100644 --- a/tamer/src/nir/air.rs +++ b/tamer/src/nir/air.rs @@ -398,6 +398,10 @@ impl Diagnostic for NirToAirError { are you unintentionally using the `--emit xmlo-experimental` \ command line option?" ), + tok.span().help( + "this package may also have a sibling `.experimental` file \ + that triggers `xmlo-experimental`" + ), ], MatchSubjectExpected(ospan, given) => vec![