diff options
| author | Catherine Flores <catherine.3.flores@gmail.com> | 2025-02-07 12:27:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-07 12:27:35 +0000 |
| commit | b5ea2491b38545e175c3d2e9ac5e021b11256235 (patch) | |
| tree | dab3604f12d00c559e22c4384b72d48383db2451 /tests/codegen/patchable-function-entry | |
| parent | 9289cca7128d303d8b1673bfc64f9038b1121dd6 (diff) | |
| parent | 3921ed67b20a4541b1fa378de95c1dbe3d5cc5ef (diff) | |
| download | rust-b5ea2491b38545e175c3d2e9ac5e021b11256235.tar.gz rust-b5ea2491b38545e175c3d2e9ac5e021b11256235.zip | |
[`path_buf_push_overwrite`]: mark suggestion as `MaybeIncorrect` (#14010)
Proposing to replace
```rust
let mut x = PathBuf::from("/foo");
x.push("/bar");
```
by
```rust
let mut x = PathBuf::from("/foo");
x.push("bar");
```
changes the content of `x` (`/bar` ⇒ `/foo/bar`). This is not equivalent
and should not be `MachineApplicable`, even if the original code is
suspicious.
changelog: none
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
