Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View scottcarr's full-sized avatar

Scott Carr scottcarr

  • Detroit, MI
View GitHub Profile
This file has been truncated, but you can view the full file.
C:\Users\carr27\Documents\GitHub\roslyn\src\Test\PdbUtilities\PdbUtilities.csproj
SourceFile(C:\Users\carr27\Documents\GitHub\roslyn\src\Test\PdbUtilities\Pdb\SymReader.cs[540..560)): The type 'IStream' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
SourceFile(C:\Users\carr27\Documents\GitHub\roslyn\src\Test\PdbUtilities\Pdb\SymReader.cs[540..560)): The type 'IStream' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
SourceFile(C:\Users\carr27\Documents\GitHub\roslyn\src\Test\PdbUtilities\Pdb\SymReader.cs[540..560)): The type 'IStream' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
SourceFile(C:\U
Type 'CommandLineArguments' is not defined.
Type 'CommandLineReference' is not defined.
property 'ParseOptionsCore' cannot be declared 'Overrides' because it does not override a property in a base class.
property 'CompilationOptionsCore' cannot be declared 'Overrides' because it does not override a property in a base class.
function 'ResolveMetadataReferences' cannot be declared 'Overrides' because it does not override a function in a base class.
Type 'CommonCompiler' is not defined.
Type 'CommandLineSourceFile' is not defined.
Type 'ErrorLogger' is not defined.
Type 'TouchedFileLogger' is not defined.
Type 'ErrorLogger' is not defined.
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
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
@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* }
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:
------------------------------------------
#![allow(dead_code)]
use self::Example::*;
enum Example {
A,
B,
C,
D,
E,
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
},
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:
// 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