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 7 pull requests #112127

Merged
merged 20 commits into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5c780d9
Migrate to Askama
sladyn98 May 28, 2023
7105f2e
improve `rustdoc-gui-test` to find local `node_modules`
onur-ozkan May 29, 2023
6c18d1e
offset_of: Don't require type to be sized
clubby789 May 29, 2023
472230d
Remove array_zip
workingjubilee May 30, 2023
97d4a38
Remove `-Zcgu-partitioning-strategy`.
nnethercote May 28, 2023
66cf072
Merge `default.rs` into `mod.rs`.
nnethercote May 30, 2023
5ed0149
Rename `partitioning/mod.rs` as `partitioning.rs`.
nnethercote May 30, 2023
2803c66
create `build_helper/src/util` mod
onur-ozkan May 30, 2023
c64db2c
use `build_helper::util::try_run` in rustdoc-gui-test
onur-ozkan May 30, 2023
5528757
Fix re-export of doc hidden item inside private item not displayed
GuillaumeGomez May 30, 2023
9906504
Add regression test for re-export of doc hidden item inside private i…
GuillaumeGomez May 30, 2023
1862fcb
rustdoc: simplify `clean` by removing `FnRetTy`
notriddle May 30, 2023
374f5a8
Test from_fn autovectorizes
scottmcm May 31, 2023
fdd62cf
Rollup merge of #112031 - sladyn98:migrate-proc-macro, r=GuillaumeGomez
matthiaskrgr May 31, 2023
7ca941f
Rollup merge of #112053 - nnethercote:rm-Zcpu-partitioning-strategy, …
matthiaskrgr May 31, 2023
f589451
Rollup merge of #112069 - clubby789:offset-of-sized-fields, r=WaffleL…
matthiaskrgr May 31, 2023
183a31b
Rollup merge of #112084 - ozkanonur:improvements, r=clubby789
matthiaskrgr May 31, 2023
88160ab
Rollup merge of #112096 - workingjubilee:array-unzip, r=scottmcm
matthiaskrgr May 31, 2023
1d643e1
Rollup merge of #112108 - GuillaumeGomez:reexport-doc-hidden-private,…
matthiaskrgr May 31, 2023
77bbfbc
Rollup merge of #112113 - notriddle:notriddle/rm-fnretty, r=Guillaume…
matthiaskrgr May 31, 2023
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
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4289,6 +4289,7 @@ dependencies = [
name = "rustdoc-gui-test"
version = "0.1.0"
dependencies = [
"build_helper",
"compiletest",
"getopts",
"walkdir",
Expand Down
11 changes: 8 additions & 3 deletions compiler/rustc_codegen_ssa/src/mir/rvalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,16 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {

mir::Rvalue::NullaryOp(ref null_op, ty) => {
let ty = self.monomorphize(ty);
assert!(bx.cx().type_is_sized(ty));
let layout = bx.cx().layout_of(ty);
let val = match null_op {
mir::NullOp::SizeOf => layout.size.bytes(),
mir::NullOp::AlignOf => layout.align.abi.bytes(),
mir::NullOp::SizeOf => {
assert!(bx.cx().type_is_sized(ty));
layout.size.bytes()
}
mir::NullOp::AlignOf => {
assert!(bx.cx().type_is_sized(ty));
layout.align.abi.bytes()
}
mir::NullOp::OffsetOf(fields) => {
layout.offset_of_subfield(bx.cx(), fields.iter().map(|f| f.index())).bytes()
}
Expand Down
1,182 changes: 1,182 additions & 0 deletions compiler/rustc_monomorphize/src/partitioning.rs

Large diffs are not rendered by default.

644 changes: 0 additions & 644 deletions compiler/rustc_monomorphize/src/partitioning/default.rs

This file was deleted.

Loading