bors d5b40bf469 Auto merge of #78343 - camelid:macros-qualify-panic, r=m-ou-se
Qualify `panic!` as `core::panic!` in non-built-in `core` macros

Fixes #78333.

-----

Otherwise code like this

    #![no_implicit_prelude]

    fn main() {
        ::std::todo!();
        ::std::unimplemented!();
    }

will fail to compile, which is unfortunate and presumably unintended.

This changes many invocations of `panic!` in a `macro_rules!` definition
to invocations of `$crate::panic!`, which makes the invocations hygienic.

Note that this does not make the built-in macro `assert!` hygienic.
2020-11-23 22:05:28 +00:00
..
2020-08-17 13:55:05 +01:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-06-10 01:35:47 +00:00
2019-10-15 09:58:11 +02:00
2019-10-15 09:58:11 +02:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-04-19 21:00:25 +02:00
2019-12-21 16:20:30 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2020-01-12 19:54:17 +08:00
2020-01-12 19:54:17 +08:00
2020-03-03 18:06:59 -08:00
2020-02-23 22:36:15 -08:00
2020-02-01 20:28:27 +09:00
2020-08-02 23:20:00 +08:00
2019-10-15 09:58:11 +02:00
2020-01-31 20:21:10 +01:00
2020-04-20 15:47:08 -04:00
2020-01-19 10:14:03 +09:00
2020-01-07 18:38:12 +09:00
2019-12-24 03:06:52 +07:00
2019-12-24 03:06:52 +07:00
2020-01-31 20:21:10 +01:00
2020-01-04 11:20:11 -06:00
2020-01-04 11:20:11 -06:00
2019-10-15 09:58:11 +02:00
2020-01-26 07:01:16 +09:00
2020-01-07 18:38:12 +09:00
2019-10-26 21:54:04 +02:00
2020-01-14 08:32:33 +09:00
2019-10-15 09:58:11 +02:00
2020-01-07 18:38:12 +09:00
2020-04-23 16:30:06 -07:00
2020-04-26 18:00:51 +03:00
2020-02-04 22:53:24 +01:00
2020-01-30 12:06:42 +09:00
2020-01-07 18:38:12 +09:00
2019-12-31 09:22:35 -08:00
2020-01-10 04:35:37 +09:00
2020-07-10 07:39:28 -04:00
2020-01-07 18:38:12 +09:00
2020-01-26 07:01:16 +09:00
2019-12-03 18:37:07 +01:00
2020-01-07 18:38:12 +09:00
2020-01-31 20:21:10 +01:00
2020-03-03 10:48:08 +01:00
2020-02-04 22:53:24 +01:00
2020-02-04 22:53:24 +01:00
2020-02-04 22:53:24 +01:00
2019-10-26 21:54:04 +02:00
2019-12-18 18:59:43 +02:00
2020-03-20 22:52:53 +00:00
2020-04-08 08:37:20 -07:00
2020-03-31 16:13:51 +05:30
2020-01-20 10:56:02 +09:00
2019-10-15 09:58:11 +02:00
2019-10-15 09:58:11 +02:00
2020-03-04 00:56:43 +01:00
2020-03-04 00:56:43 +01:00
2019-12-03 13:42:05 +01:00
2019-11-10 15:52:59 +02:00
2019-11-25 18:12:52 +03:00
2019-11-25 18:12:52 +03:00
2020-01-07 18:38:12 +09:00
2020-04-02 18:31:31 -07:00
2019-12-27 22:07:55 +09:00
2019-12-27 22:07:55 +09:00
2019-12-27 22:07:55 +09:00
2020-01-07 18:38:12 +09:00
2020-03-29 22:22:36 +02:00
2020-01-12 06:08:58 +09:00
2020-01-12 06:08:58 +09:00
2020-03-11 06:35:07 +09:00
2020-01-25 18:06:52 +03:00
2020-03-10 18:00:37 -04:00
2020-03-10 18:00:37 -04:00
2019-11-15 22:39:27 +01:00
2019-11-15 22:39:27 +01:00