diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-12-18 22:56:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-18 22:56:56 +0800 |
| commit | 099faa8beb8564fba9b2889f371c7106c5ff030e (patch) | |
| tree | 3e859a491bcbe3b71642567b2f450da4e00014d3 /compiler/rustc_interface/src/errors.rs | |
| parent | 7e4f45a377f0d651542a3627a12583c98552b545 (diff) | |
| parent | 7eb0d8442444897395d5ac167860f710a2842205 (diff) | |
| download | rust-099faa8beb8564fba9b2889f371c7106c5ff030e.tar.gz rust-099faa8beb8564fba9b2889f371c7106c5ff030e.zip | |
Rollup merge of #134420 - Integral-Tech:pathbuf-refactor, r=compiler-errors
refactor: replace &PathBuf with &Path to enhance generality - According to [style.md](https://github.com/rust-lang/rust/blob/master/src/tools/rust-analyzer/docs/dev/style.md#useless-types): > More generally, always prefer types on the left ```rust // GOOD BAD &[T] &Vec<T> &str &String Option<&T> &Option<T> &Path &PathBuf ```
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
