diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-10-24 18:35:46 -0700 | 
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2020-11-23 11:28:25 -0800 | 
| commit | d37e1e186eae66c31ddf8c1c7b30b17f6d167e6b (patch) | |
| tree | 5b4d2b2ee7cc425c2f56881c639dda7f5fd0c0f7 /src/test/ui/iterators/iter-count-overflow-ndebug.rs | |
| parent | a0d664bae6ca79c54cc054aa2403198e105190a2 (diff) | |
| download | rust-d37e1e186eae66c31ddf8c1c7b30b17f6d167e6b.tar.gz rust-d37e1e186eae66c31ddf8c1c7b30b17f6d167e6b.zip | |
Qualify `panic!` as `core::panic!` in non-built-in `core` macros
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.
Diffstat (limited to 'src/test/ui/iterators/iter-count-overflow-ndebug.rs')
| -rw-r--r-- | src/test/ui/iterators/iter-count-overflow-ndebug.rs | 1 | 
1 files changed, 0 insertions, 1 deletions
| diff --git a/src/test/ui/iterators/iter-count-overflow-ndebug.rs b/src/test/ui/iterators/iter-count-overflow-ndebug.rs index b755bb554f4..c38755db87e 100644 --- a/src/test/ui/iterators/iter-count-overflow-ndebug.rs +++ b/src/test/ui/iterators/iter-count-overflow-ndebug.rs @@ -2,7 +2,6 @@ // only-32bit too impatient for 2⁶⁴ items // compile-flags: -C debug_assertions=no -C opt-level=3 -use std::panic; use std::usize::MAX; fn main() { | 
