diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2020-01-10 10:32:16 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2020-01-10 10:57:36 +0100 |
| commit | ad65e3e6bc8ded92db38507b84ec4a2bf2677d62 (patch) | |
| tree | 54b00a0ff92055a4ec8c3fa0135f0585594f05c8 /src/librustc_data_structures | |
| parent | 11e4844480230f42f59377629bb72cbc649b4a48 (diff) | |
| download | rust-ad65e3e6bc8ded92db38507b84ec4a2bf2677d62.tar.gz rust-ad65e3e6bc8ded92db38507b84ec4a2bf2677d62.zip | |
Fix some rebasing fallout.
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/profiling.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/librustc_data_structures/profiling.rs b/src/librustc_data_structures/profiling.rs index 93f8b943224..e8a70d58f0c 100644 --- a/src/librustc_data_structures/profiling.rs +++ b/src/librustc_data_structures/profiling.rs @@ -224,7 +224,10 @@ impl SelfProfilerRef { /// a measureme event, "verbose" generic activities also print a timing entry to /// stdout if the compiler is invoked with -Ztime or -Ztime-passes. #[inline(always)] - pub fn verbose_generic_activity<'a>(&'a self, event_id: &'a str) -> VerboseTimingGuard<'a> { + pub fn verbose_generic_activity<'a>( + &'a self, + event_id: &'static str, + ) -> VerboseTimingGuard<'a> { VerboseTimingGuard::start( event_id, self.print_verbose_generic_activities, @@ -589,8 +592,8 @@ fn get_resident() -> Option<usize> { cb: DWORD, ) -> BOOL; } - let mut pmc: PROCESS_MEMORY_COUNTERS = unsafe { mem::zeroed() }; - pmc.cb = mem::size_of_val(&pmc) as DWORD; + let mut pmc: PROCESS_MEMORY_COUNTERS = unsafe { std::mem::zeroed() }; + pmc.cb = std::mem::size_of_val(&pmc) as DWORD; match unsafe { GetProcessMemoryInfo(GetCurrentProcess(), &mut pmc, pmc.cb) } { 0 => None, _ => Some(pmc.WorkingSetSize as usize), |
