Deprecation warning in mozrunner: env::home_dir

RESOLVED FIXED in Firefox 64

Status

enhancement
P1
normal
RESOLVED FIXED
8 months ago
8 months ago

People

(Reporter: Alex_Gaynor, Assigned: Alex_Gaynor)

Tracking

Version 3
mozilla64
Points:
---

Firefox Tracking Flags

(firefox64 fixed)

Details

Attachments

(3 attachments)

Assignee

Description

8 months ago
9:07.76 warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead.
 9:07.76    --> testing/mozbase/rust/mozrunner/src/runner.rs:325:20
 9:07.76     |
 9:07.76 325 |         let home = env::home_dir();
 9:07.76     |                    ^^^^^^^^^^^^^
 9:07.76     |
 9:07.76     = note: #[warn(deprecated)] on by default
Assignee

Comment 2

8 months ago
Depends on D8577
Assignee

Updated

8 months ago
Assignee: nobody → agaynor
Priority: -- → P1
Assignee

Updated

8 months ago
Keywords: checkin-needed

Comment 4

8 months ago
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/96f72bd04292
Part 1 - Add a dependency on dirs for getting the home directory; r=jgraham
https://hg.mozilla.org/integration/autoland/rev/67a1e43538ab
Part 2 - cargo vendor; r=jgraham
https://hg.mozilla.org/integration/autoland/rev/1122d7446632
Part 3 - switch from using the deprecated env::home_dir() to the dirs crate; r=jgraham
Keywords: checkin-needed

Comment 5

8 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/96f72bd04292
https://hg.mozilla.org/mozilla-central/rev/67a1e43538ab
https://hg.mozilla.org/mozilla-central/rev/1122d7446632
Status: NEW → RESOLVED
Last Resolved: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.