mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
Bump cfg(bootstrap)s
This commit is contained in:
parent
74cf505e36
commit
db3e2bacb6
@ -1,7 +1,7 @@
|
|||||||
#![cfg_attr(feature = "nightly", feature(step_trait))]
|
#![cfg_attr(feature = "nightly", feature(step_trait))]
|
||||||
#![cfg_attr(feature = "nightly", allow(internal_features))]
|
#![cfg_attr(feature = "nightly", allow(internal_features))]
|
||||||
#![cfg_attr(all(not(bootstrap), feature = "nightly"), doc(rust_logo))]
|
#![cfg_attr(feature = "nightly", doc(rust_logo))]
|
||||||
#![cfg_attr(all(not(bootstrap), feature = "nightly"), feature(rustdoc_internals))]
|
#![cfg_attr(feature = "nightly", feature(rustdoc_internals))]
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::num::{NonZeroUsize, ParseIntError};
|
use std::num::{NonZeroUsize, ParseIntError};
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
||||||
test(no_crate_inject, attr(deny(warnings)))
|
test(no_crate_inject, attr(deny(warnings)))
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(core_intrinsics)]
|
#![feature(core_intrinsics)]
|
||||||
#![feature(dropck_eyepatch)]
|
#![feature(dropck_eyepatch)]
|
||||||
#![feature(new_uninit)]
|
#![feature(new_uninit)]
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
||||||
test(attr(deny(warnings)))
|
test(attr(deny(warnings)))
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(const_trait_impl)]
|
#![feature(const_trait_impl)]
|
||||||
|
@ -30,9 +30,9 @@
|
|||||||
//! get confused if the spans from leaf AST nodes occur in multiple places
|
//! get confused if the spans from leaf AST nodes occur in multiple places
|
||||||
//! in the HIR, especially for multiple identifiers.
|
//! in the HIR, especially for multiple identifiers.
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
#![feature(never_type)]
|
#![feature(never_type)]
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
//!
|
//!
|
||||||
//! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
|
//! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(if_let_guard)]
|
#![feature(if_let_guard)]
|
||||||
#![feature(iter_is_partitioned)]
|
#![feature(iter_is_partitioned)]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
//! The goal is to move the definition of `MetaItem` and things that don't need to be in `syntax`
|
//! The goal is to move the definition of `MetaItem` and things that don't need to be in `syntax`
|
||||||
//! to this crate.
|
//! to this crate.
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
//! --cldr-tag latest --icuexport-tag latest -o src/data
|
//! --cldr-tag latest --icuexport-tag latest -o src/data
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![allow(elided_lifetimes_in_paths)]
|
#![allow(elided_lifetimes_in_paths)]
|
||||||
|
|
||||||
mod data {
|
mod data {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
//! This query borrow-checks the MIR to (further) ensure it is not broken.
|
//! This query borrow-checks the MIR to (further) ensure it is not broken.
|
||||||
|
|
||||||
#![allow(internal_features)]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
//! This crate contains implementations of built-in macros and other code generating facilities
|
//! This crate contains implementations of built-in macros and other code generating facilities
|
||||||
//! injecting code into the crate before it is lowered to HIR.
|
//! injecting code into the crate before it is lowered to HIR.
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
* TODO(antoyo): remove the patches.
|
* TODO(antoyo): remove the patches.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(
|
#![feature(
|
||||||
rustc_private,
|
rustc_private,
|
||||||
decl_macro,
|
decl_macro,
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
//!
|
//!
|
||||||
//! This API is completely unstable and subject to change.
|
//! This API is completely unstable and subject to change.
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![feature(exact_size_is_empty)]
|
#![feature(exact_size_is_empty)]
|
||||||
#![feature(extern_types)]
|
#![feature(extern_types)]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(if_let_guard)]
|
#![feature(if_let_guard)]
|
||||||
|
@ -4,9 +4,9 @@ Rust MIR: a lowered representation of Rust.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![feature(assert_matches)]
|
#![feature(assert_matches)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
|
@ -10,12 +10,11 @@
|
|||||||
#![allow(internal_features)]
|
#![allow(internal_features)]
|
||||||
#![allow(rustc::default_hash_types)]
|
#![allow(rustc::default_hash_types)]
|
||||||
#![allow(rustc::potential_query_instability)]
|
#![allow(rustc::potential_query_instability)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![deny(unsafe_op_in_unsafe_fn)]
|
#![deny(unsafe_op_in_unsafe_fn)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
|
#![doc(rust_logo)]
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(auto_traits)]
|
#![feature(auto_traits)]
|
||||||
@ -34,6 +33,7 @@
|
|||||||
#![feature(never_type)]
|
#![feature(never_type)]
|
||||||
#![feature(ptr_alignment_type)]
|
#![feature(ptr_alignment_type)]
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(strict_provenance)]
|
#![feature(strict_provenance)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
#![feature(thread_id_value)]
|
#![feature(thread_id_value)]
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
// This crate is intentionally empty and a re-export of `rustc_driver_impl` to allow the code in
|
// This crate is intentionally empty and a re-export of `rustc_driver_impl` to allow the code in
|
||||||
// `rustc_driver_impl` to be compiled in parallel with other crates.
|
// `rustc_driver_impl` to be compiled in parallel with other crates.
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
|
|
||||||
pub use rustc_driver_impl::*;
|
pub use rustc_driver_impl::*;
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
//! This API is completely unstable and subject to change.
|
//! This API is completely unstable and subject to change.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(decl_macro)]
|
#![feature(decl_macro)]
|
||||||
#![feature(lazy_cell)]
|
#![feature(lazy_cell)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![deny(rustdoc::invalid_codeblock_attributes)]
|
#![deny(rustdoc::invalid_codeblock_attributes)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
#![feature(lazy_cell)]
|
#![feature(lazy_cell)]
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
//! This module contains the code for creating and emitting diagnostics.
|
//! This module contains the code for creating and emitting diagnostics.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(extract_if)]
|
#![feature(extract_if)]
|
||||||
#![feature(if_let_guard)]
|
#![feature(if_let_guard)]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(associated_type_defaults)]
|
#![feature(associated_type_defaults)]
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
//! even if it is stabilized or removed, *do not remove it*. Instead, move the
|
//! even if it is stabilized or removed, *do not remove it*. Instead, move the
|
||||||
//! symbol to the `accepted` or `removed` modules respectively.
|
//! symbol to the `accepted` or `removed` modules respectively.
|
||||||
|
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![feature(lazy_cell)]
|
#![feature(lazy_cell)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(proc_macro_diagnostic)]
|
#![feature(proc_macro_diagnostic)]
|
||||||
#![feature(proc_macro_span)]
|
#![feature(proc_macro_span)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
|
@ -273,9 +273,9 @@
|
|||||||
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
||||||
test(attr(allow(unused_variables), deny(warnings)))
|
test(attr(allow(unused_variables), deny(warnings)))
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
|
|
||||||
|
@ -57,9 +57,9 @@ This API is completely unstable and subject to change.
|
|||||||
|
|
||||||
#![allow(rustc::potential_query_instability)]
|
#![allow(rustc::potential_query_instability)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(control_flow_enum)]
|
#![feature(control_flow_enum)]
|
||||||
#![feature(if_let_guard)]
|
#![feature(if_let_guard)]
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "256"]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
//! This API is completely unstable and subject to change.
|
//! This API is completely unstable and subject to change.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(control_flow_enum)]
|
#![feature(control_flow_enum)]
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
#![allow(rustc::potential_query_instability)]
|
#![allow(rustc::potential_query_instability)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(control_flow_enum)]
|
#![feature(control_flow_enum)]
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
|
|
||||||
// NOTE: This crate only exists to allow linking on mingw targets.
|
// NOTE: This crate only exists to allow linking on mingw targets.
|
||||||
|
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(decl_macro)]
|
#![feature(decl_macro)]
|
||||||
#![feature(extract_if)]
|
#![feature(extract_if)]
|
||||||
#![cfg_attr(bootstrap, feature(generators))]
|
#![feature(coroutines)]
|
||||||
#![cfg_attr(not(bootstrap), feature(coroutines))]
|
|
||||||
#![feature(iter_from_coroutine)]
|
#![feature(iter_from_coroutine)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
#![feature(if_let_guard)]
|
#![feature(if_let_guard)]
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
//! This API is completely unstable and subject to change.
|
//! This API is completely unstable and subject to change.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(assert_matches)]
|
#![feature(assert_matches)]
|
||||||
@ -32,8 +32,7 @@
|
|||||||
#![feature(core_intrinsics)]
|
#![feature(core_intrinsics)]
|
||||||
#![feature(discriminant_kind)]
|
#![feature(discriminant_kind)]
|
||||||
#![feature(exhaustive_patterns)]
|
#![feature(exhaustive_patterns)]
|
||||||
#![cfg_attr(bootstrap, feature(generators))]
|
#![feature(coroutines)]
|
||||||
#![cfg_attr(not(bootstrap), feature(coroutines))]
|
|
||||||
#![feature(get_mut_unchecked)]
|
#![feature(get_mut_unchecked)]
|
||||||
#![feature(if_let_guard)]
|
#![feature(if_let_guard)]
|
||||||
#![feature(inline_const)]
|
#![feature(inline_const)]
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
#![allow(rustc::potential_query_instability)]
|
#![allow(rustc::potential_query_instability)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(iter_intersperse)]
|
#![feature(iter_intersperse)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
#![feature(map_try_insert)]
|
#![feature(map_try_insert)]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(associated_type_defaults)]
|
#![feature(associated_type_defaults)]
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
#![feature(try_blocks)]
|
#![feature(try_blocks)]
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
//! Support for serializing the dep-graph and reloading it.
|
//! Support for serializing the dep-graph and reloading it.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
// this shouldn't be necessary, but the check for `&mut _` is too naive and denies returning a function pointer that takes a mut ref
|
// this shouldn't be necessary, but the check for `&mut _` is too naive and denies returning a function pointer that takes a mut ref
|
||||||
#![feature(const_mut_refs)]
|
#![feature(const_mut_refs)]
|
||||||
#![feature(const_refs_to_cell)]
|
#![feature(const_refs_to_cell)]
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
//! Type-relative name resolution (methods, fields, associated items) happens in `rustc_hir_analysis`.
|
//! Type-relative name resolution (methods, fields, associated items) happens in `rustc_hir_analysis`.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(assert_matches)]
|
#![feature(assert_matches)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(extract_if)]
|
#![feature(extract_if)]
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
html_playground_url = "https://play.rust-lang.org/",
|
html_playground_url = "https://play.rust-lang.org/",
|
||||||
test(attr(allow(unused_variables), deny(warnings)))
|
test(attr(allow(unused_variables), deny(warnings)))
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(const_option)]
|
#![feature(const_option)]
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
||||||
test(attr(allow(unused_variables), deny(warnings)))
|
test(attr(allow(unused_variables), deny(warnings)))
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![allow(rustc::usage_of_ty_tykind)]
|
#![allow(rustc::usage_of_ty_tykind)]
|
||||||
|
|
||||||
pub mod rustc_internal;
|
pub mod rustc_internal;
|
||||||
|
@ -17,11 +17,10 @@
|
|||||||
|
|
||||||
// tidy-alphabetical-start
|
// tidy-alphabetical-start
|
||||||
#![allow(internal_features)]
|
#![allow(internal_features)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
|
||||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||||
#![deny(rustc::untranslatable_diagnostic)]
|
#![deny(rustc::untranslatable_diagnostic)]
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
|
#![doc(rust_logo)]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(cfg_match)]
|
#![feature(cfg_match)]
|
||||||
#![feature(core_io_borrowed_buf)]
|
#![feature(core_io_borrowed_buf)]
|
||||||
@ -33,6 +32,7 @@
|
|||||||
#![feature(read_buf)]
|
#![feature(read_buf)]
|
||||||
#![feature(round_char_boundary)]
|
#![feature(round_char_boundary)]
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
|
#![feature(rustdoc_internals)]
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -88,9 +88,9 @@
|
|||||||
//! DefPaths which are much more robust in the face of changes to the code base.
|
//! DefPaths which are much more robust in the face of changes to the code base.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(never_type)]
|
#![feature(never_type)]
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "256"]
|
||||||
#![allow(rustc::potential_query_instability)]
|
#![allow(rustc::potential_query_instability)]
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
//! LLVM.
|
//! LLVM.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(assert_matches)]
|
#![feature(assert_matches)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(exhaustive_patterns)]
|
#![feature(exhaustive_patterns)]
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
//! This API is completely unstable and subject to change.
|
//! This API is completely unstable and subject to change.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(control_flow_enum)]
|
#![feature(control_flow_enum)]
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
//! This API is completely unstable and subject to change.
|
//! This API is completely unstable and subject to change.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![cfg_attr(not(bootstrap), allow(internal_features))]
|
#![allow(internal_features)]
|
||||||
#![feature(assert_matches)]
|
#![feature(assert_matches)]
|
||||||
#![feature(associated_type_defaults)]
|
#![feature(associated_type_defaults)]
|
||||||
#![feature(iterator_try_collect)]
|
#![feature(iterator_try_collect)]
|
||||||
|
@ -78,8 +78,8 @@
|
|||||||
not(no_sync),
|
not(no_sync),
|
||||||
target_has_atomic = "ptr"
|
target_has_atomic = "ptr"
|
||||||
))]
|
))]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![needs_allocator]
|
#![needs_allocator]
|
||||||
// Lints:
|
// Lints:
|
||||||
|
@ -11,8 +11,7 @@ use crate::pin::Pin;
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![cfg_attr(bootstrap, feature(generators))]
|
/// #![feature(coroutines)]
|
||||||
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
|
|
||||||
/// #![feature(iter_from_coroutine)]
|
/// #![feature(iter_from_coroutine)]
|
||||||
///
|
///
|
||||||
/// let it = std::iter::from_coroutine(|| {
|
/// let it = std::iter::from_coroutine(|| {
|
||||||
|
@ -69,7 +69,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
|
|||||||
message = "`{Self}` is not an iterator"
|
message = "`{Self}` is not an iterator"
|
||||||
)]
|
)]
|
||||||
#[doc(notable_trait)]
|
#[doc(notable_trait)]
|
||||||
#[cfg_attr(not(bootstrap), lang = "iterator")]
|
#[lang = "iterator"]
|
||||||
#[rustc_diagnostic_item = "Iterator"]
|
#[rustc_diagnostic_item = "Iterator"]
|
||||||
#[must_use = "iterators are lazy and do nothing unless consumed"]
|
#[must_use = "iterators are lazy and do nothing unless consumed"]
|
||||||
pub trait Iterator {
|
pub trait Iterator {
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
test(no_crate_inject, attr(deny(warnings))),
|
test(no_crate_inject, attr(deny(warnings))),
|
||||||
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
|
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![doc(cfg_hide(
|
#![doc(cfg_hide(
|
||||||
not(test),
|
not(test),
|
||||||
any(not(feature = "miri-test-libstd"), test, doctest),
|
any(not(feature = "miri-test-libstd"), test, doctest),
|
||||||
|
@ -1358,7 +1358,7 @@ impl<T> SizedTypeProperties for T {}
|
|||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(offset_of)]
|
/// #![feature(offset_of)]
|
||||||
/// # #![cfg_attr(not(bootstrap), feature(offset_of_enum))]
|
/// # #![feature(offset_of_enum)]
|
||||||
///
|
///
|
||||||
/// use std::mem;
|
/// use std::mem;
|
||||||
/// #[repr(C)]
|
/// #[repr(C)]
|
||||||
@ -1388,12 +1388,9 @@ impl<T> SizedTypeProperties for T {}
|
|||||||
/// B { one: u8, two: u16 },
|
/// B { one: u8, two: u16 },
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// # #[cfg(not(bootstrap))]
|
|
||||||
/// assert_eq!(mem::offset_of!(Enum, A.0), 1);
|
/// assert_eq!(mem::offset_of!(Enum, A.0), 1);
|
||||||
/// # #[cfg(not(bootstrap))]
|
|
||||||
/// assert_eq!(mem::offset_of!(Enum, B.two), 2);
|
/// assert_eq!(mem::offset_of!(Enum, B.two), 2);
|
||||||
///
|
///
|
||||||
/// # #[cfg(not(bootstrap))]
|
|
||||||
/// assert_eq!(mem::offset_of!(Option<&u8>, Some.0), 0);
|
/// assert_eq!(mem::offset_of!(Option<&u8>, Some.0), 0);
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "offset_of", issue = "106655")]
|
#[unstable(feature = "offset_of", issue = "106655")]
|
||||||
|
@ -7,8 +7,7 @@ use crate::pin::Pin;
|
|||||||
/// possible return values of a coroutine. Currently this corresponds to either
|
/// possible return values of a coroutine. Currently this corresponds to either
|
||||||
/// a suspension point (`Yielded`) or a termination point (`Complete`).
|
/// a suspension point (`Yielded`) or a termination point (`Complete`).
|
||||||
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
|
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
|
||||||
#[cfg_attr(bootstrap, lang = "generator_state")]
|
#[lang = "coroutine_state"]
|
||||||
#[cfg_attr(not(bootstrap), lang = "coroutine_state")]
|
|
||||||
#[unstable(feature = "coroutine_trait", issue = "43122")]
|
#[unstable(feature = "coroutine_trait", issue = "43122")]
|
||||||
pub enum CoroutineState<Y, R> {
|
pub enum CoroutineState<Y, R> {
|
||||||
/// The coroutine suspended with a value.
|
/// The coroutine suspended with a value.
|
||||||
@ -40,8 +39,7 @@ pub enum CoroutineState<Y, R> {
|
|||||||
/// closure-like:
|
/// closure-like:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// #![cfg_attr(bootstrap, feature(generators))]
|
/// #![feature(coroutines)]
|
||||||
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
|
|
||||||
/// #![feature(coroutine_trait)]
|
/// #![feature(coroutine_trait)]
|
||||||
///
|
///
|
||||||
/// use std::ops::{Coroutine, CoroutineState};
|
/// use std::ops::{Coroutine, CoroutineState};
|
||||||
@ -68,8 +66,7 @@ pub enum CoroutineState<Y, R> {
|
|||||||
///
|
///
|
||||||
/// [RFC 2033]: https://github.com/rust-lang/rfcs/pull/2033
|
/// [RFC 2033]: https://github.com/rust-lang/rfcs/pull/2033
|
||||||
/// [unstable book]: ../../unstable-book/language-features/coroutines.html
|
/// [unstable book]: ../../unstable-book/language-features/coroutines.html
|
||||||
#[cfg_attr(bootstrap, lang = "generator")]
|
#[lang = "coroutine"]
|
||||||
#[cfg_attr(not(bootstrap), lang = "coroutine")]
|
|
||||||
#[unstable(feature = "coroutine_trait", issue = "43122")]
|
#[unstable(feature = "coroutine_trait", issue = "43122")]
|
||||||
#[fundamental]
|
#[fundamental]
|
||||||
pub trait Coroutine<R = ()> {
|
pub trait Coroutine<R = ()> {
|
||||||
|
@ -56,7 +56,7 @@ use crate::marker::Tuple;
|
|||||||
#[lang = "fn"]
|
#[lang = "fn"]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_paren_sugar]
|
#[rustc_paren_sugar]
|
||||||
#[cfg_attr(not(bootstrap), rustc_on_unimplemented(
|
#[rustc_on_unimplemented(
|
||||||
on(
|
on(
|
||||||
Args = "()",
|
Args = "()",
|
||||||
note = "wrap the `{Self}` in a closure with no arguments: `|| {{ /* code */ }}`"
|
note = "wrap the `{Self}` in a closure with no arguments: `|| {{ /* code */ }}`"
|
||||||
@ -69,7 +69,7 @@ use crate::marker::Tuple;
|
|||||||
),
|
),
|
||||||
message = "expected a `{Trait}` closure, found `{Self}`",
|
message = "expected a `{Trait}` closure, found `{Self}`",
|
||||||
label = "expected an `{Trait}` closure, found `{Self}`"
|
label = "expected an `{Trait}` closure, found `{Self}`"
|
||||||
))]
|
)]
|
||||||
#[fundamental] // so that regex can rely that `&str: !FnMut`
|
#[fundamental] // so that regex can rely that `&str: !FnMut`
|
||||||
#[must_use = "closures are lazy and do nothing unless called"]
|
#[must_use = "closures are lazy and do nothing unless called"]
|
||||||
// FIXME(effects) #[const_trait]
|
// FIXME(effects) #[const_trait]
|
||||||
@ -143,7 +143,7 @@ pub trait Fn<Args: Tuple>: FnMut<Args> {
|
|||||||
#[lang = "fn_mut"]
|
#[lang = "fn_mut"]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_paren_sugar]
|
#[rustc_paren_sugar]
|
||||||
#[cfg_attr(not(bootstrap), rustc_on_unimplemented(
|
#[rustc_on_unimplemented(
|
||||||
on(
|
on(
|
||||||
Args = "()",
|
Args = "()",
|
||||||
note = "wrap the `{Self}` in a closure with no arguments: `|| {{ /* code */ }}`"
|
note = "wrap the `{Self}` in a closure with no arguments: `|| {{ /* code */ }}`"
|
||||||
@ -156,7 +156,7 @@ pub trait Fn<Args: Tuple>: FnMut<Args> {
|
|||||||
),
|
),
|
||||||
message = "expected a `{Trait}` closure, found `{Self}`",
|
message = "expected a `{Trait}` closure, found `{Self}`",
|
||||||
label = "expected an `{Trait}` closure, found `{Self}`"
|
label = "expected an `{Trait}` closure, found `{Self}`"
|
||||||
))]
|
)]
|
||||||
#[fundamental] // so that regex can rely that `&str: !FnMut`
|
#[fundamental] // so that regex can rely that `&str: !FnMut`
|
||||||
#[must_use = "closures are lazy and do nothing unless called"]
|
#[must_use = "closures are lazy and do nothing unless called"]
|
||||||
// FIXME(effects) #[const_trait]
|
// FIXME(effects) #[const_trait]
|
||||||
@ -222,7 +222,7 @@ pub trait FnMut<Args: Tuple>: FnOnce<Args> {
|
|||||||
#[lang = "fn_once"]
|
#[lang = "fn_once"]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_paren_sugar]
|
#[rustc_paren_sugar]
|
||||||
#[cfg_attr(not(bootstrap), rustc_on_unimplemented(
|
#[rustc_on_unimplemented(
|
||||||
on(
|
on(
|
||||||
Args = "()",
|
Args = "()",
|
||||||
note = "wrap the `{Self}` in a closure with no arguments: `|| {{ /* code */ }}`"
|
note = "wrap the `{Self}` in a closure with no arguments: `|| {{ /* code */ }}`"
|
||||||
@ -235,7 +235,7 @@ pub trait FnMut<Args: Tuple>: FnOnce<Args> {
|
|||||||
),
|
),
|
||||||
message = "expected a `{Trait}` closure, found `{Self}`",
|
message = "expected a `{Trait}` closure, found `{Self}`",
|
||||||
label = "expected an `{Trait}` closure, found `{Self}`"
|
label = "expected an `{Trait}` closure, found `{Self}`"
|
||||||
))]
|
)]
|
||||||
#[fundamental] // so that regex can rely that `&str: !FnMut`
|
#[fundamental] // so that regex can rely that `&str: !FnMut`
|
||||||
#[must_use = "closures are lazy and do nothing unless called"]
|
#[must_use = "closures are lazy and do nothing unless called"]
|
||||||
// FIXME(effects) #[const_trait]
|
// FIXME(effects) #[const_trait]
|
||||||
|
@ -47,7 +47,7 @@ pub macro panic_2015 {
|
|||||||
#[allow_internal_unstable(core_panic, const_format_args)]
|
#[allow_internal_unstable(core_panic, const_format_args)]
|
||||||
#[rustc_diagnostic_item = "core_panic_2021_macro"]
|
#[rustc_diagnostic_item = "core_panic_2021_macro"]
|
||||||
#[rustc_macro_transparency = "semitransparent"]
|
#[rustc_macro_transparency = "semitransparent"]
|
||||||
#[cfg(any(bootstrap, feature = "panic_immediate_abort"))]
|
#[cfg(feature = "panic_immediate_abort")]
|
||||||
pub macro panic_2021 {
|
pub macro panic_2021 {
|
||||||
() => (
|
() => (
|
||||||
$crate::panicking::panic("explicit panic")
|
$crate::panicking::panic("explicit panic")
|
||||||
@ -75,7 +75,7 @@ pub macro panic_2021 {
|
|||||||
)]
|
)]
|
||||||
#[rustc_diagnostic_item = "core_panic_2021_macro"]
|
#[rustc_diagnostic_item = "core_panic_2021_macro"]
|
||||||
#[rustc_macro_transparency = "semitransparent"]
|
#[rustc_macro_transparency = "semitransparent"]
|
||||||
#[cfg(not(any(bootstrap, feature = "panic_immediate_abort")))]
|
#[cfg(not(feature = "panic_immediate_abort"))]
|
||||||
pub macro panic_2021 {
|
pub macro panic_2021 {
|
||||||
() => ({
|
() => ({
|
||||||
// Create a function so that the argument for `track_caller`
|
// Create a function so that the argument for `track_caller`
|
||||||
|
@ -170,9 +170,8 @@ pub fn unreachable_display<T: fmt::Display>(x: &T) -> ! {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
#[rustc_do_not_const_check] // hooked by const-eval
|
#[rustc_do_not_const_check] // hooked by const-eval
|
||||||
#[cfg_attr(bootstrap, lang = "panic_display")]
|
|
||||||
// enforce a &&str argument in const-check and hook this by const-eval
|
// enforce a &&str argument in const-check and hook this by const-eval
|
||||||
#[cfg_attr(not(bootstrap), rustc_const_panic_str)]
|
#[rustc_const_panic_str]
|
||||||
#[rustc_const_unstable(feature = "core_panic", issue = "none")]
|
#[rustc_const_unstable(feature = "core_panic", issue = "none")]
|
||||||
pub const fn panic_display<T: fmt::Display>(x: &T) -> ! {
|
pub const fn panic_display<T: fmt::Display>(x: &T) -> ! {
|
||||||
panic_fmt(format_args!("{}", *x));
|
panic_fmt(format_args!("{}", *x));
|
||||||
|
@ -1088,8 +1088,7 @@ impl<P, U> DispatchFromDyn<Pin<U>> for Pin<P> where P: DispatchFromDyn<U> {}
|
|||||||
/// ### With `Coroutine`s
|
/// ### With `Coroutine`s
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// #![cfg_attr(bootstrap, feature(generators))]
|
/// #![feature(coroutines)]
|
||||||
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
|
|
||||||
/// #![feature(coroutine_trait)]
|
/// #![feature(coroutine_trait)]
|
||||||
/// use core::{
|
/// use core::{
|
||||||
/// ops::{Coroutine, CoroutineState},
|
/// ops::{Coroutine, CoroutineState},
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
test(no_crate_inject, attr(deny(warnings))),
|
test(no_crate_inject, attr(deny(warnings))),
|
||||||
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
|
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
// This library is copied into rust-analyzer to allow loading rustc compiled proc macros.
|
// This library is copied into rust-analyzer to allow loading rustc compiled proc macros.
|
||||||
// Please avoid unstable features where possible to minimize the amount of changes necessary
|
// Please avoid unstable features where possible to minimize the amount of changes necessary
|
||||||
// to make it compile with rust-analyzer on stable.
|
// to make it compile with rust-analyzer on stable.
|
||||||
|
@ -227,7 +227,7 @@
|
|||||||
test(no_crate_inject, attr(deny(warnings))),
|
test(no_crate_inject, attr(deny(warnings))),
|
||||||
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
|
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![doc(cfg_hide(
|
#![doc(cfg_hide(
|
||||||
not(test),
|
not(test),
|
||||||
not(any(test, bootstrap)),
|
not(any(test, bootstrap)),
|
||||||
|
@ -548,10 +548,6 @@ impl Builder {
|
|||||||
let main = Box::new(main);
|
let main = Box::new(main);
|
||||||
// SAFETY: dynamic size and alignment of the Box remain the same. See below for why the
|
// SAFETY: dynamic size and alignment of the Box remain the same. See below for why the
|
||||||
// lifetime change is justified.
|
// lifetime change is justified.
|
||||||
#[cfg(bootstrap)]
|
|
||||||
let main =
|
|
||||||
unsafe { mem::transmute::<Box<dyn FnOnce() + 'a>, Box<dyn FnOnce() + 'static>>(main) };
|
|
||||||
#[cfg(not(bootstrap))]
|
|
||||||
let main = unsafe { Box::from_raw(Box::into_raw(main) as *mut (dyn FnOnce() + 'static)) };
|
let main = unsafe { Box::from_raw(Box::into_raw(main) as *mut (dyn FnOnce() + 'static)) };
|
||||||
|
|
||||||
Ok(JoinInner {
|
Ok(JoinInner {
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
|
|
||||||
#![unstable(feature = "test", issue = "50297")]
|
#![unstable(feature = "test", issue = "50297")]
|
||||||
#![doc(test(attr(deny(warnings))))]
|
#![doc(test(attr(deny(warnings))))]
|
||||||
#![cfg_attr(not(bootstrap), doc(rust_logo))]
|
#![doc(rust_logo)]
|
||||||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
|
#![feature(rustdoc_internals)]
|
||||||
#![feature(internal_output_capture)]
|
#![feature(internal_output_capture)]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
#![feature(process_exitcode_internals)]
|
#![feature(process_exitcode_internals)]
|
||||||
|
@ -70,9 +70,7 @@ fn main() {
|
|||||||
cmd.arg("--cfg=bootstrap");
|
cmd.arg("--cfg=bootstrap");
|
||||||
}
|
}
|
||||||
cmd.arg("-Zunstable-options");
|
cmd.arg("-Zunstable-options");
|
||||||
// #[cfg(bootstrap)]
|
cmd.arg("--check-cfg=cfg(bootstrap)");
|
||||||
cmd.arg("--check-cfg=values(bootstrap)");
|
|
||||||
// cmd.arg("--check-cfg=cfg(bootstrap)");
|
|
||||||
|
|
||||||
if verbose > 1 {
|
if verbose > 1 {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
|
@ -592,7 +592,9 @@ impl Step for StdLink {
|
|||||||
.join("stage0/lib/rustlib")
|
.join("stage0/lib/rustlib")
|
||||||
.join(&host)
|
.join(&host)
|
||||||
.join("codegen-backends");
|
.join("codegen-backends");
|
||||||
builder.cp_r(&stage0_codegen_backends, &sysroot_codegen_backends);
|
if stage0_codegen_backends.exists() {
|
||||||
|
builder.cp_r(&stage0_codegen_backends, &sysroot_codegen_backends);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1404,9 +1404,6 @@ impl<'a> Builder<'a> {
|
|||||||
rustflags.arg("-Zunstable-options");
|
rustflags.arg("-Zunstable-options");
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[cfg(bootstrap)]
|
|
||||||
let use_new_check_cfg_syntax = self.local_rebuild;
|
|
||||||
|
|
||||||
// Enable compile-time checking of `cfg` names, values and Cargo `features`.
|
// Enable compile-time checking of `cfg` names, values and Cargo `features`.
|
||||||
//
|
//
|
||||||
// Note: `std`, `alloc` and `core` imports some dependencies by #[path] (like
|
// Note: `std`, `alloc` and `core` imports some dependencies by #[path] (like
|
||||||
@ -1414,17 +1411,9 @@ impl<'a> Builder<'a> {
|
|||||||
// features but cargo isn't involved in the #[path] process and so cannot pass the
|
// features but cargo isn't involved in the #[path] process and so cannot pass the
|
||||||
// complete list of features, so for that reason we don't enable checking of
|
// complete list of features, so for that reason we don't enable checking of
|
||||||
// features for std crates.
|
// features for std crates.
|
||||||
if use_new_check_cfg_syntax {
|
cargo.arg("-Zcheck-cfg");
|
||||||
cargo.arg("-Zcheck-cfg");
|
if mode == Mode::Std {
|
||||||
if mode == Mode::Std {
|
rustflags.arg("--check-cfg=cfg(feature,values(any()))");
|
||||||
rustflags.arg("--check-cfg=cfg(feature,values(any()))");
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
cargo.arg(if mode != Mode::Std {
|
|
||||||
"-Zcheck-cfg=names,values,output,features"
|
|
||||||
} else {
|
|
||||||
"-Zcheck-cfg=names,values,output"
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add extra cfg not defined in/by rustc
|
// Add extra cfg not defined in/by rustc
|
||||||
@ -1445,12 +1434,8 @@ impl<'a> Builder<'a> {
|
|||||||
.collect::<String>(),
|
.collect::<String>(),
|
||||||
None => String::new(),
|
None => String::new(),
|
||||||
};
|
};
|
||||||
if use_new_check_cfg_syntax {
|
let values = values.strip_prefix(",").unwrap_or(&values); // remove the first `,`
|
||||||
let values = values.strip_prefix(",").unwrap_or(&values); // remove the first `,`
|
rustflags.arg(&format!("--check-cfg=cfg({name},values({values}))"));
|
||||||
rustflags.arg(&format!("--check-cfg=cfg({name},values({values}))"));
|
|
||||||
} else {
|
|
||||||
rustflags.arg(&format!("--check-cfg=values({name}{values})"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1466,11 +1451,7 @@ impl<'a> Builder<'a> {
|
|||||||
// We also declare that the flag is expected, which we need to do to not
|
// We also declare that the flag is expected, which we need to do to not
|
||||||
// get warnings about it being unexpected.
|
// get warnings about it being unexpected.
|
||||||
hostflags.arg("-Zunstable-options");
|
hostflags.arg("-Zunstable-options");
|
||||||
if use_new_check_cfg_syntax {
|
hostflags.arg("--check-cfg=cfg(bootstrap)");
|
||||||
hostflags.arg("--check-cfg=cfg(bootstrap)");
|
|
||||||
} else {
|
|
||||||
hostflags.arg("--check-cfg=values(bootstrap)");
|
|
||||||
}
|
|
||||||
|
|
||||||
// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
|
// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
|
||||||
// but this breaks CI. At the very least, stage0 `rustdoc` needs `--cfg bootstrap`. See
|
// but this breaks CI. At the very least, stage0 `rustdoc` needs `--cfg bootstrap`. See
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
// Test the `rustc::span_use_eq_ctxt` internal lint
|
// Test the `rustc::span_use_eq_ctxt` internal lint
|
||||||
// #[cfg(bootstrap)]
|
|
||||||
// ignore-stage1
|
|
||||||
// compile-flags: -Z unstable-options
|
// compile-flags: -Z unstable-options
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
error: use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
|
error: use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
|
||||||
--> $DIR/span_use_eq_ctxt.rs:14:5
|
--> $DIR/span_use_eq_ctxt.rs:12:5
|
||||||
|
|
|
|
||||||
LL | s.ctxt() == t.ctxt()
|
LL | s.ctxt() == t.ctxt()
|
||||||
| ^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/span_use_eq_ctxt.rs:7:9
|
--> $DIR/span_use_eq_ctxt.rs:5:9
|
||||||
|
|
|
|
||||||
LL | #![deny(rustc::span_use_eq_ctxt)]
|
LL | #![deny(rustc::span_use_eq_ctxt)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Loading…
Reference in New Issue
Block a user