Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
05c1e6b
stabilize debugger visualizer attribute
gibbyfree Mar 2, 2023
5c34f77
whitespace, delete unstable book page
gibbyfree Mar 2, 2023
4510439
Refactor core::char::EscapeDefault and co. structures
mina86 Nov 29, 2022
be413ae
Remove all in target_thread_local cfg
Ayush1325 Apr 27, 2023
518d348
Implement `StructuralEq` for integers, `bool` and `char`
WaffleLapkin Feb 17, 2023
9a716da
Add a `ConstParamTy` trait
WaffleLapkin Feb 17, 2023
c8844e1
`derive(Eq)` in a test
WaffleLapkin Feb 22, 2023
81a2b85
Remove `feature(const_param_ty_trait)`, use `adt_const_params` instead
WaffleLapkin Feb 22, 2023
c45c4f2
Rename/move a test
WaffleLapkin Feb 22, 2023
1c54410
Check the correct trait when checking `ConstParamTy` impls
WaffleLapkin Feb 23, 2023
7234d63
Add `!StructuralEq` test for `ConstParamTy`
WaffleLapkin Feb 23, 2023
2205c3f
Add a macro to conveniently implement marker traits
WaffleLapkin Mar 3, 2023
1bf6bbb
Impl `StructuralEq` & `ConstParamTy` for `str`, `&T`, `[T; N]` and `[T]`
WaffleLapkin Mar 3, 2023
2c5e716
Add FIXMEs
WaffleLapkin Mar 3, 2023
51355ad
Add a test for `[NotParam; 0]: ConstParamTy` (not holding)
WaffleLapkin Mar 3, 2023
bdb5502
Fix some marker impls
WaffleLapkin Mar 3, 2023
26417a8
Add `ConstParamTy` tests
WaffleLapkin Mar 3, 2023
2f70d02
Fix compile test so it normalizes (un)expected error messages
WaffleLapkin Apr 27, 2023
1f44a24
--bless `ConstParamTy` ui tests
WaffleLapkin Apr 27, 2023
182eee2
fixup tests wrt new normalization
WaffleLapkin Apr 28, 2023
5c99175
uplift `clippy::clone_double_ref` as `suspicious_double_ref_op`
fee1-dead Apr 28, 2023
e928067
fix rustdoc and core test
fee1-dead Apr 29, 2023
475378f
add match to diagnostic messages
fee1-dead Apr 29, 2023
4d0f7e2
review
mina86 Apr 30, 2023
76c9947
a bit more usize::from
mina86 Apr 30, 2023
c317546
Fix `StructuralEq` impls for `&T`, `[T]` and `[T; N]`
WaffleLapkin May 1, 2023
0bcfff4
Simplify type_parameter_bounds_in_generics
compiler-errors Apr 18, 2023
8ea71f2
Do not consider associated type bounds for super_predicates_that_defi…
compiler-errors Apr 18, 2023
bec7193
Don't use implied trait predicates in gather_explicit_predicates_of
compiler-errors Apr 19, 2023
b00e5f3
remove bootstrap from tests
gibbyfree Mar 6, 2023
c9653a6
fix stderrs
gibbyfree Mar 6, 2023
7411468
Mark RPITIT and AFIT as no longer incomplete
compiler-errors May 1, 2023
f916c44
Rollup merge of #105076 - mina86:a, r=scottmcm
Dylan-DPC May 2, 2023
b727132
Rollup merge of #108161 - WaffleLapkin:const_param_ty, r=BoxyUwU
Dylan-DPC May 2, 2023
f379a58
Rollup merge of #108668 - gibbyfree:stabilizedebuggervisualizer, r=we…
Dylan-DPC May 2, 2023
be4f9f5
Rollup merge of #110512 - compiler-errors:fix-elaboration-with-associ…
Dylan-DPC May 2, 2023
f47a63c
Rollup merge of #110895 - Ayush1325:thread-local-fix, r=thomcc
Dylan-DPC May 2, 2023
40c4ed4
Rollup merge of #110955 - fee1-dead-contrib:sus-operation, r=compiler…
Dylan-DPC May 2, 2023
2e3373c
Rollup merge of #111048 - compiler-errors:rpitit-not-incomplete, r=ja…
Dylan-DPC May 2, 2023
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
2 changes: 2 additions & 0 deletions compiler/rustc_feature/src/accepted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ declare_features! (
(accepted, copy_closures, "1.26.0", Some(44490), None),
/// Allows `crate` in paths.
(accepted, crate_in_paths, "1.30.0", Some(45477), None),
/// Allows using `#[debugger_visualizer]` attribute.
(accepted, debugger_visualizer, "CURRENT_RUSTC_VERSION", Some(95939), None),
/// Allows rustc to inject a default alloc_error_handler
(accepted, default_alloc_error_handler, "1.68.0", Some(66741), None),
/// Allows using assigning a default type to type parameters in algebraic data type definitions.
Expand Down
2 changes: 0 additions & 2 deletions compiler/rustc_feature/src/active.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,6 @@ declare_features! (
(active, custom_inner_attributes, "1.30.0", Some(54726), None),
/// Allows custom test frameworks with `#![test_runner]` and `#[test_case]`.
(active, custom_test_frameworks, "1.30.0", Some(50297), None),
/// Allows using `#[debugger_visualizer]`.
(active, debugger_visualizer, "1.62.0", Some(95939), None),
/// Allows declarative macros 2.0 (`macro`).
(active, decl_macro, "1.17.0", Some(39412), None),
/// Allows default type parameters to influence type inference.
Expand Down
12 changes: 6 additions & 6 deletions compiler/rustc_feature/src/builtin_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,16 +403,16 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
doc, Normal, template!(List: "hidden|inline|...", NameValueStr: "string"), DuplicatesOk
),

// Debugging
ungated!(
debugger_visualizer, Normal,
template!(List: r#"natvis_file = "...", gdb_script_file = "...""#), DuplicatesOk
),

// ==========================================================================
// Unstable attributes:
// ==========================================================================

// RFC #3191: #[debugger_visualizer] support
gated!(
debugger_visualizer, Normal, template!(List: r#"natvis_file = "...", gdb_script_file = "...""#),
DuplicatesOk, experimental!(debugger_visualizer)
),

// Linking:
gated!(
naked, Normal, template!(Word), WarnFollowing, @only_local: true,
Expand Down
27 changes: 0 additions & 27 deletions src/doc/unstable-book/src/language-features/debugger-visualizer.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// ignore-lldb
// no-prefer-dynamic

#![feature(debugger_visualizer)]
#![debugger_visualizer(natvis_file = "dependency-with-embedded-visualizers.natvis")]
#![debugger_visualizer(gdb_script_file = "dependency-with-embedded-visualizers.py")]
#![crate_type = "rlib"]
Expand Down
1 change: 0 additions & 1 deletion tests/debuginfo/embedded-visualizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
// gdb-check:$4 = "Person A" is 10 years old.

#![allow(unused_variables)]
#![feature(debugger_visualizer)]
#![debugger_visualizer(natvis_file = "embedded-visualizer.natvis")]
#![debugger_visualizer(gdb_script_file = "embedded-visualizer.py")]

Expand Down
3 changes: 0 additions & 3 deletions tests/ui/feature-gates/feature-gate-debugger-visualizer.rs

This file was deleted.

12 changes: 0 additions & 12 deletions tests/ui/feature-gates/feature-gate-debugger-visualizer.stderr

This file was deleted.

1 change: 0 additions & 1 deletion tests/ui/invalid/invalid-debugger-visualizer-option.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// normalize-stderr-test: "foo.random:.*\(" -> "foo.random: $$FILE_NOT_FOUND_MSG ("
// normalize-stderr-test: "os error \d+" -> "os error $$FILE_NOT_FOUND_CODE"

#![feature(debugger_visualizer)]
#![debugger_visualizer(random_file = "../foo.random")] //~ ERROR invalid argument
#![debugger_visualizer(natvis_file = "../foo.random")] //~ ERROR
fn main() {}
4 changes: 2 additions & 2 deletions tests/ui/invalid/invalid-debugger-visualizer-option.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: invalid argument
--> $DIR/invalid-debugger-visualizer-option.rs:5:24
--> $DIR/invalid-debugger-visualizer-option.rs:4:24
|
LL | #![debugger_visualizer(random_file = "../foo.random")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -9,7 +9,7 @@ LL | #![debugger_visualizer(random_file = "../foo.random")]
= note: expected: `gdb_script_file = "..."`

error: couldn't read $DIR/../foo.random: $FILE_NOT_FOUND_MSG (os error $FILE_NOT_FOUND_CODE)
--> $DIR/invalid-debugger-visualizer-option.rs:6:24
--> $DIR/invalid-debugger-visualizer-option.rs:5:24
|
LL | #![debugger_visualizer(natvis_file = "../foo.random")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/invalid/invalid-debugger-visualizer-target.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#![feature(debugger_visualizer)]

#[debugger_visualizer(natvis_file = "../foo.natvis")] //~ ERROR attribute should be applied to a module
fn main() {}
2 changes: 1 addition & 1 deletion tests/ui/invalid/invalid-debugger-visualizer-target.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: attribute should be applied to a module
--> $DIR/invalid-debugger-visualizer-target.rs:3:1
--> $DIR/invalid-debugger-visualizer-target.rs:1:1
|
LL | #[debugger_visualizer(natvis_file = "../foo.natvis")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down