Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
347aefa
Merge ref '82310651b93a' from rust-lang/rust
invalid-email-address Jul 18, 2025
9f2a8c6
Merge ref 'ffb9d94dcf4a' from rust-lang/rust
invalid-email-address Aug 9, 2025
bf5882b
Merge ref 'd36f96412516' from rust-lang/rust
invalid-email-address Aug 28, 2025
1b31227
Merge ref 'caccb4d0368b' from rust-lang/rust
invalid-email-address Sep 25, 2025
acc4e1c
Auto merge of #149499 - lnicola:sync-from-ra, r=lnicola
bors Dec 1, 2025
9942603
Rollup merge of #148690 - IntegralPilot:clamp-mag, r=joboet
matthiaskrgr Dec 1, 2025
b39537f
Rollup merge of #149102 - bend-n:maybe_uninit_slice, r=joboet
matthiaskrgr Dec 1, 2025
e5d2746
Rollup merge of #149269 - folkertdev:cmse-infer, r=davidtwco
matthiaskrgr Dec 1, 2025
dacc2eb
Rollup merge of #149299 - adwinwhite:next-245-ice, r=lcnr
matthiaskrgr Dec 1, 2025
aef5caf
Rollup merge of #149344 - lapla-cogito:const_unwrap_sugg, r=Kivooeo
matthiaskrgr Dec 1, 2025
1407b42
Rollup merge of #149358 - epage:fence-length, r=davidtwco
matthiaskrgr Dec 1, 2025
9b730b7
Auto merge of #149510 - matthiaskrgr:rollup-5rt6o7z, r=matthiaskrgr
bors Dec 1, 2025
0b1903c
Rollup merge of #149393 - tshepang:patch-3, r=davidtwco
matthiaskrgr Dec 1, 2025
1446cb9
Rollup merge of #149427 - scrabsha:push-rxkwyumxrrtu, r=jdonszelmann
matthiaskrgr Dec 1, 2025
b48b265
Rollup merge of #149433 - scottmcm:delay-layout-ICEs, r=jdonszelmann
matthiaskrgr Dec 1, 2025
c35a08c
Rollup merge of #149473 - reddevilmidzy:t7, r=Kivooeo
matthiaskrgr Dec 1, 2025
345b76d
Rollup merge of #149505 - reddevilmidzy:fix, r=WaffleLapkin
matthiaskrgr Dec 1, 2025
d82ed22
Rollup merge of #149513 - lnicola:sync-from-ra, r=lnicola
matthiaskrgr Dec 1, 2025
6776e56
Auto merge of #149515 - matthiaskrgr:rollup-djmciuc, r=matthiaskrgr
bors Dec 1, 2025
9230cdf
Auto merge of #142821 - cjgillot:jump-threading-single, r=saethlin
bors Dec 1, 2025
71cde14
Auto merge of #147634 - fmease:mv-var-to-dyn-buf-lints-next, r=jdonsz…
bors Dec 2, 2025
de17b01
Auto merge of #149504 - mati865:i686-pc-windows-gnullvm, r=jieyouxu
bors Dec 2, 2025
7b9cee6
Merge ref '47cd7120d9b4' from rust-lang/rust
invalid-email-address Dec 2, 2025
d8a9e86
Auto merge of #149125 - zachs18:btreemap-eq-perf, r=workingjubilee
bors Dec 2, 2025
c21e8e2
Auto merge of #149602 - lnicola:sync-from-ra, r=lnicola
bors Dec 4, 2025
06ee911
Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-ma…
matthiaskrgr Dec 4, 2025
df184e7
Rollup merge of #149183 - tiif:typing_env_fix, r=BoxyUwU
matthiaskrgr Dec 4, 2025
c63ffb8
Rollup merge of #149456 - joboet:async-safe-tid, r=Mark-Simulacrum
matthiaskrgr Dec 4, 2025
54d2dd3
Rollup merge of #149501 - lcnr:no-hard-error-on-norm-failure, r=lqd,o…
matthiaskrgr Dec 4, 2025
9b57a8f
Rollup merge of #149539 - quaternic:gather-scatter-bits, r=Mark-Simul…
matthiaskrgr Dec 4, 2025
53c5d60
Auto merge of #149631 - matthiaskrgr:rollup-jbx443u, r=matthiaskrgr
bors Dec 4, 2025
f079db2
Auto merge of #149586 - tgross35:update-builtins, r=tgross35
bors Dec 4, 2025
3f2410c
Auto merge of #148602 - BoxyUwU:coercion_cleanup_uncontroversial, r=lcnr
bors Dec 5, 2025
0cee245
Auto merge of #141980 - beetrees:va-list-proposal, r=workingjubilee
bors Dec 5, 2025
2c1100b
Auto merge of #149495 - scottmcm:assume-filter-count, r=Mark-Simulacrum
bors Dec 6, 2025
f9caa8a
Auto merge of #149060 - jdonszelmann:duplicate-span-lowering, r=Waffl…
bors Dec 7, 2025
36bcb16
Auto merge of #149517 - WaffleLapkin:alphabet-blessing, r=jdonszelmann
bors Dec 7, 2025
cb099d8
Auto merge of #147754 - Dan54:friendly-clamp, r=Mark-Simulacrum
bors Dec 8, 2025
051d268
Auto merge of #149766 - lnicola:sync-from-ra, r=lnicola
bors Dec 8, 2025
29d1f7c
Auto merge of #149776 - bjorn3:sync_cg_clif-2025-12-08, r=bjorn3
bors Dec 8, 2025
9f7200c
Auto merge of #149426 - antoyo:libgccjit-targets, r=Kobzol
bors Dec 9, 2025
74afa93
Auto merge of #147572 - alexcrichton:wasi-use-libc, r=Mark-Simulacrum
bors Dec 9, 2025
7447596
Auto merge of #149757 - jdonszelmann:revert-duplicate-span-lowering, …
bors Dec 9, 2025
55b60f6
Auto merge of #147602 - JohnTitor:dedup-lifetime-capture-errors, r=es…
bors Dec 10, 2025
6effa6a
Auto merge of #149535 - Jamesbarford:chore/refactor-struct-placeholde…
bors Dec 10, 2025
acb575c
rust-analyzer: prep crates for testing against in-tree `rustc_private`
jieyouxu Oct 5, 2025
ed7cfb5
EII liveness analysis
jdonszelmann Aug 21, 2025
aea6cfd
Auto merge of #147372 - jieyouxu:rust-analyzer-main-tests, r=Kobzol
bors Dec 13, 2025
5c3d6dc
Auto merge of #149709 - Urgau:overhaul-filenames, r=davidtwco
bors Dec 13, 2025
e32cdc1
Auto merge of #149934 - weihanglo:update-cargo, r=weihanglo
bors Dec 13, 2025
1ddfb0e
Auto merge of #149192 - gmorenz:normalize_lifetimes, r=madsmtm
bors Dec 13, 2025
1fc159d
Auto merge of #146348 - jdonszelmann:eiiv3, r=lcnr,oli-obk
bors Dec 14, 2025
69b2702
Auto merge of #149273 - bjorn3:crate_locator_improvements, r=petroche…
bors Dec 14, 2025
f77781c
Prepare for merging from rust-lang/rust
invalid-email-address Dec 15, 2025
2d06e40
Merge ref '0208ee09be46' from rust-lang/rust
invalid-email-address Dec 15, 2025
f6c67ed
Format code
invalid-email-address Dec 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/base-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@ vfs.workspace = true
span.workspace = true
intern.workspace = true

[features]
default = []
in-rust-tree = []

[lints]
workspace = true
5 changes: 5 additions & 0 deletions crates/base-db/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 4 additions & 0 deletions crates/cfg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions crates/cfg/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
4 changes: 4 additions & 0 deletions crates/ide-completion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions crates/ide-completion/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions crates/ide-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@ line-index.workspace = true
[dev-dependencies]
expect-test = "1.5.1"

[features]
default = []
in-rust-tree = []

[lints]
workspace = true
5 changes: 5 additions & 0 deletions crates/ide-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions crates/ide-diagnostics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions crates/ide-diagnostics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions crates/ide-ssr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@ triomphe.workspace = true
test-utils.workspace = true
test-fixture.workspace = true

[features]
default = []
in-rust-tree = []

[lints]
workspace = true
5 changes: 5 additions & 0 deletions crates/ide-ssr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions crates/load-cargo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
2 changes: 2 additions & 0 deletions crates/parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions crates/proc-macro-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions crates/proc-macro-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions crates/project-model/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ toolchain.workspace = true
[dev-dependencies]
expect-test = "1.5.1"

[features]
default = []
in-rust-tree = []

[lints]
workspace = true
4 changes: 4 additions & 0 deletions crates/project-model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 7 additions & 3 deletions crates/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
5 changes: 5 additions & 0 deletions crates/rust-analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions crates/rust-analyzer/tests/slow-tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions crates/span/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ syntax.workspace = true

[features]
default = ["salsa"]
in-rust-tree = []

[lints]
workspace = true
6 changes: 6 additions & 0 deletions crates/span/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
5 changes: 5 additions & 0 deletions crates/syntax-bridge/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions crates/syntax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ rustc_apfloat = "0.2.3"
test-utils.workspace = true

[features]
default = []
in-rust-tree = []

[lints]
Expand Down
5 changes: 5 additions & 0 deletions crates/syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions crates/test-fixture/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@ intern.workspace = true
triomphe.workspace = true
paths.workspace = true

[features]
default = []
in-rust-tree = []

[lints]
workspace = true
6 changes: 6 additions & 0 deletions crates/test-fixture/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions crates/tt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ intern.workspace = true
ra-ap-rustc_lexer.workspace = true

[features]
default = []
in-rust-tree = []

[lints]
Expand Down
3 changes: 3 additions & 0 deletions crates/tt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dfe1b8c97bcde283102f706d5dcdc3649e5e12e3
0208ee09be465f69005a7a12c28d5eccac7d5f34