Skip to content

Instantly share code, notes, and snippets.

View aDotInTheVoid's full-sized avatar

Alona Enraght-Moony aDotInTheVoid

View GitHub Profile
@aDotInTheVoid
aDotInTheVoid / rustc.diff
Created March 22, 2021 19:23
Make defid rustfmtable
diff --git a/compiler/rustc_interface/src/callbacks.rs b/compiler/rustc_interface/src/callbacks.rs
index 7fa1a3eb0f5..6a22af30206 100644
--- a/compiler/rustc_interface/src/callbacks.rs
+++ b/compiler/rustc_interface/src/callbacks.rs
@@ -42,14 +42,14 @@ fn track_diagnostic(diagnostic: &Diagnostic) {
/// This is a callback from librustc_hir as it cannot access the implicit state
/// in librustc_middle otherwise.
fn def_id_debug(def_id: rustc_hir::def_id::DefId, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- write!(f, "DefId({}:{}", def_id.krate, def_id.index.index())?;
+ write!(f, "DefId(\"{}:{}", def_id.krate, def_id.index.index())?;
#!/usr/bin/env python3
# python3 bless_local.py nested.json nested.expected
# Where nested.json is raw rustdoc output
# Your'll need to add $TEST_BASE_DIR manualy for now
import json
import sys
use druid::piet::{FontBuilder, Text, TextLayout, TextLayoutBuilder};
use druid::theme;
use druid::{widget::prelude::*, WindowDesc, AppLauncher};
struct TextTest;
impl Widget<()> for TextTest {
fn event(&mut self, _: &mut EventCtx, _: &Event, _: &mut (), _: &Env) {}
fn lifecycle(&mut self, _: &mut LifeCycleCtx, _: &LifeCycle, _: &(), _: &Env) {}
fn update(&mut self, _: &mut UpdateCtx, _: &(), _: &(), _: &Env) {}
This file has been truncated, but you can view the full file.
travis_fold:start:worker_info
Worker information
hostname: dce1209f-ba5e-47b5-a3f4-c065b1979b7d@1.production-1-worker-com-gce-thf9
version: v6.2.0 https://github.com/travis-ci/worker/tree/5e5476e01646095f48eec13196fdb3faf8f5cbf7
instance: travis-job-f6d148a2-8906-423d-8f6c-28904098e5dd travis-ci-sardonyx-xenial-1553530528-f909ac5 (via amqp)
startup: 6.481408759s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: generic
@aDotInTheVoid
aDotInTheVoid / .env
Created August 20, 2018 10:38
Travis Build Stuff
APP_NAME=UCSMUN
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
@aDotInTheVoid
aDotInTheVoid / .env
Last active June 28, 2018 19:35
env
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1