Tom Fryers
Tom Fryers
`CString::new` takes any `Into`, which includes `String`. This should make it possible to avoid reallocating when passing in an owned `String` with sufficient capacity.
### Summary Suppose I have a module `vector`, containing a `Vector2` type. This seems fine to me – I can't name the type `2`, after all. However `module_name_repetitions` disagrees. Maybe...
This lint gets flagged in user code if the missing_docs warning is enabled. Adding a doc comment to the function would also fix this.
This is the only crate left depending on syn 1 in our dependency tree; it'd be nice not to be building two copies of it.
I'm not sure how to benchmark this, but presumably it should be faster. The binaries are smaller, at least.
### Summary If `f()` is too expensive to compute eagerly, then of course `f() + 1` must be too. However `x.unwrap_or(f())` triggers `or_fun_call`, but `x.unwrap_or(f() + 1)` does not. ###...
Currently, creating a zeroed `BitVec` is not as fast as it perhaps could be, because it ends up calling `__rust_alloc` and then zeroing the memory. It would be nice to...
Rustfmt has quite high per-run overhead. For example, running repeated benchmarks on my machine gives the following means: * `echo | rustfmt`: 48 ms * `cat lib.rs | rustfmt`: 55...
``` $ unused-features analyze [2025-05-09T11:16:58Z INFO unused_features::subcommands::analyze] [project-path] [2025-05-09T11:16:58Z ERROR unused_features::subcommands::analyze] Failed to load '[project-path]/Cargo.toml' crate. TOML parse error at line 28, column 12 | 28 | resolver = "3"...
### 🔎 Search Terms `rootDirs` `rootDir` `inconsistent` `structure` Maybe related to #44321 and #22039. ### 🕗 Version & Regression Information - This is the behavior in every version I tried,...