Skip to content

rust-analyzer subtree update #144603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 79 commits into from
Jul 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
f345b76
Add generate_impl_trait for generate_impl
A4-Tacks Jun 6, 2025
e0dddfc
Change tabstop to method tail_expr
A4-Tacks Jun 28, 2025
7126904
Use SyntaxEditor
A4-Tacks Jul 17, 2025
54fa2ad
Migrate AstNodeEdit
Hmikihiro Jul 21, 2025
8be9187
migrate generate new
Hmikihiro Jul 20, 2025
f862bcc
Disable tests in flycheck if `cfg.setTest` is set to false
ChayimFriedman2 Jul 21, 2025
87aa056
Merge pull request #20271 from ChayimFriedman2/cfg-settest-flycheck
ShoyuVanilla Jul 21, 2025
e70112d
hir-def: Don't apply x86_64-specific asserts on x32
glaubitz Jul 21, 2025
3c96a53
Merge pull request #20272 from glaubitz/x32-fixes
lnicola Jul 21, 2025
f1823d1
fix: Apply adjusts to pats and exprs when doing pat analysis
ShoyuVanilla Jul 21, 2025
0ad5437
Merge pull request #20273 from ShoyuVanilla/match-adjusts
ChayimFriedman2 Jul 21, 2025
e213fc4
Merge pull request #20270 from Hmikihiro/migrate_generate_new
ShoyuVanilla Jul 22, 2025
9150c8d
Merge pull request #20269 from Hmikihiro/migrate_indent_mapping
ShoyuVanilla Jul 22, 2025
1e1e5de
Bump form-data from 4.0.2 to 4.0.4 in /editors/code
dependabot[bot] Jul 22, 2025
fa95cba
Support filtering in analysis-stats MIR lowering
lnicola Jul 22, 2025
2b141ac
Merge pull request #20278 from lnicola/analysis-stats-mir-lowering-only
flodiebold Jul 22, 2025
244bea2
Merge pull request #20277 from rust-lang/dependabot/npm_and_yarn/edit…
ShoyuVanilla Jul 22, 2025
eabf33a
Add josh-sync.toml
lnicola Jul 22, 2025
8bab91c
Merge pull request #20279 from lnicola/add-josh-sync
lnicola Jul 22, 2025
2bd169f
Parse `for<'a> [const]`
ChayimFriedman2 Jul 22, 2025
64daba7
Remove pull/push functionality from `xtask`
Kobzol Jul 22, 2025
75a1a04
Document synces using `josh-sync`
Kobzol Jul 22, 2025
0c22e61
Apply suggestions from code review
Kobzol Jul 22, 2025
b14869d
Add CI workflow for periodically performing josh pulls
Kobzol Jul 22, 2025
45c1136
Merge pull request #20282 from Kobzol/josh-sync-ci
lnicola Jul 22, 2025
0a9b71d
Merge pull request #20280 from Kobzol/josh-sync
lnicola Jul 22, 2025
3d34e42
Merge pull request #20281 from ChayimFriedman2/parse-hrtb-const
ShoyuVanilla Jul 23, 2025
1023edc
Change rename self to parameter use `Self` type
A4-Tacks Jul 23, 2025
f6288ba
Remove `ExpressionStoreDiagnostics::MacroError`, instead recreate it …
ChayimFriedman2 Jul 23, 2025
654a803
Merge pull request #20289 from ChayimFriedman2/expr-store-diags-macros
Veykril Jul 23, 2025
3e9bf8c
Remove rename_self_outside_of_methods
A4-Tacks Jul 23, 2025
2974acb
Merge pull request #20285 from A4-Tacks/fix-rename-self
ChayimFriedman2 Jul 23, 2025
b4724b4
Fix Cargo.lock
ChayimFriedman2 Jul 23, 2025
c60cec3
Use `TempDir` for copied lockfiles
ShoyuVanilla Jul 23, 2025
cf88654
Merge pull request #20291 from ChayimFriedman2/fix-cargo-lock
ChayimFriedman2 Jul 23, 2025
abddbc5
Fix generate_trait_from_impl whitespace after vis
A4-Tacks Jul 24, 2025
d976ef8
Merge pull request #20297 from A4-Tacks/fix-ws-gen-trait-from-impl
ChayimFriedman2 Jul 24, 2025
e8757ce
Merge pull request #19938 from A4-Tacks/gen-impl-trait
ShoyuVanilla Jul 25, 2025
3c8fdcb
split ted from gen_trait_fn_body
Hmikihiro Jul 23, 2025
225988b
migrate_replace_derive_with_manual_impl
Hmikihiro Jul 22, 2025
0e11947
Modify around add_trait_assoc_items_to_impl to migrate add_missing_im…
Hmikihiro Jul 23, 2025
b9827eb
Merge pull request #20293 from Hmikihiro/migrate_replace_derive_with_…
ShoyuVanilla Jul 25, 2025
e392013
fix fold doc comment for multiline param list fn
Young-Flash Jul 26, 2025
2c29977
test: add test case for fold doc comment for multiline param list fn
Young-Flash Jul 26, 2025
9e9ff76
add Debug on AstSubst PathTransform.rs
Hmikihiro Jul 26, 2025
d70e67b
Migrate PathTransform to SyntaxEditor
Hmikihiro Jul 26, 2025
317cd56
Migrate part of utils.rs to use SyntaxEditor
Hmikihiro Jul 26, 2025
6ff9be8
Migrate Convert_to_guarded_return to use SyntaxEditor
Hmikihiro Jul 26, 2025
2392368
Migrate `extract_expressions_from_format_string` assist to use `Synta…
Hmikihiro Jul 26, 2025
41171e2
Merge pull request #20306 from Hmikihiro/migrate_convert_to_guarded_r…
lnicola Jul 26, 2025
3228fb7
Merge pull request #20307 from Hmikihiro/migrate_extract_expression_f…
lnicola Jul 26, 2025
3b0988b
minor: fix typo
Young-Flash Jul 27, 2025
d941bc7
Merge pull request #20302 from Young-Flash/fix_20240
lnicola Jul 27, 2025
dfc9bd0
Merge pull request #20290 from ShoyuVanilla/tmp-lockfiles
Veykril Jul 27, 2025
71ea00f
fix: Fix runnables extra env not substituting env vars
Veykril Jul 27, 2025
7a767d0
Unherit server extra env for runnables extra env
Veykril Jul 27, 2025
2792799
Merge pull request #20305 from Hmikihiro/Migrate_part_of_utils
ShoyuVanilla Jul 27, 2025
2604101
internal: Better type proc macro dylib build data state
Veykril Jul 27, 2025
38c61c9
Copy lockfile when building build scripts
Veykril Jul 27, 2025
2749482
Merge pull request #20315 from Veykril/push-pvmslwwouzzx
Veykril Jul 27, 2025
c5480a9
fix: Fix incorrect build script version check
Veykril Jul 27, 2025
7f19af8
Merge pull request #20317 from Veykril/push-koossvzyyvmm
lnicola Jul 27, 2025
f94a616
Cleanup unstable flags handling
Veykril Jul 27, 2025
d846d61
Ignore `Destruct` bounds again
Veykril Jul 27, 2025
ea927c0
Merge pull request #20318 from Veykril/push-vpqsrylmkqqm
Veykril Jul 27, 2025
81bdfd3
fix: Consider all produced artifacts for proc-macro dylib search
Veykril Jul 27, 2025
c41536e
Merge pull request #20319 from Veykril/push-znwukpmpsqxt
Veykril Jul 27, 2025
dc88902
Adjust triagebot config for rustc-josh-sync
lnicola Jul 28, 2025
ccdbc27
Merge pull request #20324 from lnicola/triagebot-josh-sync
lnicola Jul 28, 2025
d344aa8
Prepare for merging from rust-lang/rust
invalid-email-address Jul 28, 2025
f06945f
Merge ref '733dab558992' from rust-lang/rust
invalid-email-address Jul 28, 2025
d51db69
Don't show '$saved_file' literally in IDE status updates
Wilfred Jul 28, 2025
d026135
Merge pull request #20303 from Hmikihiro/migrate_path_transform
ShoyuVanilla Jul 28, 2025
a7c07f6
Merge pull request #20327 from Wilfred/saved_file_placeholder
Veykril Jul 28, 2025
892b455
Merge pull request #20313 from Veykril/push-qmorsnlvwlrr
Veykril Jul 28, 2025
86bef35
Configure triagebot to reopen bot PRs
Kobzol Jul 28, 2025
cde861e
Format and bump rustc crates
lnicola Jul 28, 2025
2e3688e
Merge pull request #20330 from Kobzol/triagebot-reopen
lnicola Jul 28, 2025
36df2c9
Merge pull request #20321 from rust-lang/rustc-pull
lnicola Jul 28, 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
20 changes: 20 additions & 0 deletions src/tools/rust-analyzer/.github/workflows/rustc-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: rustc-pull

on:
workflow_dispatch:
schedule:
# Run at 04:00 UTC every Monday and Thursday
- cron: '0 4 * * 1,4'

jobs:
pull:
if: github.repository == 'rust-lang/rust-analyzer'
uses: rust-lang/josh-sync/.github/workflows/rustc-pull.yml@main
with:
zulip-stream-id: 185405
zulip-bot-email: "[email protected]"
pr-base-branch: master
branch-name: rustc-pull
secrets:
zulip-api-token: ${{ secrets.ZULIP_API_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
49 changes: 23 additions & 26 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,6 @@ dependencies = [
"syn",
]

[[package]]
name = "directories"
version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16f5094c54661b38d03bd7e50df373292118db60b585c08a411c6d840017fe7d"
dependencies = [
"dirs-sys",
]

[[package]]
name = "dirs"
version = "6.0.0"
Expand Down Expand Up @@ -1268,7 +1259,7 @@ dependencies = [
"expect-test",
"intern",
"parser",
"ra-ap-rustc_lexer 0.122.0",
"ra-ap-rustc_lexer 0.123.0",
"rustc-hash 2.1.1",
"smallvec",
"span",
Expand Down Expand Up @@ -1504,7 +1495,7 @@ dependencies = [
"drop_bomb",
"edition",
"expect-test",
"ra-ap-rustc_lexer 0.122.0",
"ra-ap-rustc_lexer 0.123.0",
"rustc-literal-escaper",
"stdx",
"tracing",
Expand Down Expand Up @@ -1614,7 +1605,7 @@ dependencies = [
"object",
"paths",
"proc-macro-test",
"ra-ap-rustc_lexer 0.122.0",
"ra-ap-rustc_lexer 0.123.0",
"span",
"syntax-bridge",
"tt",
Expand Down Expand Up @@ -1688,6 +1679,7 @@ dependencies = [
"serde_json",
"span",
"stdx",
"temp-dir",
"toolchain",
"tracing",
"triomphe",
Expand Down Expand Up @@ -1756,9 +1748,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_abi"
version = "0.122.0"
version = "0.123.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb01e1fec578003c85481c1cad4ff8cd8195b07c2dc85ae3f716108507ae15d5"
checksum = "f18c877575c259d127072e9bfc41d985202262fb4d6bfdae3d1252147c2562c2"
dependencies = [
"bitflags 2.9.1",
"ra-ap-rustc_hashes",
Expand All @@ -1768,28 +1760,28 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_hashes"
version = "0.122.0"
version = "0.123.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0ec056e72a472ffef8761ce96ece6c626eb07368c09d0105b6df30d27d07673"
checksum = "2439ed1df3472443133b66949f81080dff88089b42f825761455463709ee1cad"
dependencies = [
"rustc-stable-hash",
]

[[package]]
name = "ra-ap-rustc_index"
version = "0.122.0"
version = "0.123.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fcdd1001db0295e59052e9f53aeda588bbe81e362534f4687d41bd44777b5a7"
checksum = "57a24fe0be21be1f8ebc21dcb40129214fb4cefb0f2753f3d46b6dbe656a1a45"
dependencies = [
"ra-ap-rustc_index_macros",
"smallvec",
]

[[package]]
name = "ra-ap-rustc_index_macros"
version = "0.122.0"
version = "0.123.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "728d64dd98e25530b32e3f7c7c1e844e52722b269360daa1cdeba9dff9727a26"
checksum = "844a27ddcad0116facae2df8e741fd788662cf93dc13029cd864f2b8013b81f9"
dependencies = [
"proc-macro2",
"quote",
Expand All @@ -1809,9 +1801,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_lexer"
version = "0.122.0"
version = "0.123.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "415f0821f512608d825b3215489a6a6a2c18ed9f0045953d514e7ec23d4b90ab"
checksum = "2b734cfcb577d09877799a22742f1bd398be6c00bc428d9de56d48d11ece5771"
dependencies = [
"memchr",
"unicode-properties",
Expand All @@ -1830,9 +1822,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_pattern_analysis"
version = "0.122.0"
version = "0.123.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4657fcfdfe06e2a02ec8180d4e7c95aecf4811ba50367e363d1a2300b7623284"
checksum = "75b0ee1f059b9dea0818c6c7267478926eee95ba4c7dcf89c8db32fa165d3904"
dependencies = [
"ra-ap-rustc_index",
"rustc-hash 2.1.1",
Expand Down Expand Up @@ -2293,6 +2285,12 @@ dependencies = [
"tt",
]

[[package]]
name = "temp-dir"
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83176759e9416cf81ee66cb6508dbfe9c96f20b8b56265a39917551c23c70964"

[[package]]
name = "tenthash"
version = "1.1.0"
Expand Down Expand Up @@ -2592,7 +2590,7 @@ version = "0.0.0"
dependencies = [
"arrayvec",
"intern",
"ra-ap-rustc_lexer 0.122.0",
"ra-ap-rustc_lexer 0.123.0",
"stdx",
"text-size",
]
Expand Down Expand Up @@ -3105,7 +3103,6 @@ name = "xtask"
version = "0.1.0"
dependencies = [
"anyhow",
"directories",
"edition",
"either",
"flate2",
Expand Down
9 changes: 5 additions & 4 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
vfs = { path = "./crates/vfs", version = "0.0.0" }
edition = { path = "./crates/edition", version = "0.0.0" }

ra-ap-rustc_lexer = { version = "0.122", default-features = false }
ra-ap-rustc_lexer = { version = "0.123", default-features = false }
ra-ap-rustc_parse_format = { version = "0.121", default-features = false }
ra-ap-rustc_index = { version = "0.122", default-features = false }
ra-ap-rustc_abi = { version = "0.122", default-features = false }
ra-ap-rustc_pattern_analysis = { version = "0.122", default-features = false }
ra-ap-rustc_index = { version = "0.123", default-features = false }
ra-ap-rustc_abi = { version = "0.123", default-features = false }
ra-ap-rustc_pattern_analysis = { version = "0.123", default-features = false }

# local crates that aren't published to crates.io. These should not have versions.

Expand Down Expand Up @@ -156,6 +156,7 @@ smallvec = { version = "1.15.1", features = [
"const_generics",
] }
smol_str = "0.3.2"
temp-dir = "0.1.16"
text-size = "1.1.1"
tracing = "0.1.41"
tracing-tree = "0.4.0"
Expand Down
12 changes: 10 additions & 2 deletions src/tools/rust-analyzer/crates/base-db/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub type ProcMacroPaths =
pub enum ProcMacroLoadingError {
Disabled,
FailedToBuild,
ExpectedProcMacroArtifact,
MissingDylibPath,
NotYetBuilt,
NoProcMacros,
Expand All @@ -39,7 +40,8 @@ impl ProcMacroLoadingError {
pub fn is_hard_error(&self) -> bool {
match self {
ProcMacroLoadingError::Disabled | ProcMacroLoadingError::NotYetBuilt => false,
ProcMacroLoadingError::FailedToBuild
ProcMacroLoadingError::ExpectedProcMacroArtifact
| ProcMacroLoadingError::FailedToBuild
| ProcMacroLoadingError::MissingDylibPath
| ProcMacroLoadingError::NoProcMacros
| ProcMacroLoadingError::ProcMacroSrvError(_) => true,
Expand All @@ -51,10 +53,16 @@ impl Error for ProcMacroLoadingError {}
impl fmt::Display for ProcMacroLoadingError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
ProcMacroLoadingError::ExpectedProcMacroArtifact => {
write!(f, "proc-macro crate did not build proc-macro artifact")
}
ProcMacroLoadingError::Disabled => write!(f, "proc-macro expansion is disabled"),
ProcMacroLoadingError::FailedToBuild => write!(f, "proc-macro failed to build"),
ProcMacroLoadingError::MissingDylibPath => {
write!(f, "proc-macro crate build data is missing a dylib path")
write!(
f,
"proc-macro crate built but the dylib path is missing, this indicates a problem with your build system."
)
}
ProcMacroLoadingError::NotYetBuilt => write!(f, "proc-macro not yet built"),
ProcMacroLoadingError::NoProcMacros => {
Expand Down
3 changes: 1 addition & 2 deletions src/tools/rust-analyzer/crates/hir-def/src/expr_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::{

use cfg::{CfgExpr, CfgOptions};
use either::Either;
use hir_expand::{ExpandError, InFile, MacroCallId, mod_path::ModPath, name::Name};
use hir_expand::{InFile, MacroCallId, mod_path::ModPath, name::Name};
use la_arena::{Arena, ArenaMap};
use rustc_hash::FxHashMap;
use smallvec::SmallVec;
Expand Down Expand Up @@ -281,7 +281,6 @@ struct FormatTemplate {
#[derive(Debug, Eq, PartialEq)]
pub enum ExpressionStoreDiagnostics {
InactiveCode { node: InFile<SyntaxNodePtr>, cfg: CfgExpr, opts: CfgOptions },
MacroError { node: InFile<MacroCallPtr>, err: ExpandError },
UnresolvedMacroCall { node: InFile<MacroCallPtr>, path: ModPath },
UnreachableLabel { node: InFile<AstPtr<ast::Lifetime>>, name: Name },
AwaitOutsideOfAsync { node: InFile<AstPtr<ast::AwaitExpr>>, ___location: String },
Expand Down
49 changes: 15 additions & 34 deletions src/tools/rust-analyzer/crates/hir-def/src/expr_store/lower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,38 +960,29 @@ impl ExprCollector<'_> {
impl_trait_lower_fn: ImplTraitLowerFn<'_>,
) -> TypeBound {
match node.kind() {
ast::TypeBoundKind::PathType(path_type) => {
ast::TypeBoundKind::PathType(binder, path_type) => {
let binder = match binder.and_then(|it| it.generic_param_list()) {
Some(gpl) => gpl
.lifetime_params()
.flat_map(|lp| lp.lifetime().map(|lt| Name::new_lifetime(&lt.text())))
.collect(),
None => ThinVec::default(),
};
let m = match node.question_mark_token() {
Some(_) => TraitBoundModifier::Maybe,
None => TraitBoundModifier::None,
};
self.lower_path_type(&path_type, impl_trait_lower_fn)
.map(|p| {
TypeBound::Path(self.alloc_path(p, AstPtr::new(&path_type).upcast()), m)
let path = self.alloc_path(p, AstPtr::new(&path_type).upcast());
if binder.is_empty() {
TypeBound::Path(path, m)
} else {
TypeBound::ForLifetime(binder, path)
}
})
.unwrap_or(TypeBound::Error)
}
ast::TypeBoundKind::ForType(for_type) => {
let lt_refs = match for_type.generic_param_list() {
Some(gpl) => gpl
.lifetime_params()
.flat_map(|lp| lp.lifetime().map(|lt| Name::new_lifetime(&lt.text())))
.collect(),
None => ThinVec::default(),
};
let path = for_type.ty().and_then(|ty| match &ty {
ast::Type::PathType(path_type) => {
self.lower_path_type(path_type, impl_trait_lower_fn).map(|p| (p, ty))
}
_ => None,
});
match path {
Some((p, ty)) => {
TypeBound::ForLifetime(lt_refs, self.alloc_path(p, AstPtr::new(&ty)))
}
None => TypeBound::Error,
}
}
ast::TypeBoundKind::Use(gal) => TypeBound::Use(
gal.use_bound_generic_args()
.map(|p| match p {
Expand Down Expand Up @@ -1981,13 +1972,7 @@ impl ExprCollector<'_> {
return collector(self, None);
}
};
if record_diagnostics {
if let Some(err) = res.err {
self.store
.diagnostics
.push(ExpressionStoreDiagnostics::MacroError { node: macro_call_ptr, err });
}
}
// No need to push macro and parsing errors as they'll be recreated from `macro_calls()`.

match res.value {
Some((mark, expansion)) => {
Expand All @@ -1997,10 +1982,6 @@ impl ExprCollector<'_> {
self.store.expansions.insert(macro_call_ptr, macro_file);
}

if record_diagnostics {
// FIXME: Report parse errors here
}

let id = collector(self, expansion.map(|it| it.tree()));
self.expander.exit(mark);
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,18 @@ impl GenericParamsCollector {
continue;
};

let lifetimes: Option<Box<_>> = pred.generic_param_list().map(|param_list| {
// Higher-Ranked Trait Bounds
param_list
.lifetime_params()
.map(|lifetime_param| {
lifetime_param
.lifetime()
.map_or_else(Name::missing, |lt| Name::new_lifetime(&lt.text()))
})
.collect()
});
let lifetimes: Option<Box<_>> =
pred.for_binder().and_then(|it| it.generic_param_list()).map(|param_list| {
// Higher-Ranked Trait Bounds
param_list
.lifetime_params()
.map(|lifetime_param| {
lifetime_param
.lifetime()
.map_or_else(Name::missing, |lt| Name::new_lifetime(&lt.text()))
})
.collect()
});
for bound in pred.type_bound_list().iter().flat_map(|l| l.bounds()) {
self.lower_type_bound_as_predicate(ec, bound, lifetimes.as_deref(), target);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub enum Path {
}

// This type is being used a lot, make sure it doesn't grow unintentionally.
#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
const _: () = {
assert!(size_of::<Path>() == 24);
assert!(size_of::<Option<Path>>() == 24);
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/crates/hir-def/src/hir/type_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub enum TypeRef {
Error,
}

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
const _: () = assert!(size_of::<TypeRef>() == 24);

pub type TypeRefId = Idx<TypeRef>;
Expand Down
Loading
Loading