Reduce the number of arguments to fail/fail_bounds_check/begin_unwind

a9fbd9e
Opened by Patrick Walton at 2014-09-29 21:08:29

These appear all the time and result in large code bloat. At least the file and line should be combined into a FailDescriptor static.

  1. Also, fail!() and fail!("static string") result in inefficient codegen and code bloat because they call into the string formatter when they don't need to.

    Patrick Walton at 2014-07-18 21:18:37

  2. This seems to be done for std. The macro in core still uses the string formatter for all invocations, but I don't even know how to use those.

    Björn Steinbrink at 2014-08-17 15:04:49