Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
266ede1
Isolate compiler queries inside the Queries type.
cjgillot Nov 24, 2019
5098ba6
Move linking ouside the interface queries.
cjgillot Nov 24, 2019
27513a2
Tidy.
cjgillot Nov 24, 2019
becfe5c
Fix test.
cjgillot Nov 24, 2019
cd5d0c7
Rename continue_panic_fmt to panic_handler, and make it the #[panic_h…
RalfJung Nov 25, 2019
08f779c
better comment and rename BoxMeUp::box_me_up to take_box
RalfJung Nov 25, 2019
18bb912
Remove wrong comment.
cjgillot Nov 25, 2019
ea1b803
Pass Queries by reference.
cjgillot Nov 25, 2019
7d01b6c
Simplify early exits.
cjgillot Nov 25, 2019
8ffc944
Don't move stuff out of Compiler::enter.
cjgillot Nov 25, 2019
9d5f721
Superfluous lifetime.
cjgillot Nov 25, 2019
3c48579
more panicking comments
RalfJung Nov 25, 2019
3a8e1b6
panic_handler -> begin_panic_handler (and more comments)
RalfJung Nov 26, 2019
3e96ca2
abort on BoxMeUp misuse
RalfJung Nov 26, 2019
61486f4
expand comment
RalfJung Nov 26, 2019
4a19ef9
explain why __rust_start_panic does not take a Box
RalfJung Nov 26, 2019
babe9fc
rename update_count_then_panic -> rust_panic_without_hook
RalfJung Nov 26, 2019
68b1ac9
Reduce righward drift.
cjgillot Nov 26, 2019
144d1c2
Review nits.
cjgillot Nov 26, 2019
58a9c73
Make the HIR map own the Definitions.
cjgillot Nov 26, 2019
b99513b
Have Queries own the GlobalCtxt.
cjgillot Nov 26, 2019
7b71e9a
Formatting.
cjgillot Nov 26, 2019
7e72b36
Move local Arena to Queries.
cjgillot Nov 26, 2019
1f850f6
Record temporary static references in generator witnesses
matthewjasper Nov 26, 2019
79e2324
Rename lifetimes.
cjgillot Nov 27, 2019
e5ed101
Rename BoxedGlobalCtxt.
cjgillot Nov 27, 2019
77a4c85
Simplify handling of AllArenas.
cjgillot Nov 27, 2019
e321ba9
Misc renames.
cjgillot Nov 27, 2019
1e12f39
Allocate HIR Forest on arena.
cjgillot Nov 27, 2019
38f9cd4
Clean up E0080 long explanation
GuillaumeGomez Nov 27, 2019
ce69610
Clean up E0081 long explanation
GuillaumeGomez Nov 27, 2019
7edaeba
Clean up E0091 long explanation
GuillaumeGomez Nov 27, 2019
d411dd2
Elaborate on std::ptr::{as_ref,as_mod} and clarify docs
CreepySkeleton Nov 13, 2019
f11dd32
Use intra-doc links
CreepySkeleton Nov 27, 2019
59d7391
Draw vertical lines in compiler error messages with multiline annotat…
TheSamsa Nov 20, 2019
df625bd
Add async fn test for #66695
matthewjasper Nov 27, 2019
9b78191
Clarifies how to tag users for assigning PRs
Nov 27, 2019
2a7dc5e
Update CONTRIBUTING.md
Dylan-DPC Nov 28, 2019
77f2ac4
Update CONTRIBUTING.md
Dylan-DPC Nov 28, 2019
85a468b
Clarify `{f32,f64}::EPSILON` docs
ohadravid Nov 28, 2019
3048d7e
do not consider memory allocated by caller_location leaked
RalfJung Nov 28, 2019
f07bd06
allow customising ty::TraitRef's printing behavior
basil-cow Nov 21, 2019
26e5fd4
Minor documentation fix
Mikotochan Nov 29, 2019
764ef8c
Rollup merge of #66379 - CreepySkeleton:patch-1, r=RalfJung
RalfJung Nov 29, 2019
7b75a36
Rollup merge of #66589 - TheSamsa:master, r=Dylan-DPC
RalfJung Nov 29, 2019
64efc45
Rollup merge of #66613 - Areredify:trait-ref-print, r=eddyb
RalfJung Nov 29, 2019
56203be
Rollup merge of #66766 - RalfJung:panic-comments, r=SimonSapin
RalfJung Nov 29, 2019
6ea1df2
Rollup merge of #66791 - cjgillot:arena, r=Mark-Simulacrum
RalfJung Nov 29, 2019
37c1f52
Rollup merge of #66793 - matthewjasper:record-static-refs, r=cramertj
RalfJung Nov 29, 2019
0f6e636
Rollup merge of #66808 - GuillaumeGomez:cleanup-err-code-3, r=Dylan-DPC
RalfJung Nov 29, 2019
5c90811
Rollup merge of #66826 - mlodato517:mlodato517-clarify-pr-message-ass…
RalfJung Nov 29, 2019
3959378
Rollup merge of #66837 - ohadravid:epsilon-doc, r=dtolnay
RalfJung Nov 29, 2019
0f6745d
Rollup merge of #66844 - RalfJung:caller-location-leak, r=oli-obk
RalfJung Nov 29, 2019
0b1b36c
Rollup merge of #66872 - Mikotochan:patch-1, r=jonas-schievink
RalfJung Nov 29, 2019
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
expand comment
  • Loading branch information
RalfJung committed Nov 26, 2019
commit 61486f4de3b5e04f401a4da2edae2fc4c9f02bc7
7 changes: 4 additions & 3 deletions src/libstd/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,12 @@ fn rust_panic_with_hook(payload: &mut dyn BoxMeUp,
let mut info = PanicInfo::internal_constructor(message, &location);
HOOK_LOCK.read();
match HOOK {
// Some platforms know that printing to stderr won't ever actually
// Some platforms (like wasm) know that printing to stderr won't ever actually
// print anything, and if that's the case we can skip the default
// hook. Since string formatting happens lazily when calling `payload`
// methods, this means that with libpanic_abort, we don't format
// the string at all!
// methods, this means we avoid formatting the string at all!
// (The panic runtime might still call `payload.take_box()` though and trigger
// formatting.)
Hook::Default if panic_output().is_none() => {}
Hook::Default => {
info.set_payload(payload.get());
Expand Down