From 918875f32dfeb1d983bb2eabce482e173bebcf84 Mon Sep 17 00:00:00 2001 From: Mark Simulacrum Date: Sat, 27 May 2017 10:06:15 -0600 Subject: Fix ICE on inner enum in missing docs lint. This also simplifies the lint by not storing variant depth or the struct def stack, because we no longer need them. --- src/test/compile-fail/issue-40350.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/test/compile-fail/issue-40350.rs (limited to 'src/test') diff --git a/src/test/compile-fail/issue-40350.rs b/src/test/compile-fail/issue-40350.rs new file mode 100644 index 00000000000..39249ee4718 --- /dev/null +++ b/src/test/compile-fail/issue-40350.rs @@ -0,0 +1,24 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(rustc_attrs)] +#![allow(warnings)] + +enum E { + A = { + enum F { B } + 0 + } +} + +#[rustc_error] +fn main() {} +//~^ ERROR compilation successful + -- cgit 1.4.1-3-g733a5