Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ee5404c
Add additional options to `x setup`
clubby789 Feb 9, 2023
960ac2e
[107049] Recognise top level keys in config.toml.example
lionellloh Feb 19, 2023
5643706
Removed trailing spaces to satisfy lint
lionellloh Feb 20, 2023
fc5db2c
Implement -Zlink-directives=yes/no
jsgf Feb 4, 2023
fde2e40
link-directives: clarify usage message
jsgf Feb 8, 2023
5965948
Remove a back compat warning
oli-obk Jan 25, 2023
e39fe37
Add check for invalid \`#[macro_export]\` arguments
blyxyas Feb 10, 2023
60b0da1
Test rustdoc encountering `proc_macro_derive` in a non-proc-macro crate
oli-obk Feb 9, 2023
98525ae
Check object's supertrait and associated type bounds in new solver
compiler-errors Feb 22, 2023
2540c2b
Make higher-ranked projections in object types work in new solver
compiler-errors Feb 22, 2023
ed30eff
Comments, another test
compiler-errors Feb 22, 2023
34813e2
Test that the compiler/library builds with -Zmir-opt-level=3 -Zvalida…
chenyukang Dec 15, 2022
15813cf
enable validate-mir-opts in mingw-check
chenyukang Dec 28, 2022
001bcee
check is default to all targets now
chenyukang Feb 24, 2023
b90a385
Rollup merge of #105736 - chenyukang:yukang/add-mir-opt-level-testing…
compiler-errors Feb 25, 2023
a4119ba
Rollup merge of #107291 - oli-obk:rustdoc_breaking_change, r=estebank
compiler-errors Feb 25, 2023
1a599d7
Rollup merge of #107675 - jsgf:link-directives, r=davidtwco
compiler-errors Feb 25, 2023
3905517
Rollup merge of #107848 - clubby789:x-setup-options, r=Mark-Simulacrum
compiler-errors Feb 25, 2023
cf049ac
Rollup merge of #107911 - blyxyas:issue-107231-fix, r=compiler-errors
compiler-errors Feb 25, 2023
0b6b373
Rollup merge of #108229 - lionellloh:issue-107049, r=Mark-Simulacrum
compiler-errors Feb 25, 2023
4723a9a
Rollup merge of #108333 - compiler-errors:new-solver-object-sound, r=…
compiler-errors Feb 25, 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
Prev Previous commit
Next Next commit
Test rustdoc encountering proc_macro_derive in a non-proc-macro crate
  • Loading branch information
oli-obk committed Feb 23, 2023
commit 60b0da1541b82eca0acee742ef816462d3cb1a0d
12 changes: 12 additions & 0 deletions tests/rustdoc-ui/proc_macro_bug.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// regression test for failing to pass `--crate-type proc-macro` to rustdoc
// when documenting a proc macro crate https://github.com/rust-lang/rust/pull/107291

extern crate proc_macro;

use proc_macro::TokenStream;

#[proc_macro_derive(DeriveA)]
//~^ ERROR the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
pub fn a_derive(input: TokenStream) -> TokenStream {
input
}
8 changes: 8 additions & 0 deletions tests/rustdoc-ui/proc_macro_bug.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
--> $DIR/proc_macro_bug.rs:8:1
|
LL | #[proc_macro_derive(DeriveA)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error