Skip to content
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

Rollup of 10 pull requests #89572

Merged
merged 26 commits into from
Oct 6, 2021
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
734209e
Normalize assoc types when checking ret ty of main
ThePuzzlemaker Sep 6, 2021
33a2825
Clean up the fix a bit
ThePuzzlemaker Sep 7, 2021
f1c8acc
Use `libc::sigaction()` instead of `sys::signal()` to prevent a deadlock
FabianWolff Sep 10, 2021
2bff77d
Fix suggestion for nested struct patterns
FabianWolff Sep 12, 2021
e3e5ae9
Clean up unneeded explicit pointer cast
dtolnay Sep 29, 2021
65ef265
Call `libc::sigaction()` only on Android
FabianWolff Oct 1, 2021
e3996ff
Fix Lower/UpperExp formatting for integers and precision zero
FabianWolff Oct 3, 2021
199b33f
Use a test value that doesn't depend on the handling of even/odd roun…
joshtriplett Oct 4, 2021
9cb30f4
Move generic error message to separate branches
JulianKnodt Sep 28, 2021
32a5abc
Make `proc_macro_derive_resolution_fallback` a future-breakage lint
Aaron1011 Oct 4, 2021
40fe064
Add a check for duplicated doc aliases in unused lint
GuillaumeGomez Oct 1, 2021
013aa37
Add test for duplicated doc aliases
GuillaumeGomez Oct 1, 2021
02c2a35
Discuss field-sensitivity and enums in context of `MaybeLiveLocals`
ecstatic-morse Oct 4, 2021
9f9f7f6
Ensure that `MaybeLiveLocals` works with simple sum-type assignments
ecstatic-morse Oct 4, 2021
c35a700
Make an initial guess for metadata size to reduce buffer resizes
joshtriplett Oct 5, 2021
4ec0377
for signed overflowing remainder, delay comparing lhs with MIN
tspiteri Oct 5, 2021
960e49e
Rollup merge of #88706 - ThePuzzlemaker:issue-88609, r=jackh726
Manishearth Oct 5, 2021
eb86098
Rollup merge of #88828 - FabianWolff:issue-88585, r=dtolnay
Manishearth Oct 5, 2021
60b9c5d
Rollup merge of #88871 - FabianWolff:issue-88403, r=jackh726
Manishearth Oct 5, 2021
0352a28
Rollup merge of #89317 - JulianKnodt:precise_errors, r=BoxyUwU
Manishearth Oct 5, 2021
e745e09
Rollup merge of #89351 - tspiteri:wrapping_rem, r=dtolnay
Manishearth Oct 5, 2021
80f1f0d
Rollup merge of #89442 - GuillaumeGomez:duplicated-doc-alias, r=estebank
Manishearth Oct 5, 2021
4e8c853
Rollup merge of #89502 - FabianWolff:issue-89493, r=joshtriplett
Manishearth Oct 5, 2021
048b0fd
Rollup merge of #89523 - Aaron1011:derive-future-compat, r=wesleywiser
Manishearth Oct 5, 2021
f71b3e2
Rollup merge of #89532 - ecstatic-morse:maybe-live-locals-enum, r=oli…
Manishearth Oct 5, 2021
5f8b161
Rollup merge of #89546 - joshtriplett:grow-metadata-faster, r=petroch…
Manishearth Oct 5, 2021
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
Add test for duplicated doc aliases
GuillaumeGomez committed Oct 4, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 013aa378f301af73116088bec86128ac7cbd8ab8
9 changes: 9 additions & 0 deletions src/test/ui/duplicate_doc_alias.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![deny(unused_attributes)]

#[doc(alias = "A")]
#[doc(alias = "A")] //~ ERROR
#[doc(alias = "B")]
#[doc(alias("B"))] //~ ERROR
pub struct Foo;

fn main() {}
24 changes: 24 additions & 0 deletions src/test/ui/duplicate_doc_alias.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
error: doc alias is duplicated
--> $DIR/duplicate_doc_alias.rs:4:7
|
LL | #[doc(alias = "A")]
| ----------- first defined here
LL | #[doc(alias = "A")]
| ^^^^^^^^^^^
|
note: the lint level is defined here
--> $DIR/duplicate_doc_alias.rs:1:9
|
LL | #![deny(unused_attributes)]
| ^^^^^^^^^^^^^^^^^

error: doc alias is duplicated
--> $DIR/duplicate_doc_alias.rs:6:13
|
LL | #[doc(alias = "B")]
| ----------- first defined here
LL | #[doc(alias("B"))]
| ^^^

error: aborting due to 2 previous errors