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 11 pull requests #88854

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
07988bb
Reword description of automatic impls of `Unsize`.
kpreid Aug 10, 2021
2884a74
Fix non-capturing closure return type coercion
FabianWolff Aug 18, 2021
4d6bfde
Improve error message when _ is used for in/inout asm operands
Amanieu Aug 21, 2021
bbe3be9
Add explanatory comment
FabianWolff Aug 31, 2021
cd75af2
Change more x64 size checks to not apply to x32.
hvdijk Sep 5, 2021
04db063
Don't build the library and standard library before documenting them
jyn514 Sep 5, 2021
e2d01ed
Simplify std::os module reexports to fix rustdoc linking issues
GuillaumeGomez Sep 3, 2021
2987f4b
WIP state
BoxyUwU Sep 6, 2021
9b29138
as casts and block exprs
BoxyUwU Sep 6, 2021
4483c2b
dont support blocks
BoxyUwU Sep 6, 2021
47b16f4
bless stderr
BoxyUwU Sep 6, 2021
c170dcf
tidy
BoxyUwU Sep 6, 2021
08e8644
move thir visitor to rustc_middle
BoxyUwU Sep 6, 2021
fc63e9a
dont build abstract const for monomorphic consts
BoxyUwU Sep 6, 2021
4cbcb09
handle `ExprKind::NeverToAny`
BoxyUwU Sep 6, 2021
1f57f8b
remove `WorkNode`
BoxyUwU Sep 6, 2021
15101c8
remove debug stmts
BoxyUwU Sep 7, 2021
406d2ab
rename mir -> thir around abstract consts
BoxyUwU Sep 7, 2021
79be080
remove comment
BoxyUwU Sep 7, 2021
955e2b2
nits
BoxyUwU Sep 7, 2021
8c7954d
add a `CastKind` to `Node::Cast`
BoxyUwU Sep 7, 2021
3212734
resolve `from_hir_call` FIXME
BoxyUwU Sep 7, 2021
cd2915e
fmt
BoxyUwU Sep 7, 2021
fd9bb30
CI please
BoxyUwU Sep 7, 2021
dc02b51
Use more accurate spans for "unused delimiter" lint
estebank Sep 9, 2021
8295e4a
add test for builtin types N + N unifying with fn call
BoxyUwU Sep 9, 2021
64354a9
Remove usage of cfg_if in std/src/os/mod.rs
GuillaumeGomez Sep 3, 2021
88d5aa6
Move fortanix module position in std::os reexports for alpha sort
GuillaumeGomez Sep 7, 2021
c9a56cd
Add help for E0463
GuillaumeGomez Sep 10, 2021
294510e
rustc: Remove local variable IDs from `Export`s
petrochenkov Sep 5, 2021
c1e9608
don't clone types that are Copy (clippy::clone_on_copy)
matthiaskrgr Sep 11, 2021
fd389b5
Rollup merge of #87904 - kpreid:unsize, r=jyn514
GuillaumeGomez Sep 11, 2021
1cf99f5
Rollup merge of #88147 - FabianWolff:issue-88097, r=jackh726
GuillaumeGomez Sep 11, 2021
24fed97
Rollup merge of #88209 - Amanieu:asm_in_underscore, r=nagisa
GuillaumeGomez Sep 11, 2021
f064ad7
Rollup merge of #88619 - GuillaumeGomez:simplify-std-os-reexports, r=…
GuillaumeGomez Sep 11, 2021
a21eaa4
Rollup merge of #88668 - hvdijk:x32, r=joshtriplett
GuillaumeGomez Sep 11, 2021
0235d0b
Rollup merge of #88675 - jyn514:faster-doc, r=Mark-Simulacrum
GuillaumeGomez Sep 11, 2021
78b5acc
Rollup merge of #88677 - petrochenkov:exportid, r=davidtwco
GuillaumeGomez Sep 11, 2021
abb31d6
Rollup merge of #88709 - BoxyUwU:thir-abstract-const, r=lcnr
GuillaumeGomez Sep 11, 2021
9f98345
Rollup merge of #88779 - estebank:unused-delims, r=davidtwco
GuillaumeGomez Sep 11, 2021
9c7edef
Rollup merge of #88830 - GuillaumeGomez:help-e0463, r=estebank
GuillaumeGomez Sep 11, 2021
35b66f8
Rollup merge of #88849 - matthiaskrgr:clony_on_copy, r=petrochenkov
GuillaumeGomez Sep 11, 2021
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
8 changes: 4 additions & 4 deletions compiler/rustc_middle/src/mir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ pub struct Place<'tcx> {
pub projection: &'tcx List<PlaceElem<'tcx>>,
}

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
static_assert_size!(Place<'_>, 16);

#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
Expand Down Expand Up @@ -2062,7 +2062,7 @@ pub enum Operand<'tcx> {
Constant(Box<Constant<'tcx>>),
}

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
static_assert_size!(Operand<'_>, 24);

impl<'tcx> Debug for Operand<'tcx> {
Expand Down Expand Up @@ -2200,7 +2200,7 @@ pub enum Rvalue<'tcx> {
Aggregate(Box<AggregateKind<'tcx>>, Vec<Operand<'tcx>>),
}

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
static_assert_size!(Rvalue<'_>, 40);

#[derive(Clone, Copy, Debug, PartialEq, Eq, TyEncodable, TyDecodable, Hash, HashStable)]
Expand All @@ -2226,7 +2226,7 @@ pub enum AggregateKind<'tcx> {
Generator(DefId, SubstsRef<'tcx>, hir::Movability),
}

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
static_assert_size!(AggregateKind<'_>, 48);

#[derive(Copy, Clone, Debug, PartialEq, PartialOrd, Eq, TyEncodable, TyDecodable, Hash, HashStable)]
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_parse/src/parser/attr_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct AttrWrapper {

// This struct is passed around very frequently,
// so make sure it doesn't accidentally get larger
#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
rustc_data_structures::static_assert_size!(AttrWrapper, 16);

impl AttrWrapper {
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/render/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ crate struct Context<'tcx> {
}

// `Context` is cloned a lot, so we don't want the size to grow unexpectedly.
#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
rustc_data_structures::static_assert_size!(Context<'_>, 104);

/// Shared mutable state used in [`Context`] and elsewhere.
Expand Down