Skip to content

Instantly share code, notes, and snippets.

View pnkfelix's full-sized avatar
🍩
re-pat; ex-🥐

Felix S Klock II pnkfelix

🍩
re-pat; ex-🥐
View GitHub Profile
!! obj/32/64bit_child.c
!! obj/32/_llseek.c
!! obj/32/abort.c
!! obj/32/abort_nonmain.c
!! obj/32/accept.c
!! obj/32/acct.c
!! obj/32/adjtimex.c
!! obj/32/aio.c
!! obj/32/alarm.c
!! obj/32/alarm2.c
!! obj/32/64bit_child.c
!! obj/32/_llseek.c
!! obj/32/abort.c
!! obj/32/abort_nonmain.c
!! obj/32/accept.c
!! obj/32/acct.c
!! obj/32/adjtimex.c
!! obj/32/aio.c
!! obj/32/alarm.c
!! obj/32/alarm2.c
Check compiletest suite=rustdoc-ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
running 122 tests
............................F..F..F.F................F.............................................. 100/122
......................
failures:
---- [ui] rustdoc-ui/issue-80992.rs stdout ----
diff of stdout:
@pnkfelix
pnkfelix / gist:cb3834a051279514979ca85ec45cdbe7
Created May 21, 2021 14:46
fix maxrss compute for mac in print_step_rusage
commit 7126619a396191a8789367458ca9d4273f458672 (HEAD -> fix-max-rss-division-on-mac)
Author: Felix Klock <pnkfelix@amazon.com>
Date: Fri May 21 10:31:39 2021 -0400
facepalm: operator precedence fail on my part.
This bug was only visible on mac. Also, print_step_rusage is a
relatively new internal feature, that is not heavily used, and has no
tests. All of these factors contributed to how this went uncaught this
long. Thanks to Josh Triplett for pointing it out!
-*- mode: compilation; default-directory: "~/Dev/Rust/rust.git/objdir-clean/" -*-
Compilation started at Mon Mar 15 14:15:55
time infer-remake.sh nocheck
+ git log -1 --no-color
commit 2a55274e0ca9bf0b60cf72744b91237de625863e (HEAD)
Merge: 3963c3da02d f7e75a2124c
Author: bors <bors@rust-lang.org>
Date: Mon Mar 15 08:49:25 2021 +0000
use std::fs::File;
use std::io::BufReader;
use std::io::prelude::*;
fn main() -> std::io::Result<()> {
let args = std::env::args().collect::<Vec<_>>();
dbg!(&args);
for (j, arg) in args.into_iter().enumerate() {
let mut c = arg.chars();
if c.next() == Some('@') {
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index c3e46c1fade..e11cdfa7d16 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -2110,6 +2110,8 @@ void LSRInstance::OptimizeShadowIV() {
if (!AR) continue;
if (IsSigned && !AR->hasNoSignedWrap()) continue;
if (!IsSigned && !AR->hasNoUnsignedWrap()) continue;
+ // FIXME: the above logic may need revisiting; hasNoUnsignedWrap can be used
+ // in conjunction with signed inputs.
## Some non-debug timings
touch ../src/librustc_middle/lib.rs && time infer-remake.sh stage1
touch ../src/librustc_middle/lib.rs && time infer-remake.sh notidy nocheck stage1
> real 2m2.034s
> user 27m5.253s
> sys 12m0.467s
> real 2m1.797s
pnkfelix@pop-os:~/Dev/Mozilla/rust.git/objdir-default$ time ../x.py build
/usr/bin/env: ‘python’: No such file or directory
(Python3 alone is installed by default. Fixed by running `apt-get install python`)
pnkfelix@pop-os:~/Dev/Mozilla/rust.git/objdir-default$ time ../x.py build
[... several downloads and three minutes later ...]
Compiling bootstrap v0.0.0 (/home/pnkfelix/Dev/Mozilla/rust.git/src/bootstrap)
Finished dev [unoptimized] target(s) in 35.21s
thread 'main' panicked at '
diff --git a/src/test/ui/polymorphize/polymorphize_drop.stderr b/src/test/ui/polymorphize/polymorphize_drop.stderr
index e8c4cac8322..177b7078607 100644
--- a/src/test/ui/polymorphize/polymorphize_drop.stderr
+++ b/src/test/ui/polymorphize/polymorphize_drop.stderr
@@ -69,12 +69,12 @@ LL | |
LL | | dependency_because_drop_box_T::<u32>(Box::new(3));
| | -------------------------------------------------
| | | |
- | | | invokes `DefId(5/0:97 ~ alloc[e111]::boxed[0]::{{impl}}[0]::new[0])` with substitutions `[u32]`
+ | | | invokes `DefId(5/0:97 ~ alloc[edea]::boxed[0]::{{impl}}[0]::new[0])` with substitutions `[u32]`