Skip to content

EspressoSystems/nll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

The todo! macro panics and as a result can lose some type checking information. This crate exports module containing one function, nll_todo. Instead of panicking, this function unwraps an option. Nll stands for non lexical lifetime, and forces rustc to do more thorough type checking and therefore produce more informative errors. We have a blog post coming soon on this topic.

Example usage

Use this macro to replace any occurrences of todo!()

pub fn example() -> u32 {
  nll_todo()
}

About

todo! with better errors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •