Skip to content

Rollup of 10 pull requests #81271

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

Merged
merged 36 commits into from
Jan 22, 2021
Merged
Changes from 3 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
230d5b1
Stabilize std::panic::panic_any.
m-ou-se Jan 19, 2021
8cac04e
Make 'static bound on panic_any explicit.
m-ou-se Jan 19, 2021
6b66749
Use slice::split_first instead of manuall slicing
tesuji Jan 20, 2021
116b66a
Dont prefix 0x when `dbg!(ipv6)`
tesuji Jan 20, 2021
76511a7
Make 'docs' optional
CraftSpider Jan 20, 2021
450c5ea
Move StructType to clean, remove it from Unions, make JSON output whe…
CraftSpider Jan 20, 2021
3349b40
Remove StructType entirely and replace it with CtorKind
CraftSpider Jan 20, 2021
811fa59
Add explanation of None vs Some("")
CraftSpider Jan 20, 2021
d0c1405
Document why cannot use concat! in dbg!
tesuji Jan 21, 2021
758d855
Enforce statically that `MIN_NON_ZERO_CAP` is calculated at compile time
jyn514 Jan 21, 2021
8f28a32
Turn alloc's force_expr macro into a regular macro_rules!{}.
m-ou-se Jan 21, 2021
1934eaf
Rename alloc::force_expr to __rust_force_expr.
m-ou-se Jan 21, 2021
653bcc8
Expand docs on Iterator::intersperse
lukaslueg Jan 18, 2021
c61785e
Fix typo
lukaslueg Jan 21, 2021
26565f0
Bump format version
CraftSpider Jan 22, 2021
a194881
Fix rustc::internal lints on rustdoc
jyn514 Jan 1, 2021
0797ffe
Deny internal lints for rustdoc
jyn514 Jan 22, 2021
707ce2b
Account for labels when suggesting `loop` instead of `while true`
estebank Jan 19, 2021
a701ff9
Suggest `'a` when given `a` only when appropriate
estebank Jan 20, 2021
060dba6
Add loop head span to hir
estebank Jan 21, 2021
8a13abb
Tweak error for invalid `break expr`
estebank Jan 21, 2021
c065234
Add more misspelled label tests
estebank Jan 21, 2021
74ddaf0
Avoid emitting redundant "unused label" lint
estebank Jan 21, 2021
8c5dafd
Parse loop labels missing a leading `'`
estebank Jan 21, 2021
7698807
Fix clippy and comment
estebank Jan 22, 2021
9e82329
Do not suggest using a break label when one is already present
estebank Jan 22, 2021
98c0364
Rollup merge of #80573 - jyn514:tool-lints, r=GuillaumeGomez
m-ou-se Jan 22, 2021
226fe55
Rollup merge of #81173 - lukaslueg:intersperse_docs, r=m-ou-se
m-ou-se Jan 22, 2021
b59f6e0
Rollup merge of #81194 - m-ou-se:stabilize-panic-any, r=m-ou-se
m-ou-se Jan 22, 2021
950ed27
Rollup merge of #81202 - lzutao:dbg_ipv6, r=Amanieu
m-ou-se Jan 22, 2021
1cc13b4
Rollup merge of #81225 - CraftSpider:json-opt-docs, r=jyn514
m-ou-se Jan 22, 2021
2ceee72
Rollup merge of #81227 - CraftSpider:struct-type-clean, r=jyn514
m-ou-se Jan 22, 2021
81a60b7
Rollup merge of #81233 - lzutao:dbg, r=KodrAus
m-ou-se Jan 22, 2021
3682a06
Rollup merge of #81236 - estebank:everybody-loop-now, r=oli-obk
m-ou-se Jan 22, 2021
70597f2
Rollup merge of #81241 - m-ou-se:force-expr-macro-rules, r=oli-obk
m-ou-se Jan 22, 2021
9c2a577
Rollup merge of #81242 - jyn514:const-cap, r=sfackler
m-ou-se Jan 22, 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
4 changes: 2 additions & 2 deletions library/std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ pub use core::panic::{Location, PanicInfo};
/// accessed later using [`PanicInfo::payload`].
///
/// See the [`panic!`] macro for more information about panicking.
#[unstable(feature = "panic_any", issue = "78500")]
#[stable(feature = "panic_any", since = "1.51.0")]
#[inline]
pub fn panic_any<M: Any + Send>(msg: M) -> ! {
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
crate::panicking::begin_panic(msg);
}

Expand Down