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

Upgrade hashbrown to 0.12.3 #99372

Closed
wants to merge 1,641 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
1641 commits
Select commit Hold shift + click to select a range
ab225ad
interpret: refactor projection handling code
RalfJung Jul 4, 2022
04b3cd9
use a loop rather than try_fold
RalfJung Jul 11, 2022
e03cb7f
implement a suggestion for a floating point number with a type suffix
TaKO8Ki Jul 12, 2022
3de6d6b
add regression test for #74713
TaKO8Ki Jul 12, 2022
24e8796
Use some more visible sigils than `,`
oli-obk Jul 12, 2022
7269196
Always check Cell alongside with `UnsafeCell`
oli-obk Jul 12, 2022
f515af7
Add regex-error-pattern flag in compiletest
GuillaumeGomez Jul 12, 2022
349a3fc
Update -zhelp and -chelp rustdoc-ui tests to use regex-error-pattern
GuillaumeGomez Jul 12, 2022
944c0e2
check non_exhaustive attr and private fields for transparent types
fee1-dead Jul 7, 2022
e652147
add more tests
fee1-dead Jul 10, 2022
697dfb5
:arrow_up: rust-analyzer
lnicola Jul 12, 2022
947cbda
fix the typo
dingxiangfei2009 Jul 12, 2022
cb0017f
add new rval, pull deref early
ouz-a Jun 13, 2022
7615366
Rollup merge of #98622 - petrochenkov:executables, r=oli-obk
Dylan-DPC Jul 12, 2022
9997c51
Rollup merge of #98633 - c410-f3r:yet-another-let-chain, r=estebank
Dylan-DPC Jul 12, 2022
99fc65b
Rollup merge of #98972 - TaKO8Ki:suggest-adding-missing-zero-to-float…
Dylan-DPC Jul 12, 2022
c0bcbe8
Rollup merge of #99038 - jackh726:earlybinder-cleanup, r=lcnr
Dylan-DPC Jul 12, 2022
01c2421
Rollup merge of #99154 - rosehuds:master, r=cjgillot
Dylan-DPC Jul 12, 2022
87e25e4
Rollup merge of #99171 - GuillaumeGomez:rustdoc-ui-test-regex, r=Dyla…
Dylan-DPC Jul 12, 2022
1c7b36d
Auto merge of #99177 - Dylan-DPC:rollup-m0k9q2w, r=Dylan-DPC
bors Jul 12, 2022
40ae7b5
Parse closure binders
WaffleLapkin Jun 2, 2022
97fcead
--bless tests
WaffleLapkin Jun 2, 2022
f89ef3c
Comment out expr size check
WaffleLapkin Jul 12, 2022
b4c3a2a
ignore wasm=32 & bless
ouz-a Jul 12, 2022
2f0172f
Mention rust-analyzer maintainers when `proc_macro` bridge is changed
Jul 12, 2022
a89d014
llvm-wrapper: adapt for LLVM API change
krasimirgg Jul 12, 2022
9fcb9c6
Update compiler/rustc_parse/src/parser/expr.rs
notriddle Jul 12, 2022
c2dbd62
Lower closure binders to hir & properly check them
WaffleLapkin Jul 12, 2022
0c28484
make for<> in closures a possible place to suggest adding named lifetime
WaffleLapkin Jun 30, 2022
577f3c6
add test for implicit stuff in signatures of closures with `for<>`
WaffleLapkin Jun 24, 2022
3ebb852
Add `LifetimeBinderKind::Closure`
WaffleLapkin Jul 3, 2022
df4fee9
Add an indirection for closures in `hir::ExprKind`
WaffleLapkin Jul 11, 2022
d2923b4
Add back expr size checks
WaffleLapkin Jul 11, 2022
b504a18
implement rustfmt formatting for `for<>` closure binders
WaffleLapkin Jun 30, 2022
30a3673
Add rustfmt test for formatting `for<>` before closures
WaffleLapkin Jul 3, 2022
9aa142b
Fix clippy build
WaffleLapkin Jun 30, 2022
1cb1d63
Use `&{self.x}` for packed `Copy` structs.
nnethercote Jul 11, 2022
7b57152
Auto merge of #99101 - RalfJung:interpret-projections, r=oli-obk
bors Jul 13, 2022
5188bdb
remove an unnecessary `span_to_snippet`
TaKO8Ki Jul 13, 2022
f65bf0b
avoid `&str` to `String` conversions
TaKO8Ki Jul 13, 2022
1d26006
fix documentation
fee1-dead Jul 12, 2022
95e8b86
Auto merge of #99149 - ferrocene:pa-nightly-branch, r=Mark-Simulacrum
bors Jul 13, 2022
a639f89
Auto merge of #99066 - est31:remove_box_librustdoc, r=jsha
bors Jul 13, 2022
3dfb224
Rollup merge of #98789 - aDotInTheVoid:rjdt-derives, r=jsha
GuillaumeGomez Jul 13, 2022
0b3644e
Rollup merge of #98848 - flip1995:clippy-book, r=jyn514
GuillaumeGomez Jul 13, 2022
8a48557
Rollup merge of #99020 - fee1-dead-contrib:repr_transparent_non_exhau…
GuillaumeGomez Jul 13, 2022
876d599
Rollup merge of #99132 - jyn514:autolabel, r=Mark-Simulacrum
GuillaumeGomez Jul 13, 2022
41eb8dd
Rollup merge of #99148 - SOF3:clarify-xsize-bound, r=scottmcm
GuillaumeGomez Jul 13, 2022
3b30cce
Rollup merge of #99152 - GuillaumeGomez:css-theme-var, r=jsha
GuillaumeGomez Jul 13, 2022
75d03d6
Rollup merge of #99168 - TaKO8Ki:add-regression-test-for-74713, r=Dyl…
GuillaumeGomez Jul 13, 2022
660fcaa
Rollup merge of #99176 - lnicola:rust-analyzer-2022-07-12, r=lnicola
GuillaumeGomez Jul 13, 2022
3eb8198
Rollup merge of #99183 - jonas-schievink:proc_macro-mention-r-a, r=jy…
GuillaumeGomez Jul 13, 2022
f290811
Rollup merge of #99185 - krasimirgg:llvm-wrapper-inlineasm, r=nikic
GuillaumeGomez Jul 13, 2022
519c07b
Limit test to x86 targets for reproducability
oli-obk Jul 13, 2022
ca4e394
Auto merge of #99203 - GuillaumeGomez:rollup-b2re0dv, r=GuillaumeGomez
bors Jul 13, 2022
031b2c5
Always use CreateParameter mode for function definitions.
cjgillot Jun 19, 2022
c7ac816
Clippy fallout.
cjgillot Jun 4, 2022
3b1b38d
Bless ui-fulldeps tests.
cjgillot Jun 4, 2022
5a20834
Add feature gate.
cjgillot Jun 22, 2022
0083cd2
Rollup merge of #98574 - dingxiangfei2009:let-else-thir, r=oli-obk
Dylan-DPC Jul 13, 2022
1e7d04b
Rollup merge of #99011 - oli-obk:UnsoundCell, r=eddyb
Dylan-DPC Jul 13, 2022
980579a
Rollup merge of #99030 - rust-lang:notriddle/field-recovery, r=petroc…
Dylan-DPC Jul 13, 2022
68cfdbb
Rollup merge of #99155 - Amanieu:unstable-target-features, r=davidtwco
Dylan-DPC Jul 13, 2022
3933b2b
Rollup merge of #99199 - TaKO8Ki:remove-unnecessary-span-to-snippet, …
Dylan-DPC Jul 13, 2022
874a130
get rid of MemPlaceMeta::Poison
RalfJung Jul 4, 2022
42bd138
Auto merge of #98145 - ouz-a:some_branch, r=oli-obk
bors Jul 13, 2022
c6e7c05
use gathered body_owners in par_body_owners
kckeiks Jun 22, 2022
b599cf4
inline associated_body
kckeiks Jul 6, 2022
275497c
merge visitors in queries
kckeiks Jul 6, 2022
c80dde4
Auto merge of #99210 - Dylan-DPC:rollup-879cp1t, r=Dylan-DPC
bors Jul 13, 2022
f94484f
reduce scope of allow(rustc::potential_query_instability) in rustc_span
NiklasJonsson Jul 10, 2022
2d265b6
collect module item-likes in visit_items
kckeiks Jul 13, 2022
87588a2
Auto merge of #99136 - CAD97:layout-faster, r=scottmcm
bors Jul 13, 2022
1219f72
Emit warning when named arguments are used positionally in format
PrestonFrom Jun 25, 2022
848d23b
factor 'is this type allowed as union field on stable' into separate …
RalfJung Jun 11, 2022
ec7152c
allow unions with mutable references and tuples of allowed types
RalfJung Jun 11, 2022
6dfede3
also allow arrays of allowed types
RalfJung Jun 19, 2022
5bf6017
remove untagged_union feature gate
RalfJung Jun 30, 2022
e4593ef
assigning to a union field can never drop now
RalfJung Jun 30, 2022
07fe988
add array tests, cleanup, tidy, and bless
RalfJung Jun 30, 2022
3c9765c
Rename `debugging_opts` to `unstable_opts`
jyn514 Jul 6, 2022
82ab171
Use emit_inference_failure_err for ConstEvaluatable predicates
atsuzaki Jul 13, 2022
b33955a
Add checks & fallback branch
atsuzaki Jul 13, 2022
083bd7c
Remove predicate note
atsuzaki Jul 13, 2022
cbb07c2
Auto merge of #97995 - RalfJung:union-more-nodrop, r=Mark-Simulacrum
bors Jul 13, 2022
83c1788
Make outlives::{components,verify} agree
aliemjay May 25, 2022
570cf75
bless tests
aliemjay Jul 14, 2022
96d34dc
Update tests
atsuzaki Jul 14, 2022
111253c
Rename `std::io::Error::try_downcast_inner` to `downcast`
NobodyXu Jul 14, 2022
8a392a5
Auto merge of #98754 - jyn514:non-trivial-drop, r=compiler-errors
bors Jul 14, 2022
d431338
Stabilize `core::ffi:c_*` and rexport in `std::ffi`
joshtriplett Jun 20, 2022
8d06175
Update cargo
ehuss Jul 14, 2022
431c6f8
Auto merge of #99225 - ehuss:update-cargo, r=ehuss
bors Jul 14, 2022
0ed9c64
Auto merge of #98975 - jyn514:unstable_opts, r=wesleywiser
bors Jul 14, 2022
f5e9cb5
Rollup merge of #97720 - cjgillot:all-fresh, r=petrochenkov
Dylan-DPC Jul 14, 2022
103b860
Rollup merge of #98315 - joshtriplett:stabilize-core-ffi-c, r=Mark-Si…
Dylan-DPC Jul 14, 2022
e5a86d7
Rollup merge of #98705 - WaffleLapkin:closure_binder, r=cjgillot
Dylan-DPC Jul 14, 2022
85159a4
Rollup merge of #99126 - NiklasJonsson:84447/rustc_span, r=petrochenkov
Dylan-DPC Jul 14, 2022
c1b43ef
Rollup merge of #99139 - jyn514:dist-tool-help, r=Mark-Simulacrum
Dylan-DPC Jul 14, 2022
20fb8ab
Fix overlapping impls
JulianKnodt Jul 12, 2022
f4e7813
Fix spans for asm diagnostics
Amanieu Jul 12, 2022
f1a8854
Auto merge of #99231 - Dylan-DPC:rollup-0tl8c0o, r=Dylan-DPC
bors Jul 14, 2022
1e64a7b
solaris: unbreak build on native platform
psumbera Jul 14, 2022
eb1a0c5
Add vakaras to the set of people notified when MIR changes.
vakaras Jul 14, 2022
62d3b79
Remove unused CSS
GuillaumeGomez Jul 14, 2022
4580668
Removed unused HTML IDs
GuillaumeGomez Jul 14, 2022
24699bc
Auto merge of #95956 - yaahc:stable-in-unstable, r=cjgillot
bors Jul 14, 2022
2b17aa6
Rollup merge of #98072 - yaahc:generic-member-access, r=thomcc
Dylan-DPC Jul 14, 2022
8c5c983
Rollup merge of #98580 - PrestonFrom:issue_98466, r=estebank
Dylan-DPC Jul 14, 2022
ecae3d7
Rollup merge of #99000 - JulianKnodt:allow_resolve_no_substs, r=lcnr
Dylan-DPC Jul 14, 2022
d3a1aa0
Rollup merge of #99192 - Amanieu:fix-asm-srcloc, r=petrochenkov
Dylan-DPC Jul 14, 2022
39936fd
Rollup merge of #99222 - atsuzaki:generic_const_err, r=lcnr
Dylan-DPC Jul 14, 2022
f74358d
Rollup merge of #99236 - psumbera:Issue99208, r=Mark-Simulacrum
Dylan-DPC Jul 14, 2022
ed73037
Remove comment referring to constness.rs
danbev Jul 14, 2022
e24d13d
Update RLS
Xanewok Jul 14, 2022
e3ef4fd
rename MPlaceTy::dangling to fake_alloc_zst
RalfJung Jul 14, 2022
74621c7
Auto merge of #99242 - Dylan-DPC:rollup-34bqdh8, r=Dylan-DPC
bors Jul 14, 2022
b98fb49
Correctly handle crate level page on docs.rs as well
GuillaumeGomez Jul 13, 2022
97510f2
fix dwarf debuginfo being used in addition to CodeView on windows
lqd Jul 14, 2022
c2f428d
Auto merge of #99252 - lqd:win-dwarf5, r=eddyb
bors Jul 14, 2022
e6aedf6
Add Nintendo Switch tier 3 target
jam1garner Sep 15, 2021
60beb1a
Don't use host linker for switch
leo60228 Sep 15, 2021
f688a56
Remove unnecessary linker args
leo60228 Sep 15, 2021
4bc8549
Add linker script for switch
leo60228 Sep 15, 2021
bee373c
Don't build std for switch
leo60228 Sep 15, 2021
7f88049
Remove unneeded options from Nintendo Switch target
jam1garner Sep 15, 2021
c690db4
Remove obsolete crt0 references in linker script
leo60228 Sep 15, 2021
fd81b99
Add docs for Switch target
leo60228 Sep 17, 2021
d04753e
Add aarch64-nintendo-switch.md to SUMMARY.md
leo60228 Sep 17, 2021
62aafb0
Rename aarch64-nintendo-switch to aarch64-nintendo-switch-freestanding
leo60228 Sep 17, 2021
0d45977
Remove FIXME from MIR `always_storage_live_locals`
pierwill Jul 14, 2022
1ba1fec
Auto merge of #96544 - m-ysk:feature/issue-96358, r=cjgillot
bors Jul 14, 2022
62edbbe
Add regression test for #89436
Manishearth Jul 14, 2022
6c6cccd
interpret/validity: improve some comments
RalfJung Jul 14, 2022
ddb7003
Add support for APIT and RPIT callables in label_fn_like
compiler-errors Jul 10, 2022
d25abdc
Point out custom Fn-family trait impl
compiler-errors Jul 13, 2022
30243dd
Auto merge of #98203 - kckeiks:gather-body-owners-in-hir-item-queries…
bors Jul 15, 2022
d8aba10
Improve example of `downcast`
NobodyXu Jul 15, 2022
aad2334
Make item spans more consistent
compiler-errors Jul 8, 2022
57f7618
Remove some usages of guess_head_span from typeck
compiler-errors Jul 7, 2022
27b6ab9
Remove some more usages of guess_head_span
compiler-errors Jul 8, 2022
78efaf4
remove tcx from ObligationCauseCode::span
compiler-errors Jul 8, 2022
03bfbe1
Move item_span from check_item_type into each function
compiler-errors Jul 8, 2022
4b890f3
Remove some span_of_impl+unwrap
compiler-errors Jul 8, 2022
b90a0ed
Auto merge of #97406 - aliemjay:verify-bounds-fix-master, r=oli-obk
bors Jul 15, 2022
67a6c0a
Fix typo in mod.rs
eltociear Jul 15, 2022
99f3132
Rollup merge of #99113 - WaffleLapkin:arc_simplify, r=Mark-Simulacrum
Dylan-DPC Jul 15, 2022
7b63058
Rollup merge of #99131 - compiler-errors:label-fn, r=cjgillot
Dylan-DPC Jul 15, 2022
fe6062f
Rollup merge of #99237 - GuillaumeGomez:rustdoc-css-cleanup, r=notriddle
Dylan-DPC Jul 15, 2022
bc8abdb
Rollup merge of #99239 - vakaras:add-myself-to-mir-followers, r=tmiasko
Dylan-DPC Jul 15, 2022
6dae197
Rollup merge of #99241 - danbev:intrinsics-comment, r=fee1-dead
Dylan-DPC Jul 15, 2022
7976cd6
Rollup merge of #99257 - Manishearth:regression, r=jackh726
Dylan-DPC Jul 15, 2022
fcfb3e9
Remove some more usages of guess_head_span
compiler-errors Jul 15, 2022
45b88af
simplify `suggest_deref_ref_or_into`
TaKO8Ki Jul 15, 2022
522abf6
Auto merge of #99267 - Dylan-DPC:rollup-d8l7y1o, r=Dylan-DPC
bors Jul 15, 2022
fa3156e
add `#[must_use]` to `Box::from_raw`
rhysd Jul 15, 2022
6077b7c
Auto merge of #99013 - RalfJung:dont-poison-my-places, r=oli-obk
bors Jul 15, 2022
d6b7480
Stabilize `core::ffi::CStr`, `alloc::ffi::CString`, and friends
joshtriplett Jul 15, 2022
a6d3ee3
Rollup merge of #88991 - libstd-switch:aarch64-nintendo-switch, r=wes…
Dylan-DPC Jul 15, 2022
e0e6f1d
Rollup merge of #98869 - compiler-errors:stop_guessing_head_span, r=c…
Dylan-DPC Jul 15, 2022
24f0e14
Rollup merge of #99119 - TaKO8Ki:remove-string-matching-about-methods…
Dylan-DPC Jul 15, 2022
5c8c4db
Rollup merge of #99209 - GuillaumeGomez:crate-level-sidebar, r=jsha
Dylan-DPC Jul 15, 2022
8e3dd62
Rollup merge of #99246 - Xanewok:update-rls, r=jyn514
Dylan-DPC Jul 15, 2022
116819f
Auto merge of #99278 - Dylan-DPC:rollup-fcln6st, r=Dylan-DPC
bors Jul 15, 2022
0fe5390
Auto merge of #99046 - nnethercote:final-derive-output-improvements, …
bors Jul 15, 2022
7808f69
`QueryNormalizer` bug on ambiguity
lcnr Jul 7, 2022
2b730a3
remove `impl_implied_bounds` from `FnCtxt`
lcnr Jul 7, 2022
29d0390
remove unnecessary `select_obligations_where_possible`
lcnr Jul 7, 2022
4b56fd9
try to avoid `FnCtxt` during wf
lcnr Jul 7, 2022
b955fa7
don't require `FnCtxt` to check global asm
lcnr Jul 7, 2022
5bd8c96
provide `generic_param_scope` for region errors
lcnr Jul 8, 2022
16b2acc
hir typeck: `fulfillment_cx` ignore regions
lcnr Jul 8, 2022
06f4806
errors: impl `IntoDiagnosticArg` for `char`
davidtwco Jul 11, 2022
c3fdf74
errors: lint on `LintDiagnosticBuilder::build`
davidtwco Jul 11, 2022
88c11c5
macros: support `MultiSpan` in diag derives
davidtwco Jul 11, 2022
81cf229
macros: support adding warnings to diags
davidtwco Jul 11, 2022
78b19a9
passes: migrate half of `check_attr`
davidtwco Jul 11, 2022
84a444a
Introduce opaque type to hidden type projection
oli-obk Jun 22, 2022
c4cb043
interpret/visitor: support visiting with a PlaceTy
RalfJung Jul 15, 2022
a034446
Add some tracing instrumentation
oli-obk Jun 23, 2022
eeb1033
Pass one argument instead of fetching two fields of it at every call …
oli-obk Jun 23, 2022
7a8a048
Remove early return that would likely have caused miscompilations if …
oli-obk Jun 24, 2022
0c6918f
Reuse a helper method instead of manually rolling it
oli-obk Jun 27, 2022
12457f8
Some tracing helpers
oli-obk Jun 27, 2022
728c7e8
Allow destructuring opaque types, since the patterns constrain the op…
oli-obk Jun 27, 2022
6b33d5b
Make destructuring a defining use
oli-obk Jun 28, 2022
ea68ce7
Revert a hack that only ever worked on level deep
oli-obk Jun 28, 2022
92e470a
Move constructor into the branch that actually uses it
oli-obk Jun 28, 2022
57e9f7a
Infer wildcard type from other patterns at every pattern level
oli-obk Jun 28, 2022
ef8e322
Mark stabilized intrinsics with `rustc_allowed_through_unstable_modules`
Aaron1011 Jul 15, 2022
23e21bd
Auto merge of #99015 - lcnr:fn-ctxt-no-more, r=compiler-errors
bors Jul 15, 2022
1c8f87e
Revert "Highlight conflicting param-env candidates"
compiler-errors Jul 15, 2022
b71a09f
Fix ICE in named_arguments_used_positionally lint
compiler-errors Jul 15, 2022
2902b92
Only suggest if span is not erroneous
compiler-errors Jul 15, 2022
20b5aaf
Provide structured suggestion for dropped temp value
estebank Jul 15, 2022
635c381
Avoid incorrect suggestion
estebank Jul 15, 2022
3e5809d
Move tests to fit in limit
estebank Jul 15, 2022
3ee4e5f
Fix rebase
estebank Jul 15, 2022
8e8a3be
Apply suggestions from code review
yaahc Jul 15, 2022
2085d6a
Set minimum GDB version needed for basic-types-globals* tests.
luqmana Jul 15, 2022
8c1cc82
Auto merge of #99288 - Aaron1011:stable-intrinsics, r=yaahc
bors Jul 15, 2022
a9d2ed2
add tracking issue to generic member access APIs
yaahc Jul 15, 2022
e6c43cf
Auto merge of #95685 - oxidecomputer:restore-static-dwarf, r=pnkfelix
bors Jul 16, 2022
084ad59
Stabilize `future_poll_fn`
JohnTitor Jul 16, 2022
e5bb7d8
Propagate Expectation around binop typeck code to construct more prec…
willcrichton Apr 26, 2022
2f15dfa
Fix suggestion regression with incorrect syntactic combination of tra…
willcrichton Jul 16, 2022
6465980
Add regression test for #64401
JohnTitor Jul 16, 2022
bf9ed99
Rollup merge of #98387 - NobodyXu:feature/std_io_Error_try_downgrade_…
JohnTitor Jul 16, 2022
06eb90e
Rollup merge of #98662 - LucasDumont:document_fs_write, r=thomcc
JohnTitor Jul 16, 2022
b538d5a
Rollup merge of #99253 - pierwill:pierwill/rm-storage-fixme, r=oli-obk
JohnTitor Jul 16, 2022
8a64529
Rollup merge of #99264 - eltociear:patch-14, r=compiler-errors
JohnTitor Jul 16, 2022
96474a7
Rollup merge of #99270 - rhysd:issue-99269, r=Mark-Simulacrum
JohnTitor Jul 16, 2022
083a253
Rollup merge of #99277 - joshtriplett:stabilize-core-cstr-alloc-cstri…
JohnTitor Jul 16, 2022
202c11b
Rollup merge of #99307 - JohnTitor:issue-64401, r=compiler-errors
JohnTitor Jul 16, 2022
aeb9497
Borrow Vec<T, A> as [T]
yanchith Jul 16, 2022
653a214
docs: add missing word
tshepang Jul 16, 2022
d695a49
Auto merge of #96482 - willcrichton:fix-trait-suggestion-for-binops, …
bors Jul 16, 2022
1a15c71
Fix rustdoc JSON inline
GuillaumeGomez Jul 15, 2022
3c55a26
Correctly handle usage of private items in public API for JSON output…
GuillaumeGomez Jul 15, 2022
b95b138
Add tests for JSON non-inlining
GuillaumeGomez Jul 15, 2022
b393e97
Fix flakyness of GUI tests
GuillaumeGomez Jul 16, 2022
5635158
Auto merge of #99263 - compiler-errors:issue-99261, r=jyn514
bors Jul 16, 2022
7210e46
Auto merge of #99315 - JohnTitor:rollup-77wzoc1, r=JohnTitor
bors Jul 16, 2022
c54d4ad
avoid some `Symbol` to `String` conversions
TaKO8Ki Jul 16, 2022
6f8fb91
Rollup merge of #98582 - oli-obk:unconstrained_opaque_type, r=estebank
matthiaskrgr Jul 16, 2022
79857a7
Rollup merge of #99213 - davidtwco:translation-migrate-passes, r=comp…
matthiaskrgr Jul 16, 2022
984ef42
Rollup merge of #99258 - estebank:suggest-let, r=wesleywiser
matthiaskrgr Jul 16, 2022
fa298be
Rollup merge of #99259 - RalfJung:visit-a-place, r=oli-obk
matthiaskrgr Jul 16, 2022
02b9701
Rollup merge of #99287 - GuillaumeGomez:rustdoc-json-double-export, r…
matthiaskrgr Jul 16, 2022
69e4f21
Rollup merge of #99290 - compiler-errors:revert-98794, r=lcnr
matthiaskrgr Jul 16, 2022
4805c21
Rollup merge of #99316 - tshepang:clearer, r=compiler-errors
matthiaskrgr Jul 16, 2022
ddc32d1
Rollup merge of #99317 - yanchith:borrow-vec-ta-as-slice-t, r=Mark-Si…
matthiaskrgr Jul 16, 2022
0c6e01b
Rollup merge of #99323 - GuillaumeGomez:fix-gui-flaky, r=Dylan-DPC
matthiaskrgr Jul 16, 2022
6277ac2
Rollup merge of #99342 - TaKO8Ki:avoid-symbol-to-string-conversions, …
matthiaskrgr Jul 16, 2022
d5e7f47
Auto merge of #99346 - matthiaskrgr:rollup-p4dl1qt, r=matthiaskrgr
bors Jul 16, 2022
3855e86
Update `since` version to 1.64
joshtriplett Jul 16, 2022
629b0b4
Expand documentation for `process_group`
joshtriplett Jul 16, 2022
62a182c
Add a special case for align_offset /w stride != 1
nagisa Jul 3, 2022
3266460
Stabilize `let_chains`
c410-f3r Jul 12, 2022
db41351
Auto merge of #98866 - nagisa:nagisa/align-offset-wroom, r=Mark-Simul…
bors Jul 16, 2022
a94e6c7
Add regression test for #95829
JohnTitor Jul 16, 2022
353d018
Rollup merge of #94927 - c410-f3r:stabilize-let-chains, r=joshtriplett
JohnTitor Jul 17, 2022
48cf43b
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
JohnTitor Jul 17, 2022
0748638
Rollup merge of #99036 - TaKO8Ki:fix-test-for-88138, r=compiler-errors
JohnTitor Jul 17, 2022
f49d267
Rollup merge of #99088 - niklasf:stabilize-process_set_process_group,…
JohnTitor Jul 17, 2022
28cce68
Rollup merge of #99302 - yaahc:gma-tracking-issue, r=joshtriplett
JohnTitor Jul 17, 2022
5052769
Rollup merge of #99306 - JohnTitor:stabilize-future-poll-fn, r=joshtr…
JohnTitor Jul 17, 2022
1d19323
Rollup merge of #99354 - JohnTitor:issue-95829, r=compiler-errors
JohnTitor Jul 17, 2022
1cd72b7
Auto merge of #99362 - JohnTitor:rollup-4d5zo9d, r=JohnTitor
bors Jul 17, 2022
00fd613
Upgrade hashbrown to 0.12.3
Amanieu Jul 17, 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
Prev Previous commit
Next Next commit
add more tests
  • Loading branch information
fee1-dead committed Jul 12, 2022
commit e65214785d85a4e2c76141e14eb38a55f1fd21d1
8 changes: 8 additions & 0 deletions src/test/ui/repr/auxiliary/repr-transparent-non-exhaustive.rs
Original file line number Diff line number Diff line change
@@ -5,6 +5,14 @@ pub struct Private { _priv: () }
#[non_exhaustive]
pub struct NonExhaustive {}

#[non_exhaustive]
pub enum NonExhaustiveEnum {}

pub enum NonExhaustiveVariant {
#[non_exhaustive]
A,
}

pub struct ExternalIndirection<T> {
pub x: T,
}
46 changes: 41 additions & 5 deletions src/test/ui/repr/repr-transparent-non-exhaustive.rs
Original file line number Diff line number Diff line change
@@ -3,7 +3,13 @@
// aux-build: repr-transparent-non-exhaustive.rs
extern crate repr_transparent_non_exhaustive;

use repr_transparent_non_exhaustive::{Private, NonExhaustive, ExternalIndirection};
use repr_transparent_non_exhaustive::{
Private,
NonExhaustive,
NonExhaustiveEnum,
NonExhaustiveVariant,
ExternalIndirection,
};

pub struct InternalPrivate {
_priv: (),
@@ -38,22 +44,52 @@ pub struct T6(Sized, NonExhaustive);
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T7(Sized, InternalIndirection<Private>);
pub struct T7(Sized, NonExhaustiveEnum);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T8(Sized, InternalIndirection<NonExhaustive>);
pub struct T8(Sized, NonExhaustiveVariant);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T9(Sized, ExternalIndirection<Private>);
pub struct T9(Sized, InternalIndirection<Private>);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T10(Sized, ExternalIndirection<NonExhaustive>);
pub struct T10(Sized, InternalIndirection<NonExhaustive>);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T11(Sized, InternalIndirection<NonExhaustiveEnum>);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T12(Sized, InternalIndirection<NonExhaustiveVariant>);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T13(Sized, ExternalIndirection<Private>);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T14(Sized, ExternalIndirection<NonExhaustive>);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T15(Sized, ExternalIndirection<NonExhaustiveEnum>);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

#[repr(transparent)]
pub struct T16(Sized, ExternalIndirection<NonExhaustiveVariant>);
//~^ ERROR zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
//~| WARN this was previously accepted by the compiler

86 changes: 73 additions & 13 deletions src/test/ui/repr/repr-transparent-non-exhaustive.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:31:22
--> $DIR/repr-transparent-non-exhaustive.rs:37:22
|
LL | pub struct T5(Sized, Private);
| ^^^^^^^
@@ -14,7 +14,7 @@ LL | #![deny(repr_transparent_external_private_fields)]
= note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:36:22
--> $DIR/repr-transparent-non-exhaustive.rs:42:22
|
LL | pub struct T6(Sized, NonExhaustive);
| ^^^^^^^^^^^^^
@@ -24,44 +24,104 @@ LL | pub struct T6(Sized, NonExhaustive);
= note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:41:22
--> $DIR/repr-transparent-non-exhaustive.rs:47:22
|
LL | pub struct T7(Sized, InternalIndirection<Private>);
LL | pub struct T7(Sized, NonExhaustiveEnum);
| ^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:52:22
|
LL | pub struct T8(Sized, NonExhaustiveVariant);
| ^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:57:22
|
LL | pub struct T9(Sized, InternalIndirection<Private>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:46:22
--> $DIR/repr-transparent-non-exhaustive.rs:62:23
|
LL | pub struct T8(Sized, InternalIndirection<NonExhaustive>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL | pub struct T10(Sized, InternalIndirection<NonExhaustive>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:51:22
--> $DIR/repr-transparent-non-exhaustive.rs:67:23
|
LL | pub struct T9(Sized, ExternalIndirection<Private>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL | pub struct T11(Sized, InternalIndirection<NonExhaustiveEnum>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:72:23
|
LL | pub struct T12(Sized, InternalIndirection<NonExhaustiveVariant>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:77:23
|
LL | pub struct T13(Sized, ExternalIndirection<Private>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:56:23
--> $DIR/repr-transparent-non-exhaustive.rs:82:23
|
LL | pub struct T10(Sized, ExternalIndirection<NonExhaustive>);
LL | pub struct T14(Sized, ExternalIndirection<NonExhaustive>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: aborting due to 6 previous errors
error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:87:23
|
LL | pub struct T15(Sized, ExternalIndirection<NonExhaustiveEnum>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: zero-sized fields in repr(transparent) cannot contain external non-exhaustive types
--> $DIR/repr-transparent-non-exhaustive.rs:92:23
|
LL | pub struct T16(Sized, ExternalIndirection<NonExhaustiveVariant>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future.

error: aborting due to 12 previous errors