Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
da700cb
Stabilize move_ref_pattern
Amjad50 Aug 30, 2020
afb9eeb
Disabled error `E0007` from rustc_error_codes
Amjad50 Aug 30, 2020
d9207d8
Add std::thread::hardware_threads
yoshuawuyts Jul 18, 2020
f84f01c
Use futex-based thread-parker for Wasm32.
m-ou-se Oct 6, 2020
54a71e8
For backtrace, use StaticMutex instead of a raw sys Mutex.
m-ou-se Oct 7, 2020
e6d61ad
Use slice_as_mut_ptr instead of first_ptr_mut.
m-ou-se Oct 7, 2020
0f26578
Get rid of UnsafeCell<MaybeUninit>s in cloudabi mutex.
m-ou-se Oct 7, 2020
41066be
Get rid of UnsafeCell in cloudabi rwlock.
m-ou-se Oct 7, 2020
060e8cb
Get rid of raw pointers and UnsafeCell in cloudabi condvar.
m-ou-se Oct 7, 2020
b3be11e
Formatting.
m-ou-se Oct 7, 2020
6f0544a
Simplify doc-cfg rendering based on the current context
Nemo157 Oct 6, 2020
17eb8d8
ICEs should print the top of the query stack
hosseind75 Sep 19, 2020
20ea929
run full query stack print just when RUST_BACKTRACE is set
hosseind75 Sep 19, 2020
7ccca35
fix invalid-punct-ident-1 test
hosseind75 Sep 19, 2020
d6d4388
add filter regexes to load-panic-backtraces test
hosseind75 Sep 20, 2020
d60b7e2
fix show we're just showing... message instead of the end of query st…
hosseind75 Sep 23, 2020
6e7e4ac
fix clippy custom_ice_message test
hosseind75 Sep 25, 2020
15663a4
add new line
hosseind75 Sep 28, 2020
2124e9b
rebase with master
hosseind75 Sep 29, 2020
2b91b7f
ICEs should print the top of the query stack
hosseind75 Sep 19, 2020
01f838a
run full query stack print just when RUST_BACKTRACE is set
hosseind75 Sep 19, 2020
2bfdd64
change approach and run ui tests
hosseind75 Sep 19, 2020
b6e9f08
show a message when we are showing limited slice of query stack
hosseind75 Sep 19, 2020
3c56ba5
fix invalid-punct-ident-1 test
hosseind75 Sep 19, 2020
d1e3059
add filter regexes to load-panic-backtraces test
hosseind75 Sep 20, 2020
6c0f06a
fix show we're just showing... message instead of the end of query st…
hosseind75 Sep 23, 2020
c61d95b
remove new line
hosseind75 Sep 29, 2020
998186e
revert deleted new line
hosseind75 Oct 3, 2020
42ebae3
delete const-pat-ice test stderr
Oct 6, 2020
73d8f00
change condition for end of query stack message
Oct 8, 2020
7280f6a
rustc_parse: correct span on cast expr with attrs
calebcartwright Oct 10, 2020
4e82da4
rustc_parse: correct span on range expr with attrs
calebcartwright Oct 12, 2020
f4034eb
BTreeMap: test invariants more thoroughly and more readably
ssomers Oct 5, 2020
4e263fe
Add test-examples for Cfg::simplify_with
Nemo157 Oct 13, 2020
4409cb2
Make portability log at debug level
Nemo157 Oct 13, 2020
5875657
Fix comment about non-reentrant StaticMutex::lock().
m-ou-se Oct 7, 2020
44a2af3
Remove lifetime from StaticMutex and assume 'static.
m-ou-se Oct 7, 2020
46cc889
fix stderr file of clippy/custom_ice_message test
Oct 14, 2020
9752787
mangling: non-monomorphic `#[rustc_symbol_name]`
davidtwco Aug 18, 2020
fbdfe2c
mangling: encode all impl parameters
davidtwco Aug 24, 2020
1c03f6d
Fix intra doc link for needs_drop
Manishearth Oct 15, 2020
29f876c
Rollup merge of #74480 - yoshuawuyts:hardware_threads, r=dtolnay
JohnTitor Oct 15, 2020
95e810b
Rollup merge of #75675 - davidtwco:symbol-mangling-impl-params, r=eddyb
JohnTitor Oct 15, 2020
c8ca030
Rollup merge of #76119 - Amjad50:stabilizing-move_ref_pattern, r=niko…
JohnTitor Oct 15, 2020
122f5c1
Rollup merge of #77493 - hosseind88:ICEs_should_always_print_the_top_…
JohnTitor Oct 15, 2020
db8b2cd
Rollup merge of #77612 - ssomers:btree_cleanup_2, r=Mark-Simulacrum
JohnTitor Oct 15, 2020
1fc8249
Rollup merge of #77619 - fusion-engineering-forks:wasm-parker, r=dtolnay
JohnTitor Oct 15, 2020
4857c6b
Rollup merge of #77646 - fusion-engineering-forks:use-static-mutex, r…
JohnTitor Oct 15, 2020
5e8f5cb
Rollup merge of #77648 - fusion-engineering-forks:static-mutex, r=dto…
JohnTitor Oct 15, 2020
72dbc60
Rollup merge of #77657 - fusion-engineering-forks:cleanup-cloudabi-sy…
JohnTitor Oct 15, 2020
3cef494
Rollup merge of #77672 - Nemo157:simplify-cfg, r=jyn514
JohnTitor Oct 15, 2020
659c85c
Rollup merge of #77780 - calebcartwright:cast-expr-attr-span, r=oli-obk
JohnTitor Oct 15, 2020
ff490d3
Rollup merge of #77980 - Manishearth:needs-drop-intra, r=jyn514
JohnTitor Oct 15, 2020
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
ICEs should print the top of the query stack
  • Loading branch information
hosseind75 authored and hosseind88 committed Oct 9, 2020
commit 2b91b7fba99c47ffc214b2fd36b586b844a509bd
14 changes: 1 addition & 13 deletions compiler/rustc_middle/src/ty/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,7 @@ impl<'tcx> TyCtxt<'tcx> {
})
}

<<<<<<< HEAD
pub fn try_print_query_stack(
handler: &Handler,
num_frames: Option<usize>,
backtrace: Option<bool>,
) {
=======
pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) {
>>>>>>> 15827338aa231fd408561bf5db8d8eea85d1a51a
eprintln!("query stack during panic:");

// Be careful reyling on global state here: this code is called from
Expand All @@ -146,11 +138,7 @@ impl<'tcx> TyCtxt<'tcx> {
let mut i = 0;

while let Some(query) = current_query {
<<<<<<< HEAD
if backtrace.unwrap() == false && i == num_frames.unwrap() {
=======
if num_frames == Some(i) {
>>>>>>> 15827338aa231fd408561bf5db8d8eea85d1a51a
if Some(i) == num_frames {
break;
}
let query_info =
Expand Down