{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/22980","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/22980/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/22980/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/22980/events","html_url":"https://github.com/rust-lang/rust/pull/22980","id":59566508,"number":22980,"title":"rustc: Add a debug_assertions #[cfg] directive","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-03-02T23:02:49Z","updated_at":"2015-03-03T23:48:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/22980","html_url":"https://github.com/rust-lang/rust/pull/22980","diff_url":"https://github.com/rust-lang/rust/pull/22980.diff","patch_url":"https://github.com/rust-lang/rust/pull/22980.patch"},"body":"This 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]"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/77065115","html_url":"https://github.com/rust-lang/rust/pull/22980#issuecomment-77065115","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/22980","id":77065115,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T23:48:09Z","updated_at":"2015-03-03T23:48:09Z","body":"@bors: r=pnkfelix 3b59058"}}