Skip to content

Instantly share code, notes, and snippets.

@TheDarkula
TheDarkula / PKGBUILD
Created October 25, 2018 15:48
angular-cli PKGBUILD 7.0.3
pkgname=angular-cli
pkgver=7.0.3
pkgrel=1
pkgdesc="CLI tool for Angular"
arch=(any)
url="https://github.com/angular/angular-cli"
license=()
depends=('nodejs' 'npm' )
optdepends=()
options=(!strip)
@TheDarkula
TheDarkula / error.rs
Last active August 19, 2018 17:13
Making enums more specific in src/librustc/mir/interpret/error.rs
#[derive(Clone, RustcEncodable, RustcDecodable)]
pub enum EvalErrorKind<'tcx, O> {
/// This variant is used by machines to signal their own errors that do not
/// match an existing variant
MachineError(String),
FunctionPointerTyMismatch(FnSig<'tcx>, FnSig<'tcx>),
NoMirFor(String),
UnterminatedCString(Pointer),
DanglingPointerDeref,
DoubleFree,