We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TY_MEMORY_REPORT
1 parent 3785e13 commit 5cace28Copy full SHA for 5cace28
crates/ty/src/lib.rs
@@ -156,7 +156,12 @@ fn run_check(args: CheckCommand) -> anyhow::Result<ExitStatus> {
156
Ok("short") => write!(stdout, "{}", db.salsa_memory_dump().display_short())?,
157
Ok("mypy_primer") => write!(stdout, "{}", db.salsa_memory_dump().display_mypy_primer())?,
158
Ok("full") => write!(stdout, "{}", db.salsa_memory_dump().display_full())?,
159
- _ => {}
+ Ok(other) => {
160
+ tracing::warn!(
161
+ "Unknown value for `TY_MEMORY_REPORT`: `{other}`. Valid values are `short`, `mypy_primer`, and `full`."
162
+ );
163
+ }
164
+ Err(_) => {}
165
}
166
167
std::mem::forget(db);
0 commit comments