about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorCatherine Flores <catherine.3.flores@gmail.com>2025-02-07 12:27:35 +0000
committerGitHub <noreply@github.com>2025-02-07 12:27:35 +0000
commitb5ea2491b38545e175c3d2e9ac5e021b11256235 (patch)
treedab3604f12d00c559e22c4384b72d48383db2451 /tests/codegen/patchable-function-entry
parent9289cca7128d303d8b1673bfc64f9038b1121dd6 (diff)
parent3921ed67b20a4541b1fa378de95c1dbe3d5cc5ef (diff)
downloadrust-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