summary refs log tree commit diff
path: root/compiler/rustc_passes/src/check_attr.rs
AgeCommit message (Expand)AuthorLines
2021-08-29emit specific warning to clarify that foreign items can't have no_mangleasquared31415-0/+30
2021-08-28Treat macros as HIR itemsinquisitivecrystal-8/+13
2021-08-21Address review commentsAaron Hill-1/+6
2021-08-21Remove `Session.used_attrs` and move logic to `CheckAttrVisitor`Aaron Hill-4/+157
2021-08-16Add check for doc(test(...)) attributeGuillaume Gomez-2/+43
2021-08-16feature gate doc(primitive)Joshua Nelson-1/+16
2021-08-12Adjust `check_no_mangle` and `check_export_name` to warn/error on `#[no_mangl...hyd-dev-12/+20
2021-08-01Auto merge of #87449 - matthiaskrgr:clippyy_v2, r=nagisabors-1/+1
2021-07-25clippy::useless_formatMatthias Krüger-1/+1
2021-07-25Only check macro attributes when checking the crate root.Camille GILLOT-2/+2
2021-07-10Check if the attribute is applied correctlyDeadbeef-0/+26
2021-06-25Check that `#[cmse_nonsecure_entry]` is applied to a function definitionFabian Wolff-0/+20
2021-06-17Fix ICE when using `#[doc(keyword = "...")]` on non-itemsFabian Wolff-2/+5
2021-06-15Fix ICE when doc aliases were put on function paramsRyan Levick-0/+2
2021-06-05Don't fire `invalid_doc_attributes` on `extern crate` itemsJoshua Nelson-1/+1
2021-06-04Remove `doc(include)`Joshua Nelson-2/+25
2021-05-12entirely remove rustc_args_required_const attributeRalf Jung-79/+1
2021-05-10Add documentationLeSeulArtichaut-0/+17
2021-05-08Error on conflicting `#[doc(inline)]`/`#[doc(no_inline)]` attributesLeSeulArtichaut-26/+74
2021-05-08Emit `invalid_doc_attributes` warnings in more casesLeSeulArtichaut-12/+75
2021-04-19Auto merge of #84091 - tmiasko:check-attrs-sym, r=davidtwcobors-49/+42
2021-04-16Remove #[main] attribute.Charles Lew-1/+1
2021-04-11Match against attribute name when validating attributesTomasz Miąsko-49/+42
2021-04-05Allow specifying alignment for functionsWesley Norris-6/+40
2021-04-02Auto merge of #80965 - camelid:rename-doc-spotlight, r=jyn514bors-5/+17
2021-03-23Fix comment.Camille GILLOT-1/+2
2021-03-22Err if the debugging options are not passed.Camille GILLOT-0/+19
2021-03-19Rollup merge of #82846 - GuillaumeGomez:doc-alias-list, r=jyn514Dylan DPC-30/+83
2021-03-16ast/hir: Rename field-related structuresVadim Petrochenkov-2/+2
2021-03-15Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]`Camelid-5/+17
2021-03-15Rollup merge of #83098 - camelid:more-doc-attr-check, r=davidtwcoDylan DPC-46/+64
2021-03-14Use pretty-printer instead of `span_to_snippet`Camelid-7/+4
2021-03-14Tweak diagnosticsCamelid-6/+9
2021-03-13Add hyphen to "crate level"Camelid-2/+2
2021-03-13Report error for each invalid nested attributeCamelid-6/+9
2021-03-13Lint non-meta doc attributesCamelid-0/+10
2021-03-13Refactor `check_doc_attrs` bodyCamelid-36/+41
2021-03-11Improve code by removing similar function calls and using loops instead for c...Guillaume Gomez-59/+33
2021-03-11Validate rustc_layout_scalar_valid_range_{start,end} attributesTomasz Miąsko-1/+36
2021-03-10Allow doc alias attributes to use both list and valueGuillaume Gomez-7/+86
2021-03-09Access attrs directly from HirId in rustc_passes::check_attr.Camille GILLOT-50/+13
2021-03-07Rollup merge of #82651 - jyn514:rustdoc-warnings, r=GuillaumeGomezYuki Okushi-1/+2
2021-03-05Make invalid_doc_attribute lint pluralGuillaume Gomez-3/+3
2021-03-04Also use INVALID_DOC_ATTRIBUTE for "unknown doc attribute" warningsGuillaume Gomez-6/+1
2021-03-04Add extra check for #[doc(test(...)] attributeGuillaume Gomez-1/+18
2021-03-03Change error about unknown doc attributes to a warningJoshua Nelson-9/+16
2021-03-02Report that `doc(plugins)` doesn't work using diagnostics instead of `println!`Joshua Nelson-1/+2
2021-03-01Validate meta items used in \#\[doc(...)\]Guillaume Gomez-0/+35
2021-02-25Improve checking for attributeAmanieu d'Antras-47/+56
2021-02-25Address review commentsAmanieu d'Antras-0/+17