Closed
Description
Repro:
$ rustc ice.rs
thread 'main' panicked at 'no entry found for key', libcore/option.rs:960:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.28.0-nightly (990d8aa74 2018-05-25) running on x86_64-unknown-linux-gnu
Compiling the following:
// ice.rs
pub trait Letter {
fn l(self) -> Self;
}
macro_rules! l_impl {
($ty: ty, $ex: expr) => {
impl Letter for $ty {
#[doc = concat!(
"```
use std::{env, exor::*, fmt};
let _x : ", stringify!($ty), " = ", stringify!($ex), ";
```")]
fn l(self) -> Self { self }
}
};
}
l_impl!(std::string::FromUtf8Error, String::from_utf8(vec![193u8]).unwrap_err());
fn main() { }