Skip to content

Rollup of 6 pull requests #137446

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 23 commits into from
Feb 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
92fd960
stabilize (const_)ptr_sub_ptr
bend-n Feb 16, 2025
51d9a6c
Track where crate dependencies come from in `creader`
tgross35 Jan 29, 2025
83d70c0
Improve debugging for metadata structures
tgross35 Jan 29, 2025
efff15a
compiler: Align::max_for_offset -> Align::max_aligned_factor
workingjubilee Feb 18, 2025
5c474fd
compiler: `BackendRepr::inherent_{size,align} -> scalar_{size,align}`
workingjubilee Feb 19, 2025
79f41c7
compiler: split vector_align into cabi and llvmlike
workingjubilee Feb 19, 2025
46f7a7d
rust-analyzer: use new function in (incorrect) layout computation
workingjubilee Feb 19, 2025
ad962ed
stabilize `unsigned_is_multiple_of`
folkertdev Feb 21, 2025
1412cfc
Inject `compiler_builtins` during postprocessing rather than via AST
tgross35 Jan 29, 2025
cb1d076
Partially revert ed63539282 ("Mark dependencies ... private by default")
tgross35 Jan 14, 2025
8c1b49d
Use `public-dependencies` in all sysroot crates
tgross35 Jan 28, 2025
aca5b5d
If the parent dependency is private, treat dependents as private
tgross35 Jan 28, 2025
9392580
Replace some instances of `pub` with `pub(crate)`
tgross35 Jan 30, 2025
2a6daaf
Make asm a named field
compiler-errors Feb 17, 2025
37060aa
Initial cleanups of InlineAsmCtxt
compiler-errors Feb 17, 2025
6ba39f7
Make a fake body to store typeck results for global_asm
compiler-errors Feb 17, 2025
c45463e
remove invalid suggestion of into_iter for extern macro
chenyukang Feb 22, 2025
1610bfb
Rollup merge of #135501 - tgross35:stdlib-dependencies-private, r=bjorn3
matthiaskrgr Feb 22, 2025
929423a
Rollup merge of #137121 - bend-n:master, r=Noratrieb
matthiaskrgr Feb 22, 2025
4115f51
Rollup merge of #137180 - compiler-errors:sym-regions, r=oli-obk
matthiaskrgr Feb 22, 2025
86008ea
Rollup merge of #137256 - workingjubilee:untangle-vector-abi-assumpti…
matthiaskrgr Feb 22, 2025
88ed69c
Rollup merge of #137383 - folkertdev:stabilize-unsigned-is-multiple-o…
matthiaskrgr Feb 22, 2025
e780b89
Rollup merge of #137415 - chenyukang:yukang-fix-137345-invalid-sugg, …
matthiaskrgr Feb 22, 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
Prev Previous commit
Next Next commit
Use public-dependencies in all sysroot crates
In [1], most dependencies of `std` and other sysroot crates were marked
private, but this did not happen for `alloc` and `test`. Update these
here, marking public standard library crates as the only non-private
dependencies.

[1]: #111076
  • Loading branch information
tgross35 committed Feb 21, 2025
commit 8c1b49d5e92c035661459063a645b78a47b6346a
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ index 7165c3e48af..968552ad435 100644
edition = "2021"

[dependencies]
core = { path = "../core" }
core = { path = "../core", public = true }
-compiler_builtins = { version = "=0.1.146", features = ['rustc-dep-of-std'] }
+compiler_builtins = { version = "=0.1.146", features = ['rustc-dep-of-std', 'no-f16-f128'] }

Expand Down
4 changes: 3 additions & 1 deletion library/alloc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cargo-features = ["public-dependency"]

[package]
name = "alloc"
version = "0.0.0"
Expand All @@ -9,7 +11,7 @@ autobenches = false
edition = "2021"

[dependencies]
core = { path = "../core" }
core = { path = "../core", public = true }
compiler_builtins = { version = "=0.1.146", features = ['rustc-dep-of-std'] }

[dev-dependencies]
Expand Down
8 changes: 5 additions & 3 deletions library/sysroot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
cargo-features = ["public-dependency"]

[package]
name = "sysroot"
version = "0.0.0"
edition = "2021"

# this is a dummy crate to ensure that all required crates appear in the sysroot
[dependencies]
proc_macro = { path = "../proc_macro" }
proc_macro = { path = "../proc_macro", public = true }
profiler_builtins = { path = "../profiler_builtins", optional = true }
std = { path = "../std" }
test = { path = "../test" }
std = { path = "../std", public = true }
test = { path = "../test", public = true }

# Forward features to the `std` crate as necessary
[features]
Expand Down
6 changes: 4 additions & 2 deletions library/test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
cargo-features = ["public-dependency"]

[package]
name = "test"
version = "0.0.0"
edition = "2021"

[dependencies]
getopts = { version = "0.2.21", features = ['rustc-dep-of-std'] }
std = { path = "../std" }
core = { path = "../core" }
std = { path = "../std", public = true }
core = { path = "../core", public = true }

[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
libc = { version = "0.2.150", default-features = false }