mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Auto merge of #15899 - lnicola:sync-from-rust, r=Veykril
internal: Sync from rust
This commit is contained in:
commit
f888a6eb5f
@ -262,24 +262,6 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
|
||||
naked_functions, experimental!(naked)
|
||||
),
|
||||
|
||||
// Plugins:
|
||||
// BuiltinAttribute {
|
||||
// name: sym::plugin,
|
||||
// only_local: false,
|
||||
// type_: CrateLevel,
|
||||
// template: template!(List: "name"),
|
||||
// duplicates: DuplicatesOk,
|
||||
// gate: Gated(
|
||||
// Stability::Deprecated(
|
||||
// "https://github.com/rust-lang/rust/pull/64675",
|
||||
// Some("may be removed in a future compiler version"),
|
||||
// ),
|
||||
// sym::plugin,
|
||||
// "compiler plugins are deprecated",
|
||||
// cfg_fn!(plugin)
|
||||
// ),
|
||||
// },
|
||||
|
||||
// Testing:
|
||||
gated!(
|
||||
test_runner, CrateLevel, template!(List: "path"), ErrorFollowing, custom_test_frameworks,
|
||||
|
@ -1,6 +1,7 @@
|
||||
//! The type system. We currently use this to infer types for completion, hover
|
||||
//! information and various assists.
|
||||
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[allow(unused)]
|
||||
macro_rules! eprintln {
|
||||
|
@ -30,3 +30,6 @@ profile.workspace = true
|
||||
stdx.workspace = true
|
||||
syntax.workspace = true
|
||||
tt.workspace = true
|
||||
|
||||
[features]
|
||||
in-rust-tree = []
|
||||
|
@ -18,6 +18,7 @@
|
||||
//! <https://www.tedinski.com/2018/02/06/system-boundaries.html>.
|
||||
|
||||
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
#![recursion_limit = "512"]
|
||||
|
||||
mod semantics;
|
||||
|
@ -8,8 +8,9 @@
|
||||
//! in this crate.
|
||||
|
||||
// For proving that RootDatabase is RefUnwindSafe.
|
||||
#![recursion_limit = "128"]
|
||||
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
#![recursion_limit = "128"]
|
||||
|
||||
#[allow(unused)]
|
||||
macro_rules! eprintln {
|
||||
|
@ -4,7 +4,7 @@
|
||||
mod generated;
|
||||
|
||||
#[allow(unreachable_pub)]
|
||||
pub use self::generated::{SyntaxKind, T};
|
||||
pub use self::generated::SyntaxKind;
|
||||
|
||||
impl From<u16> for SyntaxKind {
|
||||
#[inline]
|
||||
|
File diff suppressed because one or more lines are too long
@ -97,6 +97,7 @@ in-rust-tree = [
|
||||
"syntax/in-rust-tree",
|
||||
"parser/in-rust-tree",
|
||||
"rustc-dependencies/in-rust-tree",
|
||||
"hir/in-rust-tree",
|
||||
"hir-def/in-rust-tree",
|
||||
"hir-ty/in-rust-tree",
|
||||
]
|
||||
|
@ -3,6 +3,10 @@
|
||||
//! Based on cli flags, either spawns an LSP server, or runs a batch analysis
|
||||
|
||||
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
#[allow(unused_extern_crates)]
|
||||
extern crate rustc_driver;
|
||||
|
||||
mod logger;
|
||||
mod rustc_wrapper;
|
||||
|
@ -450,7 +450,6 @@ fn generate_syntax_kinds(grammar: KindsSrc<'_>) -> String {
|
||||
[ident] => { $crate::SyntaxKind::IDENT };
|
||||
[shebang] => { $crate::SyntaxKind::SHEBANG };
|
||||
}
|
||||
pub use T;
|
||||
};
|
||||
|
||||
sourcegen::add_preamble("sourcegen_ast", sourcegen::reformat(ast.to_string()))
|
||||
|
Loading…
Reference in New Issue
Block a user