mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-01-20 17:15:54 +00:00
Merge pull request #21268 from rust-lang/rustc-pull
minor: Rustc pull update
This commit is contained in:
commit
3d78b3f9e0
@ -31,5 +31,9 @@ vfs.workspace = true
|
||||
span.workspace = true
|
||||
intern.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
//! base_db defines basic database traits. The concrete DB is defined by ide.
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
pub use salsa;
|
||||
pub use salsa_macros;
|
||||
|
||||
|
||||
@ -33,5 +33,9 @@ syntax.workspace = true
|
||||
# tt is needed for testing
|
||||
cfg = { path = ".", default-features = false, features = ["tt"] }
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
//! cfg defines conditional compiling options, `cfg` attribute parser and evaluator
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
mod cfg_expr;
|
||||
mod dnf;
|
||||
#[cfg(test)]
|
||||
|
||||
@ -37,5 +37,9 @@ expect-test = "1.5.1"
|
||||
test-utils.workspace = true
|
||||
test-fixture.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -2,6 +2,10 @@
|
||||
|
||||
// It's useful to refer to code that is private in doc comments.
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
mod completions;
|
||||
mod config;
|
||||
|
||||
@ -52,5 +52,9 @@ line-index.workspace = true
|
||||
[dev-dependencies]
|
||||
expect-test = "1.5.1"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -2,6 +2,11 @@
|
||||
//!
|
||||
//! It is mainly a `HirDatabase` for semantic analysis, plus a `SymbolsDatabase`, for fuzzy search.
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
extern crate self as ide_db;
|
||||
|
||||
mod apply_change;
|
||||
|
||||
@ -34,5 +34,9 @@ expect-test = "1.5.1"
|
||||
test-utils.workspace = true
|
||||
test-fixture.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -23,6 +23,11 @@
|
||||
//! There are also a couple of ad-hoc diagnostics implemented directly here, we
|
||||
//! don't yet have a great pattern for how to do them properly.
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
mod handlers {
|
||||
pub(crate) mod await_outside_of_async;
|
||||
pub(crate) mod bad_rtn;
|
||||
|
||||
@ -30,5 +30,9 @@ triomphe.workspace = true
|
||||
test-utils.workspace = true
|
||||
test-fixture.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -63,6 +63,11 @@
|
||||
// // foo($a, $b) ==>> ($a).foo($b)
|
||||
// ```
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
mod fragments;
|
||||
mod from_comment;
|
||||
mod matching;
|
||||
|
||||
@ -2,6 +2,12 @@
|
||||
//! for incorporating changes.
|
||||
// Note, don't remove any public api from this. This API is consumed by external tools
|
||||
// to run rust-analyzer as a library.
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
use std::{any::Any, collections::hash_map::Entry, mem, path::Path, sync};
|
||||
|
||||
use crossbeam_channel::{Receiver, unbounded};
|
||||
|
||||
@ -24,6 +24,8 @@
|
||||
#[cfg(not(feature = "in-rust-tree"))]
|
||||
extern crate ra_ap_rustc_lexer as rustc_lexer;
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_lexer;
|
||||
|
||||
mod event;
|
||||
|
||||
@ -34,6 +34,8 @@ semver.workspace = true
|
||||
|
||||
[features]
|
||||
sysroot-abi = ["proc-macro-srv", "proc-macro-srv/sysroot-abi"]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)
|
||||
)]
|
||||
#![allow(internal_features)]
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
mod codec;
|
||||
mod framing;
|
||||
|
||||
@ -39,5 +39,9 @@ toolchain.workspace = true
|
||||
[dev-dependencies]
|
||||
expect-test = "1.5.1"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -17,6 +17,10 @@
|
||||
|
||||
// It's useful to refer to code that is private in doc comments.
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
pub mod project_json;
|
||||
pub mod toolchain_info {
|
||||
|
||||
@ -98,12 +98,16 @@ syntax-bridge.workspace = true
|
||||
jemalloc = ["jemallocator", "profile/jemalloc"]
|
||||
force-always-assert = ["stdx/force-always-assert"]
|
||||
in-rust-tree = [
|
||||
"syntax/in-rust-tree",
|
||||
"parser/in-rust-tree",
|
||||
"hir/in-rust-tree",
|
||||
"cfg/in-rust-tree",
|
||||
"hir-def/in-rust-tree",
|
||||
"hir-ty/in-rust-tree",
|
||||
"hir/in-rust-tree",
|
||||
"ide-ssr/in-rust-tree",
|
||||
"ide/in-rust-tree",
|
||||
"load-cargo/in-rust-tree",
|
||||
"parser/in-rust-tree",
|
||||
"proc-macro-api/in-rust-tree",
|
||||
"syntax/in-rust-tree",
|
||||
]
|
||||
dhat = ["dep:dhat"]
|
||||
|
||||
|
||||
@ -9,6 +9,11 @@
|
||||
//! The `cli` submodule implements some batch-processing analysis, primarily as
|
||||
//! a debugging aid.
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
extern crate ra_ap_rustc_type_ir as rustc_type_ir;
|
||||
|
||||
/// Any toolchain less than this version will likely not work with rust-analyzer built from this revision.
|
||||
|
||||
@ -9,6 +9,10 @@
|
||||
//! be sure without a real client anyway.
|
||||
|
||||
#![allow(clippy::disallowed_types)]
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
mod cli;
|
||||
mod ratoml;
|
||||
|
||||
@ -27,6 +27,7 @@ syntax.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["salsa"]
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
//! File and span related types.
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
use std::fmt::{self, Write};
|
||||
|
||||
mod ast_id;
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
//! Conversions between [`SyntaxNode`] and [`tt::TokenTree`].
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
use std::{collections::VecDeque, fmt, hash::Hash};
|
||||
|
||||
use intern::Symbol;
|
||||
|
||||
@ -33,6 +33,7 @@ rustc_apfloat = "0.2.3"
|
||||
test-utils.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
|
||||
@ -19,6 +19,11 @@
|
||||
//! [RFC]: <https://github.com/rust-lang/rfcs/pull/2256>
|
||||
//! [Swift]: <https://github.com/apple/swift/blob/13d593df6f359d0cb2fc81cfaac273297c539455/lib/Syntax/README.md>
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
mod parsing;
|
||||
mod ptr;
|
||||
mod syntax_error;
|
||||
|
||||
@ -21,5 +21,9 @@ intern.workspace = true
|
||||
triomphe.workspace = true
|
||||
paths.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
//! A set of high-level utility fixture methods to use in tests.
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
use std::{any::TypeId, mem, str::FromStr, sync};
|
||||
|
||||
use base_db::target::TargetData;
|
||||
|
||||
@ -21,6 +21,7 @@ intern.workspace = true
|
||||
ra-ap-rustc_lexer.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
in-rust-tree = []
|
||||
|
||||
[lints]
|
||||
|
||||
@ -5,6 +5,9 @@
|
||||
|
||||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
extern crate rustc_driver as _;
|
||||
|
||||
#[cfg(not(feature = "in-rust-tree"))]
|
||||
extern crate ra_ap_rustc_lexer as rustc_lexer;
|
||||
#[cfg(feature = "in-rust-tree")]
|
||||
|
||||
@ -1 +1 @@
|
||||
dfe1b8c97bcde283102f706d5dcdc3649e5e12e3
|
||||
0208ee09be465f69005a7a12c28d5eccac7d5f34
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user