Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
bf62d59
Give `TRACK_DIAGNOSTIC` a return value.
nnethercote Feb 9, 2024
ecd3718
Inline and remove `Level::get_diagnostic_id`.
nnethercote Feb 13, 2024
272e60b
Move `DelayedBug` handling into the `match`.
nnethercote Feb 13, 2024
c81767e
Reorder `has_future_breakage` handling.
nnethercote Feb 13, 2024
aec4bdb
Move `Expect`/`ForceWarning` handling into the `match`.
nnethercote Feb 13, 2024
a7d9262
Add comments about `TRACK_DIAGNOSTIC` use.
nnethercote Feb 13, 2024
7ef605b
Make the `match` in `emit_diagnostic` complete.
nnethercote Mar 1, 2024
2d48a3a
Move generic `NonZero` `rustc_layout_scalar_valid_range_start` attrib…
reitermarkus Mar 2, 2024
85dfb47
Fix lint.
reitermarkus Mar 2, 2024
b5c11d1
Fix `miri` tests.
reitermarkus Mar 2, 2024
0b3a8a0
Hide implementation details for `NonZero` auto traits.
reitermarkus Mar 2, 2024
31fef34
Fix lint.
reitermarkus Mar 6, 2024
52fc093
Try fixing `debuginfo` test.
reitermarkus Mar 9, 2024
17924a0
Fix `StdNonZeroNumberSummaryProvider`.
reitermarkus Mar 10, 2024
5aeae7f
Deduplicate `lldb_commands`.
reitermarkus Mar 10, 2024
ec75906
Remove LLDB persistent results in `compiletest`.
reitermarkus Mar 10, 2024
e02cc56
Add comment about `NonZero` printing as character literal.
reitermarkus Mar 10, 2024
781ce7c
Fix `StdNonZeroNumberProvider` for `gdb`.
reitermarkus Mar 10, 2024
15b71f4
Add CStr::bytes iterator
clarfonthey Nov 13, 2022
c076509
Add methods to create constants
celinval Mar 1, 2024
893a910
Add a test to SMIR body transformation
celinval Mar 12, 2024
a38a556
Reduce unsafe code, use more NonNull APIs per @cuviper review
clarfonthey Mar 12, 2024
f2fcfe8
Various style improvements to `rustc_lint::levels`
Zalathar Mar 13, 2024
bf71825
CFI: Break tests into smaller files
rcvalle Mar 12, 2024
90acda1
Fix accidental re-addition of removed code in a previous PR
oli-obk Mar 13, 2024
f10ebfe
Generalize `eval_in_interpreter` with a helper trait
oli-obk Mar 11, 2024
44b1f8a
Move only usage of `take_static_root_alloc` to its definition and inl…
oli-obk Mar 11, 2024
31fa142
Move error handling into const_validate_mplace
oli-obk Mar 11, 2024
71ef9e2
Move InterpCx into eval_in_interpreter
oli-obk Mar 11, 2024
bd7580b
Move generate_stacktrace_from_stack away from InterpCx to avoid havin…
oli-obk Mar 11, 2024
7aee665
Directly pass in the stack instead of computing it from a machine
oli-obk Mar 11, 2024
ffaf082
Remove an argument that can be computed cheaply
oli-obk Mar 12, 2024
66a46bb
Share the `InterpCx` creation between static and const evaluation
oli-obk Mar 12, 2024
af59eec
Move validation into eval_body_using_ecx
oli-obk Mar 12, 2024
2a1a6fa
Move the entire success path into `eval_body_using_ecx`
oli-obk Mar 12, 2024
3393227
Rename some things around validation error reporting to signal that i…
oli-obk Mar 13, 2024
b6312eb
Create some minimal HIR for associated opaque types
petrochenkov Feb 11, 2024
12cd322
Make incremental sessions identity no longer depend on the crate name…
Zoxc Feb 28, 2024
514b274
const-eval: organize and extend tests for required-consts
RalfJung Mar 13, 2024
9403eb4
Rollup merge of #104353 - clarfonthey:cstr-bytes-iter, r=cuviper
matthiaskrgr Mar 13, 2024
5bf23d9
Rollup merge of #120699 - nnethercote:rm-useless-TRACK_DIAGNOSTIC-cal…
matthiaskrgr Mar 13, 2024
de9163a
Rollup merge of #120943 - petrochenkov:somehir3, r=oli-obk
matthiaskrgr Mar 13, 2024
6948dc6
Rollup merge of #121764 - Zoxc:incr-sess-no-source, r=oli-obk
matthiaskrgr Mar 13, 2024
c996d95
Rollup merge of #121885 - reitermarkus:generic-nonzero-inner, r=oli-o…
matthiaskrgr Mar 13, 2024
2a8600e
Rollup merge of #122375 - rcvalle:rust-cfi-break-tests-into-smaller-f…
matthiaskrgr Mar 13, 2024
2d61416
Rollup merge of #122397 - oli-obk:machine-read-hook2, r=RalfJung
matthiaskrgr Mar 13, 2024
e4f4e9a
Rollup merge of #122405 - celinval:smir-new-const, r=oli-obk
matthiaskrgr Mar 13, 2024
7325c2f
Rollup merge of #122416 - Zalathar:levels, r=petrochenkov
matthiaskrgr Mar 13, 2024
e8c661e
Rollup merge of #122440 - RalfJung:required-consts, r=oli-obk
matthiaskrgr Mar 13, 2024
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
Try fixing debuginfo test.
  • Loading branch information
reitermarkus committed Mar 10, 2024
commit 52fc093b28b225ace8b13993a54d920349b0ca8e
2 changes: 1 addition & 1 deletion src/etc/lldb_commands
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)C
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup -e -x -h "^core::num::([a-z_]+::)*NonZero<.+>$" --category Rust
type category enable Rust
5 changes: 4 additions & 1 deletion src/etc/natvis/libcore.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
</Type>

<Type Name="core::num::nonzero::NonZero&lt;*&gt;">
<DisplayString>{__0}</DisplayString>
<DisplayString>{__0.__0}</DisplayString>
<Expand>
<ExpandedItem>__0.__0</ExpandedItem>
</Expand>
</Type>

<Type Name="core::num::wrapping::Wrapping&lt;*&gt;">
Expand Down
2 changes: 1 addition & 1 deletion src/etc/rust_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RustType(object):
STD_REF_REGEX = re.compile(r"^(core::(\w+::)+)Ref<.+>$")
STD_REF_MUT_REGEX = re.compile(r"^(core::(\w+::)+)RefMut<.+>$")
STD_REF_CELL_REGEX = re.compile(r"^(core::(\w+::)+)RefCell<.+>$")
STD_NONZERO_NUMBER_REGEX = re.compile(r"^core::num::([a-z_]+::)*NonZero.+$")
STD_NONZERO_NUMBER_REGEX = re.compile(r"^core::num::([a-z_]+::)*NonZero<.+>$")

TUPLE_ITEM_REGEX = re.compile(r"__\d+$")

Expand Down
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ impl<'test> TestCx<'test> {
"^(core::([a-z_]+::)+)Ref<.+>$",
"^(core::([a-z_]+::)+)RefMut<.+>$",
"^(core::([a-z_]+::)+)RefCell<.+>$",
"^core::num::([a-z_]+::)*NonZero.+$",
"^core::num::([a-z_]+::)*NonZero<.+>$",
];

// In newer versions of lldb, persistent results (the `$N =` part at the start of
Expand Down
24 changes: 12 additions & 12 deletions tests/debuginfo/numeric-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,40 +203,40 @@
// lldb-command:run

// lldb-command:print/d nz_i8
// lldb-check:[...]$0 = 11 { __0 = 11 }
// lldb-check:[...]$0 = None { __0 = { 0 = 11 } }

// lldb-command:print nz_i16
// lldb-check:[...]$1 = 22 { __0 = 22 }
// lldb-check:[...]$1 = None { __0 = { 0 = 22 } }

// lldb-command:print nz_i32
// lldb-check:[...]$2 = 33 { __0 = 33 }
// lldb-check:[...]$2 = None { __0 = { 0 = 33 } }

// lldb-command:print nz_i64
// lldb-check:[...]$3 = 44 { __0 = 44 }
// lldb-check:[...]$3 = None { __0 = { 0 = 44 } }

// lldb-command:print nz_i128
// lldb-check:[...]$4 = 55 { __0 = 55 }
// lldb-check:[...]$4 = None { __0 = { 0 = 55 } }

// lldb-command:print nz_isize
// lldb-check:[...]$5 = 66 { __0 = 66 }
// lldb-check:[...]$5 = None { __0 = { 0 = 66 } }

// lldb-command:print/d nz_u8
// lldb-check:[...]$6 = 77 { __0 = 77 }
// lldb-check:[...]$6 = None { __0 = { 0 = 77 } }

// lldb-command:print nz_u16
// lldb-check:[...]$7 = 88 { __0 = 88 }
// lldb-check:[...]$7 = None { __0 = { 0 = 88 } }

// lldb-command:print nz_u32
// lldb-check:[...]$8 = 99 { __0 = 99 }
// lldb-check:[...]$8 = None { __0 = { 0 = 99 } }

// lldb-command:print nz_u64
// lldb-check:[...]$9 = 100 { __0 = 100 }
// lldb-check:[...]$9 = None { __0 = { 0 = 100 } }

// lldb-command:print nz_u128
// lldb-check:[...]$10 = 111 { __0 = 111 }
// lldb-check:[...]$10 = None { __0 = { 0 = 111 } }

// lldb-command:print nz_usize
// lldb-check:[...]$11 = 122 { __0 = 122 }
// lldb-check:[...]$11 = None { __0 = { 0 = 122 } }
#![feature(generic_nonzero)]

use std::num::*;
Expand Down