Skip to content

regression: temporary value dropped while borrowed #113237

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Mark-Simulacrum opened this issue Jul 1, 2023 · 8 comments
Closed

regression: temporary value dropped while borrowed #113237

Mark-Simulacrum opened this issue Jul 1, 2023 · 8 comments
Labels
regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone

Comments

@Mark-Simulacrum
Copy link
Member

https://crater-reports.s3.amazonaws.com/beta-1.71-4/beta-2023-06-25/reg/munge-0.3.0/log.txt

[INFO] [stdout] error[E0716]: temporary value dropped while borrowed
[INFO] [stdout]    --> src/lib.rs:194:18
[INFO] [stdout]     |
[INFO] [stdout] 194 |         a = &mut MaybeUninit::uninit();
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  creates a temporary value which is freed while still in use
[INFO] [stdout] 195 |         b = &mut MaybeUninit::uninit();
[INFO] [stdout] 196 |         let _ = a;
[INFO] [stdout]     |                 - borrow later used here
[INFO] [stdout]     |
[INFO] [stdout] help: consider using a `let` binding to create a longer lived value
[INFO] [stdout]     |
[INFO] [stdout] 194 ~         let binding = MaybeUninit::uninit();
[INFO] [stdout] 195 ~         a = &mut binding;
[INFO] [stdout]     |
@Mark-Simulacrum Mark-Simulacrum added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. regression-from-stable-to-beta Performance or correctness regression from stable to beta. labels Jul 1, 2023
@Mark-Simulacrum Mark-Simulacrum added this to the 1.71.0 milestone Jul 1, 2023
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jul 1, 2023
@asquared31415
Copy link
Contributor

asquared31415 commented Jul 1, 2023

edit: whoops there was an FCP for this in #104844 (which is the regressing PR)

searched nightlies: from nightly-2023-04-17 to nightly-2023-06-06
regressed nightly: nightly-2023-04-23
searched commit range: fec9adc...b628260
regressed commit: 21fab43

@hameerabbasi
Copy link
Contributor

edit: whoops there was an FCP for this in #104844 (which is the regressing PR)

This particular failure wasn't mentioned in that PR, however. Perhaps it was missed.

@Noratrieb
Copy link
Member

cc @cjgillot, crater on the PR found no regressions but we got one here. @djkoloski this is your crate^^

@lqd
Copy link
Member

lqd commented Jul 2, 2023

Interesting, munge-0.3.0 didn't appear as a regression then because it was categorized "broken: missing some deps" by both the before and after toolchains, so #104844 didn't run on it at the time.

@djkoloski
Copy link
Contributor

I've fixed the offending tests in tree. It looks like this regression only affected the specific test code, not any functional part of the crate.

@apiraino
Copy link
Contributor

apiraino commented Aug 1, 2023

WG-prioritization removing priority (Zulip discussion).

tbh I'm unsure on the best course of action here: maybe close the issue rather than leave in a undefined state? IIUC I see no clear actionable for us.

@rustbot label -I-prioritize

@rustbot rustbot removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Aug 1, 2023
@Mark-Simulacrum Mark-Simulacrum added regression-from-stable-to-stable Performance or correctness regression from one stable version to another. and removed regression-from-stable-to-beta Performance or correctness regression from stable to beta. labels Aug 18, 2023
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Aug 18, 2023
@apiraino
Copy link
Contributor

I think the previous evaluation still stands (again: unless I'm missing some context). @Mark-Simulacrum does it make sense to remove the prioritization? And/or closing the issue?

@apiraino apiraino removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Sep 4, 2023
@Enselic
Copy link
Member

Enselic commented Nov 2, 2024

maybe close the issue rather than leave in a undefined state? IIUC I see no clear actionable for us.

No objections for over a year. Let's close.

@Enselic Enselic closed this as completed Nov 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

9 participants