Skip to content
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

Rollup of 12 pull requests #94286

Merged
merged 109 commits into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
0ef1158
Remove NullOp::Box
nbdd0121 Sep 26, 2021
a5a1425
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_…
bjorn3 Dec 30, 2021
720cd94
Merge branch 'sync_from_rust'
bjorn3 Dec 30, 2021
1da0071
Rollup merge of #90102 - nbdd0121:box3, r=jonas-schievink
matthiaskrgr Jan 3, 2022
e4fff03
Update Cranelift to 0.79.1
bjorn3 Jan 5, 2022
9913630
Reduce usage of subst types in the intrinsic code
bjorn3 Jan 9, 2022
c5b9695
Split codegen_intrinsic_call function
bjorn3 Jan 9, 2022
70cc242
Remove a couple of duplicate calls
bjorn3 Jan 9, 2022
409e3eb
Remove unnecessary argument
bjorn3 Jan 9, 2022
046e094
Only use a single bug!() invocation in call_intrinsic_match
bjorn3 Jan 9, 2022
a1a1640
Move call_intrinsic_match macro into codegen_float_intrinsic_call
bjorn3 Jan 9, 2022
3009747
Dedup write_cvalue calls in codegen_float_intrinsic_call
bjorn3 Jan 9, 2022
baad993
Dedup codegen_operand calls in codegen_float_intrinsic_call
bjorn3 Jan 9, 2022
9e6d8c1
Remove the call_intrinsic_match macro
bjorn3 Jan 9, 2022
9295b08
Turn validate_simd_type into a function
bjorn3 Jan 9, 2022
4e3a8d5
Move validate_simd_type from intrinsics to intrinsics::simd
bjorn3 Jan 9, 2022
8ace43e
Move a couple of macros to intrinsics::simd
bjorn3 Jan 9, 2022
78e2d4a
Remove support for vector icmp for now
bjorn3 Jan 9, 2022
d4d2b24
Slightly simplify some macros by removing an extra case for when sign…
bjorn3 Jan 9, 2022
57d25ef
Use simplified version of bool_to_zero_or_max_uint in simd_cmp
bjorn3 Jan 9, 2022
b60eced
Return Value instead of CValue from the simd_for_each_lane closure
bjorn3 Jan 9, 2022
2633024
Don't monomorphize the simd helpers for each closure
bjorn3 Jan 9, 2022
b7cda37
Pass Ty instead of TyAndLayout to the closure of various simd helpers
bjorn3 Jan 9, 2022
f328359
Merge pull request #1216 from bjorn3/reduce_cg_clif_compile_times
bjorn3 Jan 9, 2022
4dbd319
Move most code from y.rs to build_system/mod.rs
bjorn3 Jan 9, 2022
759c4ac
Update to Cranelift 0.80.0
bjorn3 Jan 10, 2022
8f02c4e
Add y.bin to clean_all.sh
bjorn3 Jan 10, 2022
409276c
Store a `Symbol` instead of an `Ident` in `VariantDef`/`FieldDef`
Aaron1011 Jan 3, 2022
7ec4de3
Remove deprecated LLVM-style inline assembly
tmiasko Jan 12, 2022
eef3530
initial revert
BoxyUwU Jan 12, 2022
0b58e52
Auto merge of #92816 - tmiasko:rm-llvm-asm, r=Amanieu
bors Jan 17, 2022
48abe3c
Use Symbol for target features in asm handling
bjorn3 Jan 10, 2022
e59b024
Pass target_features set instead of has_feature closure
bjorn3 Jan 10, 2022
489bff5
Sync from rust 7531d2fdd49966d83830a7b4596c95587b1e9573
bjorn3 Jan 18, 2022
b85cbdd
Rustup to rustc 1.60.0-nightly (ee5d8d37b 2022-01-17)
bjorn3 Jan 18, 2022
0472f6c
Use 2021 edition for libcore tests
bjorn3 Jan 18, 2022
b91ecc7
Update rustc test ignore list
bjorn3 Jan 18, 2022
f3b2d37
Record object file artifact size in self profile data
bjorn3 Jan 18, 2022
5f6c59e
Pass only the Function to write_clif_file
bjorn3 Jan 18, 2022
78b6571
Split compile_fn out of codegen_fn
bjorn3 Jan 18, 2022
513d72d
remove `is_noop`
lcnr Jan 19, 2022
400f122
Sync from rust 2f004d2d401682e553af3984ebd9a3976885e752
bjorn3 Jan 19, 2022
7a8227e
Rustup to rustc 1.60.0-nightly (9ad5d82f8 2022-01-18)
bjorn3 Jan 19, 2022
c6e607a
Implement unchecked_mul intrinsic
bjorn3 Jan 19, 2022
cc24cea
Rustfmt
bjorn3 Jan 19, 2022
2c26139
Use an `indexmap` to avoid sorting `LocalDefId`s
pierwill Jan 6, 2022
2d32e51
Sync from rust a00e130dae74a213338e2b095ec855156d8f3d8a
bjorn3 Jan 30, 2022
96dc846
Rustup to rustc 1.60.0-nightly (a00e130da 2022-01-29)
bjorn3 Jan 30, 2022
3ff158e
Update dependencies
bjorn3 Jan 30, 2022
1b8ea07
Add const_allocate and const_deallocate intrinsics
bjorn3 Jan 30, 2022
246998f
Remove some unused lint allows
bjorn3 Jan 30, 2022
5efd778
Don't generate unnecessary let $arg=$arg for intrinsics
bjorn3 Jan 30, 2022
bb1b5cd
Remove validate_atomic_type
bjorn3 Jan 30, 2022
037aafb
Fix simd type validation
bjorn3 Jan 30, 2022
1ae27ea
Remove simd_cmp macro
bjorn3 Jan 30, 2022
c1d699d
Remove the remaining simd intrinsic macros
bjorn3 Jan 30, 2022
5a3cfb2
Merge codegen of several simd intrinsics
bjorn3 Jan 30, 2022
bccf0a1
Merge codegen of a couple more simd intrinsics
bjorn3 Jan 30, 2022
441e2e6
Rustup to rustc 1.60.0-nightly (88fb06a1f 2022-02-05)
bjorn3 Feb 6, 2022
583333a
Don't try to reinstall ripgrep if it is already installed
bjorn3 Feb 6, 2022
75a463a
Update Cranelift to 0.81.0
bjorn3 Feb 8, 2022
d416c68
Ensure that queries only return Copy types.
cjgillot Jan 31, 2022
cf9c65b
Make FnAbiError Copy.
cjgillot Feb 1, 2022
4e39cde
Unconditionally update symbols
bjorn3 Feb 10, 2022
2ef3114
Sync from rust 9a60099cc43c8a07abb280be323d1ed9afc27f2c
bjorn3 Feb 13, 2022
d459445
Rustup to rustc 1.60.0-nightly (5d8767cb2 2022-02-12)
bjorn3 Feb 13, 2022
6a20fa9
Overhaul `TyS` and `Ty`.
nnethercote Jan 25, 2022
18e7b7e
Overhaul `RegionKind` and `Region`.
nnethercote Jan 28, 2022
06bc64d
Overhaul `Const`.
nnethercote Feb 2, 2022
4563abd
Sync from rust a240ccd81c74c105b6f5fe84c46f8d36edb7e306
bjorn3 Feb 16, 2022
f606a58
Rustup to rustc 1.60.0-nightly (09cb29c64 2022-02-15)
bjorn3 Feb 16, 2022
7e80bc3
Move ty::print methods to Drop-based scope guards
Mark-Simulacrum Feb 16, 2022
9974925
rustdoc: several minor fixes
mqy Feb 18, 2022
aa60157
rustdoc-json: Better Header Type
aDotInTheVoid Feb 18, 2022
fd5adef
rustdoc-json: Add tests for fn qualifiers and ABI
aDotInTheVoid Feb 18, 2022
4a5b069
Rustup to rustc 1.61.0-nightly (3b348d932 2022-02-19)
bjorn3 Feb 20, 2022
2aad006
Update ignored rustc tests list
bjorn3 Feb 20, 2022
d34bcdd
use `List<Ty<'tcx>>` for tuples
lcnr Feb 7, 2022
c1d75a2
fix names in feature(...) suggestion
digama0 Feb 21, 2022
b673c63
fix test
digama0 Feb 21, 2022
e62c26e
On ARM, use relocation_model to detect whether r9 should be reserved
Amanieu Feb 17, 2022
73cf3aa
Take CodegenFnAttrs into account when validating asm! register operands
Amanieu Feb 17, 2022
a08809f
Suggest calling .display() on PathBuf too
compiler-errors Feb 22, 2022
dcd93bc
Use 2021 edition in ./x.py fmt
bjorn3 Feb 22, 2022
a063e13
Rollup merge of #94169 - Amanieu:asm_stuff, r=nagisa
matthiaskrgr Feb 22, 2022
21987c1
Bump download-ci-llvm-stamp for llvm-nm inclusion
krasimirgg Feb 22, 2022
a849857
Prevent generation of infinite redirections
GuillaumeGomez Feb 22, 2022
1d95acb
Add test for infinite redirection
GuillaumeGomez Feb 22, 2022
98bc47f
Typo fix: Close inline-code backtick
anko Feb 22, 2022
c61d592
Fix typo.
NyantasticUwU Feb 22, 2022
33cf8fa
Sync from rust 03a8cc7df1d65554a4d40825b0490c93ac0f0236
bjorn3 Feb 22, 2022
dc973ae
Rustup to rustc 1.61.0-nightly (03a8cc7df 2022-02-21)
bjorn3 Feb 22, 2022
d0192e6
Miri: extend comments on downcast operation
RalfJung Feb 23, 2022
1113cd5
Rename `region_should_not_be_omitted` to `should_print_region`
tmiasko Feb 22, 2022
ca1f3e7
Sync from rust bafe8d06e015eb00724d3d497516191d6681943f
bjorn3 Feb 23, 2022
35d9c6b
Rustup to rustc 1.61.0-nightly (68369a041 2022-02-22)
bjorn3 Feb 23, 2022
f596dce
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_…
bjorn3 Feb 23, 2022
0c676a8
Rollup merge of #94128 - mqy:master, r=Dylan-DPC
matthiaskrgr Feb 23, 2022
8bb6051
Rollup merge of #94137 - aDotInTheVoid:abi-enum, r=CraftSpider
matthiaskrgr Feb 23, 2022
14ac74d
Rollup merge of #94213 - digama0:patch-4, r=Dylan-DPC
matthiaskrgr Feb 23, 2022
40afbdd
Rollup merge of #94240 - compiler-errors:pathbuf-display, r=lcnr
matthiaskrgr Feb 23, 2022
86ee06a
Rollup merge of #94253 - bjorn3:xpy-fmt-2021, r=Mark-Simulacrum
matthiaskrgr Feb 23, 2022
09e4f34
Rollup merge of #94259 - krasimirgg:bump-llvm-ci, r=Mark-Simulacrum
matthiaskrgr Feb 23, 2022
a9eb5f0
Rollup merge of #94260 - GuillaumeGomez:infinite-redirection, r=notri…
matthiaskrgr Feb 23, 2022
6550671
Rollup merge of #94263 - anko:patch-1, r=GuillaumeGomez
matthiaskrgr Feb 23, 2022
efe6a97
Rollup merge of #94264 - NyantasticUwU:patch-1, r=yaahc
matthiaskrgr Feb 23, 2022
81794be
Rollup merge of #94271 - RalfJung:downcast, r=oli-obk
matthiaskrgr Feb 23, 2022
ecf2faa
Rollup merge of #94280 - tmiasko:should-print-region, r=oli-obk
matthiaskrgr Feb 23, 2022
8f53bdb
Rollup merge of #94285 - bjorn3:sync_cg_clif-2022-02-23, r=bjorn3
matthiaskrgr Feb 23, 2022
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
2 changes: 1 addition & 1 deletion compiler/rustc_ast/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl ParenthesizedArgs {

pub use crate::node_id::{NodeId, CRATE_NODE_ID, DUMMY_NODE_ID};

/// A modifier on a bound, e.g., `?Sized` or `~const Trait`.
/// A modifier on a bound, e.g., `?Trait` or `~const Trait`.
///
/// Negative bounds should also be handled here.
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Decodable, Debug)]
Expand Down
67 changes: 32 additions & 35 deletions compiler/rustc_codegen_cranelift/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version = 3

[[package]]
name = "anyhow"
version = "1.0.51"
version = "1.0.53"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b26702f315f53b6071259e15dd9d64528213b44d61de1ec926eca7715d62203"
checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0"

[[package]]
name = "ar"
Expand All @@ -33,18 +33,18 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"

[[package]]
name = "cranelift-bforest"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc0cb7df82c8cf8f2e6a8dd394a0932a71369c160cc9b027dca414fced242513"
checksum = "71447555acc6c875c52c407d572fc1327dc5c34cba72b4b2e7ad048aa4e4fd19"
dependencies = [
"cranelift-entity",
]

[[package]]
name = "cranelift-codegen"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe4463c15fa42eee909e61e5eac4866b7c6d22d0d8c621e57a0c5380753bfa8c"
checksum = "ec9a10261891a7a919b0d4f6aa73582e88441d9a8f6173c88efbe4a5a362ea67"
dependencies = [
"cranelift-bforest",
"cranelift-codegen-meta",
Expand All @@ -59,31 +59,30 @@ dependencies = [

[[package]]
name = "cranelift-codegen-meta"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "793f6a94a053a55404ea16e1700202a88101672b8cd6b4df63e13cde950852bf"
checksum = "815755d76fcbcf6e17ab888545b28ab775f917cb12ce0797e60cd41a2288692c"
dependencies = [
"cranelift-codegen-shared",
"cranelift-entity",
]

[[package]]
name = "cranelift-codegen-shared"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44aa1846df275bce5eb30379d65964c7afc63c05a117076e62a119c25fe174be"
checksum = "23ea92f2a67335a2e4d3c9c65624c3b14ae287d595b0650822c41824febab66b"

[[package]]
name = "cranelift-entity"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3a45d8d6318bf8fc518154d9298eab2a8154ec068a8885ff113f6db8d69bb3a"
checksum = "bd25847875e388c500ad3624b4d2e14067955c93185194a7222246a25b91c975"

[[package]]
name = "cranelift-frontend"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e07339bd461766deb7605169de039e01954768ff730fa1254e149001884a8525"
checksum = "308bcfb7eb47bdf5ff6e1ace262af4ed39ec19f204c751fffb037e0e82a0c8bf"
dependencies = [
"cranelift-codegen",
"log",
Expand All @@ -93,9 +92,9 @@ dependencies = [

[[package]]
name = "cranelift-jit"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e8f0d60fb5d67f7a1e5c49db38ba96d1c846921faef02085fc5590b74781747"
checksum = "f560b3a314b8d15facf411e5d29b917c3e787a2bbc3fcdc5183bc0c5b7d4fe01"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -111,21 +110,19 @@ dependencies = [

[[package]]
name = "cranelift-module"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "825ac7e0959cbe7ddc9cc21209f0319e611a57f9fcb2b723861fe7ef2017e651"
checksum = "3a57aba9e603d694d1430ff38bd914bae23ef9c2e44b25a65e318905807e654c"
dependencies = [
"anyhow",
"cranelift-codegen",
"cranelift-entity",
"log",
]

[[package]]
name = "cranelift-native"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03e2fca76ff57e0532936a71e3fc267eae6a19a86656716479c66e7f912e3d7b"
checksum = "12cdc799aee673be2317e631d4569a1ba0a7e77a07a7ce45557086d2e02e9514"
dependencies = [
"cranelift-codegen",
"libc",
Expand All @@ -134,9 +131,9 @@ dependencies = [

[[package]]
name = "cranelift-object"
version = "0.78.0"
version = "0.81.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55500d0fc9bb05c0944fc4506649249d28f55bd4fe95b87f0e55bf41058f0e6d"
checksum = "502a7333836052fcdf4425d7f7a21264d99f862d32b9c3a0e47cd920487a9b60"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -148,18 +145,18 @@ dependencies = [

[[package]]
name = "crc32fast"
version = "1.3.0"
version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836"
checksum = "a2209c310e29876f7f0b2721e7e26b84aff178aa3da5d091f9bfbf47669e60e3"
dependencies = [
"cfg-if",
]

[[package]]
name = "gimli"
version = "0.25.0"
version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7"
checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4"
dependencies = [
"indexmap",
]
Expand All @@ -182,9 +179,9 @@ dependencies = [

[[package]]
name = "libc"
version = "0.2.112"
version = "0.2.116"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74"

[[package]]
name = "libloading"
Expand Down Expand Up @@ -233,9 +230,9 @@ dependencies = [

[[package]]
name = "regalloc"
version = "0.0.32"
version = "0.0.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6304468554ed921da3d32c355ea107b8d13d7b8996c3adfb7aab48d3bc321f4"
checksum = "62446b1d3ebf980bdc68837700af1d77b37bc430e524bf95319c6eada2a4cc02"
dependencies = [
"log",
"rustc-hash",
Expand Down Expand Up @@ -281,9 +278,9 @@ dependencies = [

[[package]]
name = "smallvec"
version = "1.7.0"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309"
checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83"

[[package]]
name = "target-lexicon"
Expand Down
14 changes: 7 additions & 7 deletions compiler/rustc_codegen_cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ crate-type = ["dylib"]

[dependencies]
# These have to be in sync with each other
cranelift-codegen = { version = "0.78.0", features = ["unwind", "all-arch"] }
cranelift-frontend = "0.78.0"
cranelift-module = "0.78.0"
cranelift-native = "0.78.0"
cranelift-jit = { version = "0.78.0", optional = true }
cranelift-object = "0.78.0"
cranelift-codegen = { version = "0.81.0", features = ["unwind", "all-arch"] }
cranelift-frontend = "0.81.0"
cranelift-module = "0.81.0"
cranelift-native = "0.81.0"
cranelift-jit = { version = "0.81.0", optional = true }
cranelift-object = "0.81.0"
target-lexicon = "0.12.0"
gimli = { version = "0.25.0", default-features = false, features = ["write"]}
gimli = { version = "0.26.0", default-features = false, features = ["write"]}
object = { version = "0.27.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }

ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
Expand Down
26 changes: 13 additions & 13 deletions compiler/rustc_codegen_cranelift/build_sysroot/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ dependencies = [

[[package]]
name = "autocfg"
version = "1.0.1"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"

[[package]]
name = "cc"
version = "1.0.72"
version = "1.0.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee"
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"

[[package]]
name = "cfg-if"
Expand All @@ -56,7 +56,7 @@ dependencies = [

[[package]]
name = "compiler_builtins"
version = "0.1.66"
version = "0.1.70"
dependencies = [
"rustc-std-workspace-core",
]
Expand Down Expand Up @@ -110,9 +110,9 @@ dependencies = [

[[package]]
name = "hashbrown"
version = "0.11.2"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
checksum = "8c21d40587b92fa6a6c6e3c1bdbf87d75511db5672f9c93175574b3a00df1758"
dependencies = [
"compiler_builtins",
"rustc-std-workspace-alloc",
Expand All @@ -121,9 +121,9 @@ dependencies = [

[[package]]
name = "hermit-abi"
version = "0.1.19"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
checksum = "1ab7905ea95c6d9af62940f9d7dd9596d54c334ae2c15300c482051292d5637f"
dependencies = [
"compiler_builtins",
"libc",
Expand All @@ -132,9 +132,9 @@ dependencies = [

[[package]]
name = "libc"
version = "0.2.112"
version = "0.2.119"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
dependencies = [
"rustc-std-workspace-core",
]
Expand Down Expand Up @@ -319,9 +319,9 @@ dependencies = [

[[package]]
name = "wasi"
version = "0.9.0+wasi-snapshot-preview1"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
dependencies = [
"compiler_builtins",
"rustc-std-workspace-alloc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub(crate) fn build_backend(
cmd.env("RUSTFLAGS", rustflags);

eprintln!("[BUILD] rustc_codegen_cranelift");
crate::utils::spawn_and_wait(cmd);
super::utils::spawn_and_wait(cmd);

Path::new("target").join(host_triple).join(channel)
}
10 changes: 5 additions & 5 deletions compiler/rustc_codegen_cranelift/build_system/build_sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::fs;
use std::path::{Path, PathBuf};
use std::process::{self, Command};

use crate::rustc_info::{get_file_name, get_rustc_version};
use crate::utils::{spawn_and_wait, try_hard_link};
use crate::SysrootKind;
use super::rustc_info::{get_file_name, get_rustc_version};
use super::utils::{spawn_and_wait, try_hard_link};
use super::SysrootKind;

pub(crate) fn build_sysroot(
channel: &str,
Expand Down Expand Up @@ -52,7 +52,7 @@ pub(crate) fn build_sysroot(
.arg("-g");
spawn_and_wait(build_cargo_wrapper_cmd);

let default_sysroot = crate::rustc_info::get_default_sysroot();
let default_sysroot = super::rustc_info::get_default_sysroot();

let rustlib = target_dir.join("lib").join("rustlib");
let host_rustlib_lib = rustlib.join(host_triple).join("lib");
Expand Down Expand Up @@ -167,7 +167,7 @@ fn build_clif_sysroot_for_triple(

let build_dir = Path::new("build_sysroot").join("target").join(triple).join(channel);

if !crate::config::get_bool("keep_sysroot") {
if !super::config::get_bool("keep_sysroot") {
// Cleanup the target dir with the exception of build scripts and the incremental cache
for dir in ["build", "deps", "examples", "native"] {
if build_dir.join(dir).exists() {
Expand Down
Loading