Skip to content

A set of very short functions that should compile down to nothing with rustc

Notifications You must be signed in to change notification settings

djzin/rustc-optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

rustc optimization tests

All the .rs files in this repository consist of a single function that should "do nothing" - in the case of nullary functions, the function should return with no side-effects, and in the case of unary functions, the function should return its argument with no side-effects.

To run the tests, just make and it should print a summary of the tests that failed. You can also set the RUSTFLAGS variable to something other than the default (-C opt-level=3 -C target-cpu=native -C panic=abort).

About

A set of very short functions that should compile down to nothing with rustc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published