Skip to content

Commit c82c805

Browse files
Rollup merge of #151558 - mejrs:port_on_unimplemented, r=jdonszelmann,jonathanbrouwer
Port diagnostic attributes *[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/pull/151558)* Ports all the diagnostic attributes: on_const, on_unimplemented and rustc_on_unimplemented. I thought about migrating them one by one but that would leave a lot of code duplicated. So this PR looks big but it's mostly a lot of moving code around with slight modifications. r? @JonathanBrouwer cc @jdonszelmann feel free to review if you want, not sure which of you wants it.
2 parents 0c18ab7 + 0b14bd4 commit c82c805

51 files changed

Lines changed: 1632 additions & 2068 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3548,6 +3548,7 @@ dependencies = [
35483548
"rustc_lexer",
35493549
"rustc_macros",
35503550
"rustc_parse",
3551+
"rustc_parse_format",
35513552
"rustc_session",
35523553
"rustc_span",
35533554
"rustc_target",
@@ -4682,7 +4683,6 @@ dependencies = [
46824683
"rustc_macros",
46834684
"rustc_middle",
46844685
"rustc_next_trait_solver",
4685-
"rustc_parse_format",
46864686
"rustc_session",
46874687
"rustc_span",
46884688
"rustc_transmute",

compiler/rustc_attr_parsing/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ rustc_hir = { path = "../rustc_hir" }
1515
rustc_lexer = { path = "../rustc_lexer" }
1616
rustc_macros = { path = "../rustc_macros" }
1717
rustc_parse = { path = "../rustc_parse" }
18+
rustc_parse_format = { path = "../rustc_parse_format" }
1819
rustc_session = { path = "../rustc_session" }
1920
rustc_span = { path = "../rustc_span" }
2021
rustc_target = { path = "../rustc_target" }

compiler/rustc_attr_parsing/src/attributes/do_not_recommend.rs renamed to compiler/rustc_attr_parsing/src/attributes/diagnostic/do_not_recommend.rs

File renamed without changes.

0 commit comments

Comments
 (0)