8000 Rollup of 7 pull requests by Dylan-DPC-zz · Pull Request #70063 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 7 pull requests #70063

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

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
cdc7304
Compute the correct layout for variants of uninhabited enums and read…
oli-obk Mar 6, 2020
ec88ffa
Comment nits
oli-obk Mar 11, 2020
74608c7
Rustfmt and adjust capitalization
oli-obk Mar 11, 2020
71ebc61
resolve: Simplify `fn report_privacy_error`
petrochenkov Mar 7, 2020
580c6a2
resolve: Print import chains on privacy errors
petrochenkov Mar 7, 2020
afa940b
Update the mir inline costs
andjo403 Mar 11, 2020
f4083c6
Add the "consider importing it directly" label to public imports as well
petrochenkov Mar 11, 2020
f4eb6ed
Ensure HAS_FREE_LOCAL_NAMES is set for ReFree
matthewjasper Mar 11, 2020
e80cb20
resolve: Fix regression in resolution of raw keywords in paths
petrochenkov Mar 14, 2020
81099c2
VariantSizeDifferences: bail on SizeOverflow
Centril Mar 10, 2020
ce5e49f
Use sublice patterns to avoid computing the len
tesuji Mar 16, 2020
e1bc9af
Fix wrong deref
tesuji Mar 16, 2020
dd0d904
Rollup merge of #69768 - oli-obk:union_field_ice, r=eddyb,RalfJung
Dylan-DPC Mar 17, 2020
f6703ef
Rollup merge of #69811 - petrochenkov:privdiag2, r=estebank
Dylan-DPC Mar 17, 2020
2dab4f4
Rollup merge of #69881 - Centril:fix-69485, r=oli-obk
Dylan-DPC Mar 17, 2020
7e8c3b2
Rollup merge of #69934 - andjo403:inlinecost, r=wesleywiser
Dylan-DPC Mar 17, 2020
875392d
Rollup merge of #69956 - matthewjasper:fix-region-flags, r=nikomatsakis
Dylan-DPC Mar 17, 2020
ca2e83d
Rollup merge of #70000 - petrochenkov:rawkeypars, r=davidtwco
Dylan-DPC Mar 17, 2020
d7eabe5
Rollup merge of #70046 - lzutao:patch-1, r=Centril
Dylan-DPC Mar 17, 2020 8000
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
Rustfmt and adjust capitalization
  • Loading branch information
oli-obk committed Mar 11, 2020
commit 74608c7f206171cb72c020a03800b2d9035a35fa
5 changes: 2 additions & 3 deletions src/librustc_target/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,9 @@ impl FieldPlacement {
pub fn offset(&self, i: usize) -> Size {
match *self {
FieldPlacement::Union(count) => {
assert!(i < count,
"Tried to access field {} of union with {} fields", i, count);
assert!(i < count, "tried to access field {} of union with {} fields", i, count);
Size::ZERO
},
}
FieldPlacement::Array { stride, count } => {
let i = i as u64;
assert!(i < count);
Expand Down
0