about summary refs log tree commit diff
path: root/src/librustdoc/clean/cfg
AgeCommit message (Collapse)AuthorLines
2025-02-08Rustfmtbjorn3-14/+15
2024-10-06Rename NestedMetaItem to MetaItemInnercodemountains-9/+9
2024-10-04Adjust rustdoc for literal boolean supportUrgau-17/+34
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-17/+16
2024-07-29Reformat `use` declarations.Nicholas Nethercote-4/+3
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-06-06Fix formattingcarbotaniuman-1/+1
2024-06-06Fix buildcarbotaniuman-5/+5
2024-06-06Parse unsafe attributescarbotaniuman-1/+5
2023-12-10remove redundant importssurechen-2/+2
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-02-21Use `ThinVec` in various AST types.Nicholas Nethercote-2/+3
This commit changes the sequence parsers to produce `ThinVec`, which triggers numerous conversions.
2022-12-05Remove `mk_name_value_item{,_str}`.Nicholas Nethercote-6/+14
There are better ways to create the meta items. - In the rustdoc tests, the commit adds `dummy_meta_item_name_value`, which matches the existing `dummy_meta_item_word` function and `dummy_meta_item_list` macro. - In `types.rs` the commit clones the existing meta item and then modifies the clone.
2022-06-16Fix `cfg(not)` and `cfg(all)` causing Rustdoc stab to disappearSprite-1/+1
2022-04-14clarify doc(cfg) wordingAndy Russell-24/+16
The current "This is supported" wording implies that it's possible to still use the item on other configurations, but in an unsupported way. Changing this to "Available" removes this ambiguity.
2021-07-08Rework SESSION_GLOBALS API to prevent overwriting itGuillaume Gomez-9/+9
2021-02-27Teach rustdoc how to display WASI.Dan Gohman-0/+4
As a followup to [this comment] in #82420, this patch teaches rustdoc how to display WASI. [this comment]: https://github.com/rust-lang/rust/pull/82420#issuecomment-784523826
2020-10-13Add test-examples for Cfg::simplify_withWim Looman-0/+36
2020-08-31Fix strings indentGuillaume Gomez-7/+6
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-1/+1
2020-08-08Eliminate the `SessionGlobals` from `librustc_ast`.Nicholas Nethercote-1/+1
By moving `{known,used}_attrs` from `SessionGlobals` to `Session`. This means they are accessed via the `Session`, rather than via TLS. A few `Attr` methods and `librustc_ast` functions are now methods of `Session`. All of this required passing a `Session` to lots of functions that didn't already have one. Some of these functions also had arguments removed, because those arguments could be accessed directly via the `Session` argument. `contains_feature_attr()` was dead, and is removed. Some functions were moved from `librustc_ast` elsewhere because they now need to access `Session`, which isn't available in that crate. - `entry_point_type()` --> `librustc_builtin_macros` - `global_allocator_spans()` --> `librustc_metadata` - `is_proc_macro_attr()` --> `Session`
2020-07-09Eliminate confusing "globals" terminology.Nicholas Nethercote-8/+8
There are some structures that are called "globals", but are they global to a compilation session, and not truly global. I have always found this highly confusing, so this commit renames them as "session globals" and adds a comment explaining things. Also, the commit fixes an unnecessary nesting of `set()` calls `src/librustc_errors/json/tests.rs`
2020-05-08Fix testsCamille GILLOT-1/+1
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-3/+3
2020-01-06rustdoc: Remove more `#[doc(cfg(..))]` duplicatesOliver Middleton-0/+52
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-22Format the worldMark Rousskov-122/+94
2019-09-27Fix librustcdoc testvarkor-1/+1
2019-09-26Rename `MetaItem.node` to `MetaItem.kind`varkor-2/+2
2019-08-15Remove `Spanned` from `mk_name_value_item_str` and `expr_to_spanned_string`Vadim Petrochenkov-2/+2
2019-08-05Drop explicit span argument from mk_name_value_itemMark Rousskov-1/+0
2019-08-02librustdoc: Unconfigure tests during normal buildVadim Petrochenkov-0/+413