Skip to content

Instantly share code, notes, and snippets.

View emberian's full-sized avatar

emberian

View GitHub Profile
use std::os;
#[allow(unused_variables)]
fn main() {
let width = 2u8;
let height = 3u8;
let size = 4u8;
let pitch = width * size;
let (mut x_offset, mut y_offset) = (0u8, 0u8);
From 6d1d74f6d99a7384291c3e95c53a514dfd77b169 Mon Sep 17 00:00:00 2001
From: Corey Richardson <[email protected]>
Date: Mon, 15 Dec 2014 13:29:22 -0500
Subject: [PATCH] walk associated types more deeply
---
src/libsyntax/visit.rs | 7 +++++--
src/test/run-pass/associated-type-lifetime.rs | 17 +++++++++++++++++
2 files changed, 22 insertions(+), 2 deletions(-)
create mode 100644 src/test/run-pass/associated-type-lifetime.rs
<!doctype html>
<html>
<body>
<input type=button>
<input type=button>
<input type=button>
<input type=checkbox>
<input type=checkbox>
<input type=button>
<input type=checkbox>
❯ cargo build --verbose
Downloading docopt v0.6.8
Unable to get packages from source
Caused by:
Failed to download package `docopt v0.6.8` from https://crates.io/api/v1/crates/docopt/0.6.8/download
Caused by:
Couldn't connect to server
This file has been truncated, but you can view the full file.
// License header from top of the mingw-w64 windows.h this was generated from:
/*
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
/* automatically generated by rust-bindgen */
pub type __gnuc_va_list = __builtin_va_list;
pub type va_list = __gnuc_va_list;
iOXoParereaRing
this
in
english
the
nXoParereaR
ing
the
ZlainteEtoO
the
GOXJPTMFMFTRGUICNGYGUFUIBGYNCN
FUXJPTMFMFTRGUICNFZBTGUCFECJOC
NFOGMYCTYYGIUQFUCGUJPMLMXZCJIM
TZNXLJPMYFCNGYTYYGIUQFUCWTYYPZ
ZJYFRBXZJYCFRCWJRTXYHFOJMFCNFF
URJOCNFFGINCNQJUCNGUCNFXFTMJOC
WFUCXOJPMCFFUTYXJPNTSFRGYLJSFM
FRHXLMTLVGUICNGYTYYGIUQFUCGCWT
YFULMXZCFRPYGUITYGQZBFQJUJTBZN
THFCGLYPHYCGCPCGJULGZNFMOJMCNG

A dirt-simple brute forcer for my crypto assignment, using a monoalphabetic cipher.

#![feature(unsafe_destructor)]
use std::rc::Rc;
use std::cell::RefCell;
struct Handle1 {
val: u32
}
// note that moving det after makes it 24 bytes instead of 16, for alignment!