Skip to content

Instantly share code, notes, and snippets.

View Ameobea's full-sized avatar

Casey Primozic Ameobea

View GitHub Profile
@Ameobea
Ameobea / patch.diff
Created October 6, 2020 22:03
fix for chalk unimplemented panics in rust analyzer
diff --git a/Cargo.lock b/Cargo.lock
index 49022502d..9c921902c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -162,9 +162,8 @@ checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
[[package]]
name = "chalk-derive"
-version = "0.30.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
FROM golang:1.12.3-stretch
ADD . /app
WORKDIR /app
RUN go build -o cloud-run-header-limit-demo .
RUN cp cloud-run-header-limit-demo /usr/local/bin/
CMD ["/usr/local/bin/cloud-run-header-limit-demo"]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at /checkout/src/libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at /checkout/src/libstd/sys_common/backtrace.rs:60
at /checkout/src/libstd/panicking.rs:355
3: std::panicking::default_hook
at /checkout/src/libstd/panicking.rs:365
4: std::panicking::rust_panic_with_hook
0111111101000101 0100110001000110 0000001000000001 0000000100000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000
0000001000000000 0011111000000000 0000000100000000 0000000000000000 0100000000000100 0100000000000000 0000000000000000 0000000000000000
0100000000000000 0000000000000000 0000000000000000 0000000000000000 1110100000010001 0000000000000000 0000000000000000 0000000000000000
0000000000000000 0000000000000000 0100000000000000 0011100000000000 00000000 0100000000000000 0001111000000000 0001101100000000
0000011000000000 0000000000000000 0000010100000000 0000000000000000 0100000000000000 0000000000000000 0000000000000000 0000000000000000
0100000000000000 0100000000000000 0000000000000000 0000000000000000 0100000000000000 0100000000000000 0000000000000000 0000000000000000
1111100000000001 0000000000000000 0000000000000000 0000000000000000 1111100000000001 0000000000000000 0000000000000000 0000000000000000
0000100000000000 0000000000000000 0000000000000000 0000000000000000 0000001100
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3">
<item label="Terminal">
<action name="Execute">
<execute>
gnome-terminal
</execute>
</action>
</item>
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
# For more information about tint2, see:
# http://code.google.com/p/tint2/wiki/Welcome
#
# For more config file examples, see:
# http://crunchbanglinux.org/forums/topic/3232/my-tint2-config/
# Background definitions
sudo mount /dev/sda4 /storage&
tint2&
synclient MaxTapTime=0&
skype&
/usr/local/bin/whatpulse/whatpulse&
keepass2&
source ~/.aliases.bash
; ModuleID = 'thing.c'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Enter the last number (n) of the series\0A\00", align 1
@.str1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str2 = private unnamed_addr constant [51 x i8] c"Error. You gave a negative number. Program ends.\0A\00", align 1
@.str3 = private unnamed_addr constant [35 x i8] c"Input the number to be the power\0A\00", align 1
@.str4 = private unnamed_addr constant [59 x i8] c"The sum of the 1-%d series of integers raised in %d is %d\00", align 1