rustdoc panics when some unstable features is used without #![feature(…)]
#36159
Labels
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
(May be same as #31647?)
With the source:
Running
rustdoc 1.rs
gives the error:Similar for other features like:
fn main() { Ok(())?; }
fn main() { box 1; }
const fn f() {}
#[structural_match] struct S;
#![no_core]
#[naked] fn a() {}
#[start] fn start() {}
fn b() { 1: i32; }
fn b() { let a: ! = 0; }
fn a() { 1...2; }
trait T { type A = i32; }
trait T { const a: i32; }
trait T {} impl T for .. {}
fn á() {}
extern "rust-intrinsic" fn a() {}
But some features are fine (won't panic):
unsafe fn main() { std::intrinsics::ctpop(1); }
// and other library featuresfn main() { asm!(""); }
#![cfg(target_feature="simd")]
fn a() { concat_idents!(a); }
Repro on both stable and nightly (1.11 – 1.13).
The text was updated successfully, but these errors were encountered: