{"push_id":591090241,"size":2,"distinct_size":0,"ref":"refs/heads/tmp","head":"07e853c854ccf5779e9c129f617e2ccdc18588d8","before":"fed12499e7d91f9cdfba5833e34d20e8fd19b898","commits":[{"sha":"eca6dacdc1c2029335675d6c3f93f09097e87e54","author":{"email":"60c6d277a8bd81de7fdde19201bf9c58a3df08f4@alexcrichton.com","name":"Alex Crichton"},"message":"rustc: Add a debug_assertions #[cfg] directive\n\nThis commit is an implementation of [RFC 563][rfc] which adds a new\n`cfg(debug_assertions)` directive which is specially recognized and calculated\nby the compiler. The flag is turned off at any optimization level greater than 1\nand may also be explicitly controlled through the `-C debug-assertions`\nflag.\n\n[rfc]: https://github.com/rust-lang/rfcs/pull/563\n\nThe `debug_assert!` and `debug_assert_eq!` macros now respect this instead of\nthe `ndebug` variable and `ndebug` no longer holds any meaning to the standard\nlibrary.\n\nCode which was previously relying on `not(ndebug)` to gate expensive code should\nbe updated to rely on `debug_assertions` instead.\n\nCloses #22492\n[breaking-change]","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/eca6dacdc1c2029335675d6c3f93f09097e87e54"},{"sha":"07e853c854ccf5779e9c129f617e2ccdc18588d8","author":{"email":"3a2c29237f73c7cf88424b80e427b1884f346b35@rust-lang.org","name":"bors"},"message":"Auto merge of #22980 - alexcrichton:debug-assertions, r=pnkfelix\n\nThis commit is an implementation of [RFC 563][rfc] which adds a new\r\n`cfg(debug_assertions)` directive which is specially recognized and calculated\r\nby the compiler. The flag is turned off at any optimization level greater than 1\r\nand may also be explicitly controlled through the `-C debug-assertions`\r\nflag.\r\n\r\n[rfc]: https://github.com/rust-lang/rfcs/pull/563\r\n\r\nThe `debug_assert!` and `debug_assert_eq!` macros now respect this instead of\r\nthe `ndebug` variable and `ndebug` no longer holds any meaning to the standard\r\nlibrary.\r\n\r\nCode which was previously relying on `not(ndebug)` to gate expensive code should\r\nbe updated to rely on `debug_assertions` instead.\r\n\r\nCloses #22492\r\n[breaking-change]","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/07e853c854ccf5779e9c129f617e2ccdc18588d8"}]}