about summary refs log tree commit diff
path: root/src/tools/miri/tests/fail
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-10-15 12:33:36 -0400
committerGitHub <noreply@github.com>2024-10-15 12:33:36 -0400
commit1c799ff05e424e3a3b95e6dc2bbe6f8584491cf0 (patch)
treef256508da2759151c24b98fb800b4f13fbbc5351 /src/tools/miri/tests/fail
parent2f3f001423286560e9a0b28bb9ef19c51c61f88e (diff)
parent9e0a7b99b5d3677d3c90b11b57ec56a6a2c4f162 (diff)
downloadrust-1c799ff05e424e3a3b95e6dc2bbe6f8584491cf0.tar.gz
rust-1c799ff05e424e3a3b95e6dc2bbe6f8584491cf0.zip
Rollup merge of #131521 - jdonszelmann:rc, r=joboet
rename RcBox to RcInner for consistency

Arc uses ArcInner too (created in collaboration with `@aDotInTheVoid` and `@WaffleLapkin` )
Diffstat (limited to 'src/tools/miri/tests/fail')
-rw-r--r--src/tools/miri/tests/fail/memleak_rc.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/tests/fail/memleak_rc.stderr b/src/tools/miri/tests/fail/memleak_rc.stderr
index 820e10743bc..df12eeed6ac 100644
--- a/src/tools/miri/tests/fail/memleak_rc.stderr
+++ b/src/tools/miri/tests/fail/memleak_rc.stderr
@@ -1,8 +1,8 @@
 error: memory leaked: ALLOC (Rust heap, SIZE, ALIGN), allocated here:
   --> RUSTLIB/alloc/src/rc.rs:LL:CC
    |
-LL |                 Box::leak(Box::new(RcBox { strong: Cell::new(1), weak: Cell::new(1), value }))
-   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL |                 Box::leak(Box::new(RcInner { strong: Cell::new(1), weak: Cell::new(1), value }))
+   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: BACKTRACE:
    = note: inside `std::rc::Rc::<std::cell::RefCell<std::option::Option<Dummy>>>::new` at RUSTLIB/alloc/src/rc.rs:LL:CC