Skip to content

Instantly share code, notes, and snippets.

View scottcarr's full-sized avatar

Scott Carr scottcarr

  • Detroit, MI
View GitHub Profile
digraph "Post dominator tree for 'square' function" {
label="Post dominator tree for 'square' function";
Node0x7fed7bc104d0 [shape=record,label="{Post dominance root node}"];
}
# scarr @ scarr in ~/mozilla/rust-workspace/rust on git:dominator-cache x [15:21:07] C:101
$ RUSTC_BOOTSTRAP_KEY=a4922355 ./x86_64-apple-darwin/stage1/bin/rustc src/librustc_data_structures/lib.rs --test
src/librustc_data_structures/graph_algorithms/reachable/test.rs:30:38: 30:47 error: type annotations required: cannot resolve `<_ as graph_algorithms::Graph>::Node == i32` [E0284]
src/librustc_data_structures/graph_algorithms/reachable/test.rs:30 assert!((0..6).all(|i| reachable.can_reach(0, i)));
^~~~~~~~~
src/librustc_data_structures/graph_algorithms/reachable/test.rs:30:5: 30:56 note: in this expansion of assert! (defined in <std macros>)
error: aborting due to previous error
// MIR for `main`
// node_id = 4
// pass_name = eliminate_moves
// disambiguator = 0
fn main() -> () {
let mut var0: i32; // "x" in scope 3 at main.rs:2:9: 2:14
let mut var1: i32; // "y" in scope 6 at main.rs:3:9: 3:14
let var2: &mut i32; // "p" in scope 12 at main.rs:5:13: 5:14
let var3: &i32; // "__arg0" in scope 42 at main.rs:1:1: 1:1
test [run-pass] run-pass/vector-sort-panic-safe.rs ... ok
failures:
---- [run-pass] run-pass/panic-runtime/lto-abort.rs stdout ----
error: compilation failed!
status: signal: 6
command: x86_64-apple-darwin/stage2/bin/rustc /Users/scarr/mozilla/rust-workspace/rust/src/test/run-pass/panic-runtime/lto-abort.rs -L x86_64-apple-darwin/test/run-pass/ --target=x86_64-apple-darwin -L x86_64-apple-darwin/test/run-pass/panic-runtime/lto-abort.stage2-x86_64-apple-darwin.run-pass.libaux -o x86_64-apple-darwin/test/run-pass/panic-runtime/lto-abort.stage2-x86_64-apple-darwin --cfg rtopt -C rpath -O -L x86_64-apple-darwin/rt -C lto -C panic=abort
stdout:
diff --git a/src/librustc_mir/build/matches/mod.rs b/src/librustc_mir/build/matches/mod.rs
index c1a0e1f..52a3cad 100644
--- a/src/librustc_mir/build/matches/mod.rs
+++ b/src/librustc_mir/build/matches/mod.rs
@@ -266,6 +266,7 @@ enum TestKind<'tcx> {
// test the branches of enum
Switch {
adt_def: AdtDef<'tcx>,
+ options: Vec<usize>, // SCOTT: a vec to hold the variants we want to test
},
#![allow(dead_code)]
use self::Example::*;
enum Example {
A,
B,
C,
D,
E,
failures:
---- [debuginfo-lldb] debuginfo-lldb/option-like-enum.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 360
error: line not found in debugger output: [...]$0 = Some(&0x12345678)
status: exit code: 0
command: "/usr/bin/python" "/Users/scarr/mozilla/rust-workspace/lldb-testing/rust/src/etc/lldb_batchmode.py" "x86_64-apple-darwin/test/debuginfo-lldb/option-like-enum.stage2-x86_64-apple-darwin" "x86_64-apple-darwin/test/debuginfo-lldb/option-like-enum.debugger.script"
stdout:
------------------------------------------
@scottcarr
scottcarr / mk_sched_worker_free.ll
Created March 28, 2016 23:33
Wrong MachineOperand accessor
; ModuleID = 'ld-temp.o'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.option = type { i8*, i32, i32*, i32 }
%struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i64, i32, [20 x i8] }
%struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
%union.pthread_mutex_t.46 = type { %struct.__pthread_mutex_s.45 }
%struct.__pthread_mutex_s.45 = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list.44 }
%struct.__pthread_internal_list.44 = type { %struct.__pthread_internal_list.44*, %struct.__pthread_internal_list.44* }
This file has been truncated, but you can view the full file.
*** IR Dump After Module Verifier ***
; Function Attrs: nounwind uwtable
define internal void @add(%struct.vector3* %v, %struct.vector3* %w) #0 !dbg !4 {
entry:
%v.addr = alloca %struct.vector3*, align 8
%w.addr = alloca %struct.vector3*, align 8
store %struct.vector3* %v, %struct.vector3** %v.addr, align 8
call void @llvm.dbg.declare(metadata %struct.vector3** %v.addr, metadata !34, metadata !35), !dbg !36
store %struct.vector3* %w, %struct.vector3** %w.addr, align 8
call void @llvm.dbg.declare(metadata %struct.vector3** %w.addr, metadata !37, metadata !35), !dbg !38
C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\VBCSCompiler\VBCSCompiler.csproj
SourceFile(C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\VBCSCompiler\VisualBasicCompilerServer.cs[559..578)): The type or namespace name 'VisualBasicCompiler' could not be found (are you missing a using directive or an assembly reference?)
SourceFile(C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\VBCSCompiler\VisualBasicCompilerServer.cs[1522..1525)): 'VisualBasicCompilerServer.Run(TextWriter, CancellationToken)': no suitable method found to override
SourceFile(C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\VBCSCompiler\VisualBasicCompilerServer.cs[2002..2014)): 'VisualBasicCompilerServer.LoadAssembly(string)': no suitable method found to override
SourceFile(C:\Users\carr27\Documents\GitHub\roslyn\src\Compilers\Core\VBCSCompiler\VisualBasicCompilerServer.cs[2182..2201)): 'VisualBasicCompilerServer.GetMetadataProvider()': no suitable method found to override
SourceFile(C:\Users\carr