Skip to content

Commit a05023c

Browse files
committed
Allow internal_features lint in doc tests
Rustdoc forwards -Zcrate-attr=feature(rustdoc_internals) to doc tests, but deny(warnings) overrides the -Ainternal_features.
1 parent b80d1d3 commit a05023c

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_public/src

1 file changed

+1
-1
lines changed

compiler/rustc_public/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! This API is still completely unstable and subject to change.
88
99
#![allow(rustc::usage_of_ty_tykind)]
10-
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
10+
#![doc(test(attr(allow(unused_variables), deny(warnings), allow(internal_features))))]
1111
#![feature(sized_hierarchy)]
1212
//!
1313
//! This crate shall contain all type definitions and APIs that we expect third-party tools to invoke to

0 commit comments

Comments
 (0)