• Stars
    star
    169
  • Rank 224,453 (Top 5 %)
  • Language
    Rust
  • License
    BSD 2-Clause "Sim...
  • Created over 3 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Please do not use this.

nightly-crimes

The nightly_crimes!{} macro commits horrible crimes to allow you to enable nightly features on the stable compiler.

https://twitter.com/m_ou_se/status/1410930900116951040

Please do not use this.

Example

use nightly_crimes::nightly_crimes;

nightly_crimes! {
    #![feature(never_type)]
    #![feature(box_syntax)]
    fn hey(x: Result<&str, !>) -> Box<String> {
        match x {
            Ok(x) => box x.to_string(),
            Err(x) => x,
        }
    }
}

fn main() {
    println!("{}", hey(Ok("success!")));
}
$ cargo +stable r
success!

More Repositories

1

rust-atomics-and-locks

Code examples, data structures, and links from my book, Rust Atomics and Locks.
Rust
1,251
star
2

pong

Fake ping times.
Rust
144
star
3

floatconv

Fast implementations of integer/floating point conversion operations.
Rust
130
star
4

auto-import

Please do not use this.
Rust
127
star
5

atomic-wait

Cross-platform atomic wait and wake (aka futex) functionality for Rust.
Rust
102
star
6

whichever-compiles

Rust
93
star
7

linux-futex

Rust interface for Linux futexes, the fast user-space locking primitive.
Rust
83
star
8

config

The one and only perfect configuration for Vim, Zsh, Bash, Git, etc.
Shell
38
star
9

spez

Rust macro to specialize on the type of an expression.
Rust
35
star
10

bootlib

A minimalistic library to help making your x86 assembly program bootable.
Assembly
25
star
11

git-prompt-path

Display git information next to every path component in your prompt.
Shell
24
star
12

teck-programmer

Programmer for TECK keyboards.
JavaScript
22
star
13

units

Compile time unit checking with C++11 template magic.
C++
13
star
14

reedition

Rust
11
star
15

picp

A PIC16F145x based PIC16F145x USB programmer.
C++
11
star
16

rust-horrible-katex-hack

Rust
10
star
17

moggle

A C++11 OpenGL library.
C++
9
star
18

single-use-dns

Rust
9
star
19

bebop-rust

Rust
7
star
20

tek

Truly Ergonomic Keyoard Firmware Upgrade Tool
C++
7
star
21

futex-lock-experiment

Rust
6
star
22

r6502

6502 processor emulator written in Rust
Rust
4
star
23

blog

My blog. https://blog.m-ou.se/
4
star
24

cpp-experiments

Some crazy C++ experiments
C++
2
star
25

ryu-rust

Fast floating point to decimal string conversion, using the Ryu algorithm.
2
star
26

cratesync

Rust
2
star
27

raw-string-rs

Small Rust library providing RawStr and RawString.
Rust
1
star
28

scrabble-bf

Brute-force tool to find the highest-scoring word in Scrabble/Wordfeud.
C++
1
star
29

x86502

A bootable 6502 emulator for x86.
Assembly
1
star
30

moggled

Moggle for D
D
1
star
31

serial

A cross-platform serial port library.
C++
1
star
32

tis100node

Rust
1
star
33

klondike

Rust
1
star
34

ninj

Rust
1
star