Module limits

Source
Expand description

Registering limits:

  • recursion_limit: there are various parts of the compiler that must impose arbitrary limits on how deeply they recurse to prevent stack overflow.
  • move_size_limit
  • type_length_limit
  • pattern_complexity_limit

Users can override these limits via an attribute on the crate like #![recursion_limit="22"]. This pass just looks for those attributes.

Functionsยง

get_limit ๐Ÿ”’
get_recursion_limit ๐Ÿ”’
provide ๐Ÿ”’