Skip to content

Rollup of 9 pull requests #98472

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

Closed
Closed
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
00da0e7
make const_err show up in future breakage reports
RalfJung Jun 4, 2022
4a4d877
bless remaining tests
RalfJung Jun 4, 2022
ab3a2a0
Unify copying data from enclave to userspace
raoulstrackx Mar 29, 2022
531752f
Mitigate MMIO stale data vulnerabilities
raoulstrackx Mar 28, 2022
6f7d193
Ensure userspace allocation is 8-byte aligned
raoulstrackx Mar 23, 2022
a27aace
Test `copy_to_userspace` function
raoulstrackx Mar 22, 2022
edb6c4b
Add a test for issue #33172
rylev May 16, 2022
f30c76a
Turn off cdb test for now, link to issue
rylev Jun 20, 2022
3ea686f
Turn CDB test back on and all clarifying test
rylev Jun 20, 2022
e5402e4
Fix linux tests
rylev Jun 21, 2022
1a25ac9
Add comment about issue caused with multiple statics
rylev Jun 21, 2022
6a6910e
Address reviewer comments
raoulstrackx Jun 22, 2022
d23eea5
Add tracking issues to `--extern` option docs.
ehuss Jun 22, 2022
cc4f804
Move help popup into a pocket menu as well
GuillaumeGomez Jun 20, 2022
3eb9e1a
Add/update GUI tests for help pocket menu
GuillaumeGomez Jun 20, 2022
e4b2b41
Merge all popover hide functions into one
GuillaumeGomez Jun 22, 2022
23d325e
Update FIXME comment
rylev Jun 23, 2022
3c7f1f1
Suggest defining variable as mutable on `&mut _` type mismatch in pats
WaffleLapkin Jun 23, 2022
4c4fb71
add test
b-naber Jun 23, 2022
2e3221a
use correct substs in enum discriminant hack
b-naber Jun 23, 2022
38814fc
small refactor
b-naber Jun 24, 2022
f39c0d6
address review
b-naber Jun 24, 2022
ada2acc
Set relocation_model to Pic on emscripten target
hoodmane Jun 15, 2022
bf48b62
fmt
b-naber Jun 24, 2022
e25129b
take advantage of a labelled block
WaffleLapkin Jun 24, 2022
1dfb53b
improve wording of a suggestion
WaffleLapkin Jun 24, 2022
c06d8f9
Fix trait object reborrow suggestion
compiler-errors Jun 20, 2022
25fe474
Note concrete type being coerced into object
compiler-errors Jun 20, 2022
459b151
Rollup merge of #97085 - rylev:test-issue-33172, r=wesleywiser
compiler-errors Jun 25, 2022
7cf4f09
Rollup merge of #97743 - RalfJung:const-err-future-breakage, r=estebank
compiler-errors Jun 25, 2022
11cb0bb
Rollup merge of #98126 - fortanix:raoul/mitigate_stale_data_vulnerabi…
compiler-errors Jun 25, 2022
0bfffb7
Rollup merge of #98149 - hoodmane:emscripten-pic, r=petrochenkov
compiler-errors Jun 25, 2022
be2ef3e
Rollup merge of #98277 - compiler-errors:issue-93596, r=estebank
compiler-errors Jun 25, 2022
1c2e6b6
Rollup merge of #98297 - GuillaumeGomez:help-pocket-menu, r=notriddle
compiler-errors Jun 25, 2022
a6f8881
Rollup merge of #98401 - ehuss:extern-tracking, r=Dylan-DPC
compiler-errors Jun 25, 2022
6030d20
Rollup merge of #98429 - b-naber:use-correct-substs-discriminant-cast…
compiler-errors Jun 25, 2022
bdd6a25
Rollup merge of #98431 - WaffleLapkin:mut_pat_suggestions, r=compiler…
compiler-errors Jun 25, 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
Turn CDB test back on and all clarifying test
  • Loading branch information
rylev committed Jun 20, 2022
commit 3ea686f599d2972f0c2f0b21bc20c986450b4948
24 changes: 18 additions & 6 deletions src/test/debuginfo/no_mangle-info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,34 @@
// gdb-command:run
// gdb-command:whatis TEST
// gdb-check:type = u64
// gdb-command:whatis no_mangle_info::namespace::OTHER_TEST
// gdb-check:type = u64

// === LLDB TESTS ==================================================================================
// lldb-command:run
// lldb-command:expr TEST
// lldb-check: (unsigned long) $0 = 3735928559
// lldb-command:expr no_mangle_test::namespace::OTHER_TEST
// lldb-check: (unsigned long) $0 = 42

// === CDB TESTS ==================================================================================
// FIXME: This does not currently work due to a bug in LLVM
// The fix for this is being tracked in rust-lang/rust#98295
// // cdb-command: g
// // cdb-command: dx a!no_mangle_info::TEST
// // cdb-check: a!no_mangle_info::TEST : 0xdeadbeef [Type: unsigned __int64]
// cdb-command: g
// Note: LLDB and GDB allow referring to items that are in the same namespace of the symbol
// we currently have a breakpoint on in an unqualified way. CDB does not, and thus we need to
// refer to it in a fully qualified way.
// cdb-command: dx a!no_mangle_info::TEST
// cdb-check: a!no_mangle_info::TEST : 0xdeadbeef [Type: unsigned __int64]
// cdb-command: dx a!no_mangle_info::namespace::OTHER_TEST
// cdb-check: a!no_mangle_info::namespace::OTHER_TEST : 0x2a [Type: unsigned __int64]

#[no_mangle]
pub static TEST: u64 = 0xdeadbeef;

pub mod namespace {
pub static OTHER_TEST: u64 = 42;
}

pub fn main() {
println!("TEST: {}", TEST); // #break
println!("TEST: {}", TEST);
println!("OTHER TEST: {}", namespace::OTHER_TEST); // #break
}