about summary refs log tree commit diff
path: root/crates/stdx/src
AgeCommit message (Collapse)AuthorLines
2022-06-15PolishLukas Wirth-8/+2
2022-06-13internal: Bring back JodChild into flychecking for cancellationLukas Wirth-36/+60
2022-01-02minor: replace panics with typesAleksey Kladov-20/+14
2022-01-02internal: Use basic NonEmptyVec in mbe::syntax_bridgeLukas Wirth-0/+46
2021-12-10Remove some allocationsLukas Wirth-0/+5
2021-10-14Kill the child process before waiting in streaming_outputLukas Wirth-0/+1
2021-10-06Fix stdx::to_snake_casecrauzer-12/+35
2021-10-03Add semicolons for consistencyAramis Razzaghipour-11/+11
`clippy::semicolon_if_nothing_returned`
2021-09-11minor: improve readabilityAleksey Kladov-6/+4
It's important that module interface doesn't depend on features. Better hide features in bodies.
2021-07-08Remove proc macro management threadJonas Schievink-0/+1
2021-06-22Fix compilation on WASMFlorian Diebold-2/+21
Fixes #9214. Fixes #9210.
2021-06-13tree-wide: make rustdoc links spiky so they are clickableJade-3/+3
2021-05-20Don't compare ast::Visibility by stringifyingLukas Tobias Wirth-0/+28
2021-05-06internal: use API stabilized in 1.52Aleksey Kladov-75/+3
2021-04-26minor: simplifyAleksey Kladov-12/+3
2021-04-20fix: no more Registering progress handler for token rustAnalyzer/Indexing ↵Aleksey Kladov-0/+12
failed.
2021-04-20fix: no longer get stuck on windowsAleksey Kladov-7/+246
reading both stdout & stderr is a common gotcha, you need to drain them concurrently to avoid deadlocks. Not sure why I didn't do the right thing from the start. Seems like I assumed the stderr is short? That's not the case when cargo spams `compiling xyz` messages
2021-04-06feat: show errors from `cargo metadata` and initial `cargo check` in the ↵Aleksey Kladov-0/+8
status bar closes #3155
2021-01-26Make always-assert crate reusableAleksey Kladov-52/+1
2021-01-22stave off zombiesAleksey Kladov-0/+1
2021-01-18Fix warnings when running `cargo doc --document-private-items`Joshua Nelson-0/+2
These were the warnings previously: ``` warning: could not parse code block as Rust code --> crates/stdx/src/lib.rs:137:9 | 137 | /// ∀ x in slice[..idx]: pred(x) | _________^ 138 | | /// && ∀ x in slice[idx..]: !pred(x) | |____^ | = note: error from rustc: unknown start of token: \u{2200} warning: 1 warning emitted warning: unresolved link to `package` --> crates/base_db/src/input.rs:181:15 | 181 | /// it's [package].name, can be different for other project types or even | ^^^^^^^ no item named `package` in scope | = note: `#[warn(broken_intra_doc_links)]` on by default = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` warning: unresolved link to `package` --> crates/base_db/src/input.rs:181:15 | 181 | /// it's [package].name, can be different for other project types or even | ^^^^^^^ no item named `package` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` warning: 2 warnings emitted warning: unresolved link to `package` --> crates/base_db/src/input.rs:181:15 | 181 | /// it's [package].name, can be different for other project types or even | ^^^^^^^ no item named `package` in scope | = note: `#[warn(broken_intra_doc_links)]` on by default = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` warning: unresolved link to `package` --> crates/base_db/src/input.rs:181:15 | 181 | /// it's [package].name, can be different for other project types or even | ^^^^^^^ no item named `package` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` warning: 2 warnings emitted ``` This does *not* fix the following warning, because it is actually rust code and rustdoc is being over eager: ``` warning: Rust code block is empty --> crates/parser/src/grammar.rs:16:5 | 16 | //! ``` | _____^ 17 | | //! // test function_with_zero_parameters 18 | | //! // fn foo() {} 19 | | //! ``` | |_______^ | help: mark blocks that do not contain Rust code as text | 16 | //! ```text | ^^^^^^^ ``` https://github.com/rust-lang/rust/pull/79816 should make this configurable so the warning can be `allow`ed.
2021-01-14Fix assert_never invoking assert_alwaysLukas Wirth-1/+1
2021-01-14Introduce more appropriate assertion mechanismAleksey Kladov-0/+54
rust-analyzer is a long-running program, so we *should* handle assertion failures. See also https://www.sqlite.org/assert.html.
2021-01-14Make printin the backtrace more convenientAleksey Kladov-8/+21
2021-01-10Cleaner APIAleksey Kladov-2/+2
2021-01-08Simplify highlighting infraAleksey Kladov-2/+16
This also fixes the killer whale bug
2021-01-08Refactor out JodChildEdwin Cheng-1/+22
2020-11-11Replace RacyFlag with OnceCellAleksey Kladov-29/+1
2020-10-23Fix panic contextAleksey Kladov-2/+2
2020-10-12Add to_upper_snake_case function to stdxIgor Aleksanov-2/+10
2020-10-12Apply suggestions from code reviewIgor Aleksanov-1/+1
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-10-12Improve string helpers functionsIgor Aleksanov-1/+5
2020-10-08Code reorganisation and field supportZac Pullar-Strecker-1/+7
2020-09-29Add panic_context module for better panic messagesAleksey Kladov-0/+50
2020-08-18Make RacyFlag actually workAleksey Kladov-1/+1
2020-08-18Speedup ty testsAleksey Kladov-1/+29
Closes #5792
2020-08-18MinorAleksey Kladov-1/+1
2020-08-12Replace SepBy with ItertoolsAleksey Kladov-64/+1
2020-08-10Fix clippy warningsIgor Aleksanov-2/+2
2020-07-30Use split_once polyfillAleksey Kladov-3/+12
2020-07-23Replace superslice with API on path to stabilizationAleksey Kladov-0/+30
2020-07-13Don't copy-paste `impl_froms` into every crateAleksey Kladov-0/+21
2020-07-13Move stdx macros into submoduleAleksey Kladov-19/+21
2020-07-11Profiling tweaksAleksey Kladov-0/+2
2020-06-23More principled indentation trimming in fixturesAleksey Kladov-0/+82
2020-06-23Slightly better nameAleksey Kladov-1/+1
2020-06-19Speedup VFS::partitionAleksey Kladov-1/+0
The task of `partition` function is to bin the flat list of paths into disjoint filesets. Ideally, it should be incremental -- each new file should be added to a specific fileset. However, preliminary measurnments show that it is actually fast enough if we just optimize this to use a binary search instead of a linear scan.
2020-06-03Use split1 when formatting function signature paramsAaron Loucks-0/+5
2020-05-20Use snippets in add functionAleksey Kladov-0/+8
2020-05-03Move snake case method to heckKirill Bulatov-0/+14