mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Allow internal_features lint in doc tests
Rustdoc forwards -Zcrate-attr=feature(rustdoc_internals) to doc tests, but deny(warnings) overrides the -Ainternal_features.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#![allow(internal_features)]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
#![deny(unsafe_op_in_unsafe_fn)]
|
||||
#![doc(test(no_crate_inject, attr(deny(warnings))))]
|
||||
#![doc(test(no_crate_inject, attr(deny(warnings), allow(internal_features))))]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(decl_macro)]
|
||||
#![feature(dropck_eyepatch)]
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
//! This API is completely unstable and subject to change.
|
||||
|
||||
// tidy-alphabetical-start
|
||||
#![doc(test(attr(deny(warnings))))]
|
||||
#![doc(test(attr(deny(warnings), allow(internal_features))))]
|
||||
#![feature(array_windows)]
|
||||
#![feature(associated_type_defaults)]
|
||||
#![feature(box_patterns)]
|
||||
|
||||
@@ -270,7 +270,7 @@
|
||||
//! * [DOT language](https://www.graphviz.org/doc/info/lang.html)
|
||||
|
||||
// tidy-alphabetical-start
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings), allow(internal_features))))]
|
||||
// tidy-alphabetical-end
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// We want to be able to build this crate with a stable compiler,
|
||||
// so no `#![feature]` attributes should be added.
|
||||
#![deny(unstable_features)]
|
||||
#![doc(test(attr(deny(warnings))))]
|
||||
#![doc(test(attr(deny(warnings), allow(internal_features))))]
|
||||
// tidy-alphabetical-end
|
||||
|
||||
use std::ops::Range;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//! This API is still completely unstable and subject to change.
|
||||
|
||||
#![allow(rustc::usage_of_ty_tykind)]
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings), allow(internal_features))))]
|
||||
#![feature(sized_hierarchy)]
|
||||
//!
|
||||
//! This crate shall contain all type definitions and APIs that we expect third-party tools to invoke to
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
// tidy-alphabetical-start
|
||||
#![allow(rustc::usage_of_ty_tykind)]
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings), allow(internal_features))))]
|
||||
#![feature(sized_hierarchy)]
|
||||
#![feature(trait_alias)]
|
||||
// tidy-alphabetical-end
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#![allow(internal_features)]
|
||||
#![allow(rustc::internal)]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
|
||||
#![doc(test(attr(allow(unused_variables), deny(warnings), allow(internal_features))))]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(min_specialization)]
|
||||
#![feature(never_type)]
|
||||
|
||||
Reference in New Issue
Block a user