Skip to content

Commit 0931361

Browse files
committed
Auto merge of rust-lang#16807 - lnicola:sync-from-rust3, r=lnicola
minor: sync last two releases from downstream Turns out I made quite a mess on the last two syncs, and this PR is a mess too, but I hope it's fine.
2 parents 574e23e + f65fe4e commit 0931361

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

crates/hir-ty/src/chalk_db.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,9 +742,8 @@ pub(crate) fn adt_datum_query(
742742
phantom_data,
743743
};
744744

745-
#[cfg(FALSE)]
746745
// this slows down rust-analyzer by quite a bit unfortunately, so enabling this is currently not worth it
747-
let variant_id_to_fields = |id: VariantId| {
746+
let _variant_id_to_fields = |id: VariantId| {
748747
let variant_data = &id.variant_data(db.upcast());
749748
let fields = if variant_data.fields().is_empty() {
750749
vec![]

crates/hir-ty/src/mir/eval/shim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Interpret intrinsics, lang items and `extern "C"` wellknown functions which their implementation
22
//! is not available.
3-
3+
//!
44
use std::cmp;
55

66
use chalk_ir::TyKind;

crates/ide/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@ expect-test = "1.4.0"
5151
test-utils.workspace = true
5252
test-fixture.workspace = true
5353

54+
[features]
55+
in-rust-tree = []
56+
5457
[lints]
5558
workspace = true

crates/load-cargo/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,10 @@ impl ProcMacroExpander for Expander {
419419
#[cfg(test)]
420420
mod tests {
421421
use ide_db::base_db::SourceDatabase;
422+
use vfs::file_set::FileSetConfigBuilder;
422423

423424
use super::*;
424425

425-
use ide_db::base_db::SourceRootId;
426-
use vfs::{file_set::FileSetConfigBuilder, VfsPath};
427-
428-
use crate::SourceRootConfig;
429-
430426
#[test]
431427
fn test_loading_rust_analyzer() {
432428
let path = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap().parent().unwrap();

crates/proc-macro-srv/src/server/rust_analyzer_span.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ use std::{
1010
ops::{Bound, Range},
1111
};
1212

13-
use ::tt::{TextRange, TextSize};
1413
use proc_macro::bridge::{self, server};
1514
use span::{Span, FIXUP_ERASED_FILE_AST_ID_MARKER};
15+
use tt::{TextRange, TextSize};
1616

1717
use crate::server::{
1818
delim_to_external, delim_to_internal, literal_with_stringify_parts,
1919
token_stream::TokenStreamBuilder, Symbol, SymbolInternerRef, SYMBOL_INTERNER,
2020
};
2121
mod tt {
22-
pub use ::tt::*;
22+
pub use tt::*;
2323

2424
pub type Subtree = ::tt::Subtree<super::Span>;
2525
pub type TokenTree = ::tt::TokenTree<super::Span>;

crates/proc-macro-srv/src/server/token_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::server::{
1414
mod tt {
1515
pub use proc_macro_api::msg::TokenId;
1616

17-
pub use ::tt::*;
17+
pub use tt::*;
1818

1919
pub type Subtree = ::tt::Subtree<TokenId>;
2020
pub type TokenTree = ::tt::TokenTree<TokenId>;

0 commit comments

Comments
 (0)