hyd-dev
50be5aebbf
Update Miri
2021-09-10 22:17:57 +08:00
Amanieu d'Antras
8c7a05a23f
Treat drop_in_place as nounwind with -Z panic-in-drop=abort
...
The AbortUnwindCalls MIR pass will eliminate any unnecessary cleanups
and will prevent any unwinds from leaking out by forcing an abort.
2021-09-10 14:18:15 +01:00
bors
7bf0736e13
Auto merge of #88797 - m-ou-se:uhhhh, r=pietroalbini
...
Work around CI issue with windows sdk 10.0.20348.0.
See https://github.com/rust-lang/rust/issues/88796#issuecomment-916844522
2021-09-10 12:26:55 +00:00
Mara Bos
8059bc1069
Temporarily ignore some debuginfo tests on windows.
2021-09-10 14:08:19 +02:00
Mara Bos
4ab3c117d0
Work around CI issue with windows sdk 10.0.20348.0.
2021-09-10 13:46:15 +02:00
Guillaume Gomez
eda4cfb132
Add test for enum tuple variants and tuple struct doc count
2021-09-10 10:49:42 +02:00
Guillaume Gomez
64344cce14
Don't require documentation for fields in an enum tuple variant or for tuple struct fields.
2021-09-10 10:49:42 +02:00
Gerd Zellweger
5d4d3bdc74
Fix typo option
-> options
.
2021-09-10 00:36:35 -07:00
jackh726
47035e4d08
Use FxHashMap
2021-09-09 23:28:20 -04:00
Jesse Ruderman
81ff53fd3e
Fix typo in docs for iterators
2021-09-09 19:21:56 -07:00
Noah Lev
44e6f2e90f
Remove unnecessary Cache.*_did
fields
...
They can be obtained by accessing the `TyCtxt` where they are needed.
2021-09-09 19:17:38 -07:00
jackh726
0a3c6bb887
In relate_tys, when creating new universes, insert missing universes as other
2021-09-09 18:04:59 -04:00
Fabian Wolff
57fcb2e2d6
Fix two uses of span_note
when the source is not available
2021-09-09 21:17:05 +02:00
Amanieu d'Antras
c1bcf5c548
Add -Z panic-in-drop={unwind,abort} command-line option
2021-09-09 18:57:03 +01:00
Fabian Wolff
79adda930f
Ignore automatically derived impls of Clone
and Debug
in dead code analysis
2021-09-09 19:49:07 +02:00
Sasha Pourcelot
b21425de3c
Emit proper errors on missing closure braces
...
This commit focuses on emitting clean errors for the following syntax
error:
```
Some(42).map(|a|
dbg!(a);
a
);
```
Previous implementation tried to recover after parsing the closure body
(the `dbg` expression) by replacing the next `;` with a `,`, which made
the next expression belong to the next function argument. As such, the
following errors were emitted (among others):
- the semicolon token was not expected,
- a is not in scope,
- Option::map is supposed to take one argument, not two.
This commit allows us to gracefully handle this situation by adding
giving the parser the ability to remember when it has just parsed a
closure body inside a function call. When this happens, we can treat the
unexpected `;` specifically and try to parse as much statements as
possible in order to eat the whole block. When we can't parse statements
anymore, we generate a clean error indicating that the braces are
missing, and return an ExprKind::Err.
2021-09-09 17:44:40 +02:00
jackh726
8e7613f9e0
Only add_implied_bounds for norm_ty if different
2021-09-09 11:26:16 -04:00
jackh726
c49b0762c0
Use FxHashSet instead of Vec for well formed tys
2021-09-09 11:25:44 -04:00
Ellen
8295e4a6cf
add test for builtin types N + N unifying with fn call
2021-09-09 15:44:04 +01:00
Esteban Kuber
dc02b51382
Use more accurate spans for "unused delimiter" lint
2021-09-09 14:24:33 +00:00
Felix S. Klock II
35370a7ba3
regression test for issue #88583 .
2021-09-09 09:31:56 -04:00
Felix S. Klock II
f26f1ed9a7
Re-add 71a7f8f188
post-revert.
2021-09-09 09:14:17 -04:00
Felix S. Klock II
91feb76d13
Revert "Implement Anonymous{Struct, Union} in the AST"
...
This reverts commit 059b68dd67
.
Note that this was manually adjusted to retain some of the refactoring
introduced by commit 059b68dd67
, so that it could
likewise retain the correction introduced in commit
5b4bc05fa5
2021-09-09 09:14:17 -04:00
Felix S. Klock II
b6aa7e3105
Manually crafted revert of d4ad050ce5
.
2021-09-09 09:14:17 -04:00
Felix S. Klock II
f38ec9ca34
Revert "Add test for restriction of anonymous types on validation"
...
This reverts commit 8a1dd6918b
.
2021-09-09 09:14:16 -04:00
Felix S. Klock II
5560f6d90a
Revert "Fix ast expanded printing for anonymous types"
...
This reverts commit 5b4bc05fa5
.
2021-09-09 09:14:16 -04:00
Felix S. Klock II
2041fb1a2d
Revert "Add test for pretty printing anonymous types"
...
This reverts commit d59b1f1ef4
.
2021-09-09 09:14:16 -04:00
Felix S. Klock II
2691a39976
Revert "Allow formatting Anonymous{Struct, Union}
declarations"
...
This reverts commit 64acb7d921
.
2021-09-09 09:14:16 -04:00
Stefan Schindler
0bf16af5f3
Workaround blink/chromium grid layout limitation of 1000 rows
...
See https://github.com/rust-lang/rust/issues/88545 for more details
2021-09-09 15:11:02 +02:00
Samuel E. Moelius III
bd4b17a532
Update lockfile
2021-09-09 07:47:22 -04:00
Samuel E. Moelius III
a628223d45
Update dependencies
2021-09-09 07:47:16 -04:00
Hans Niklas Jacob
c86c63436a
Allow missing code examples in trait impls.
2021-09-09 13:13:48 +02:00
bors
497ee321af
Auto merge of #88676 - devnexen:fbsd_toolchain_upd, r=Mark-Simulacrum
...
update of the CI freebsd toolchain
adding libproctsta, for the upcoming libc update.
2021-09-09 09:21:30 +00:00
Samuel E. Moelius III
83875eaff9
Prep for upgrade to cargo_metadata 0.14.0
2021-09-09 04:59:06 -04:00
Andreas Liljeqvist
bc95994c32
bugfix
2021-09-09 10:41:20 +02:00
Andreas Liljeqvist
a2ee1420b8
Wrap
2021-09-09 10:41:20 +02:00
Andreas Liljeqvist
9095cf9905
rename is_valid_for
to is_valid
2021-09-09 10:41:19 +02:00
Andreas Liljeqvist
dd34e0c966
Rename (un)signed
to (un)signed_int
2021-09-09 10:41:19 +02:00
Andreas Liljeqvist
9129f4306f
Move unsigned_max
etc into Size
again
2021-09-09 10:41:19 +02:00
Andreas Liljeqvist
459c9108e4
Remove clone
2021-09-09 10:41:19 +02:00
Andreas Liljeqvist
5b2f757dae
Make abi::Abi
Copy
and remove a *lot* of refs
...
fix
fix
Remove more refs and clones
fix
more
fix
2021-09-09 10:41:19 +02:00
Andreas Liljeqvist
86ff6aeb82
Fix docstring
2021-09-09 10:41:18 +02:00
Andreas Liljeqvist
da92cd6dcf
Use special Debug
format when start
> end
2021-09-09 10:41:18 +02:00
Andreas Liljeqvist
f5d8749f85
Remove contains_zero
, respect the compiler
2021-09-09 10:41:18 +02:00
Andreas Liljeqvist
021c3346ed
derive Copy for WrappingRange and Scalar
2021-09-09 10:41:18 +02:00
Andreas Liljeqvist
4c46296f22
fix match
2021-09-09 10:41:18 +02:00
Andreas Liljeqvist
05cd48b008
Add methods for checking for full ranges to Scalar
and WrappingRange
...
Move *_max methods back to util
change to inline instead of inline(always)
Remove valid_range_exclusive from scalar
Use WrappingRange instead
implement always_valid_for in a safer way
Fix accidental edit
2021-09-09 10:41:17 +02:00
bors
02a57fa132
Auto merge of #88748 - bjorn3:try_fix_perf_regression, r=wesleywiser
...
Revert "Remove optimization_fuel_crate from Session"
This reverts commit 5464b2e713
.
This hopefully fixes the perf regression in https://github.com/rust-lang/rust/pull/88530#issuecomment-915314117 .
2021-09-09 06:16:04 +00:00
Deadbeef
f749e05f6b
Allow ~const bounds on inherent impls
2021-09-09 05:21:33 +00:00
Deadbeef
146abdd119
Add another test case + fmt
2021-09-09 05:21:33 +00:00