Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #4873 | bors[bot] | 2020-08-25 | 12 | -61/+1015 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4873: Resolve links in hover documentation r=matklad a=zacps This PR resolves links in hover documentation. Both the upcoming intra-doc-links style and the old "path-based" style. ## Todo * [x] More tests * [ ] Benchmark (Is there an easy way to benchmark this?) * [x] ~~Resolve issues with the markdown parser/get rid of it~~ Migrate to `pulldown_cmark_to_cmark` * [x] Reorganise code (Tips appreciated) --- Fixes #503 Co-authored-by: Zac Pullar-Strecker <[email protected]> | ||||
| * | Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links | Zac Pullar-Strecker | 2020-08-25 | 46 | -835/+959 |
| |\ | |||||
| * | | Changes from review | Zac Pullar-Strecker | 2020-08-25 | 2 | -18/+23 |
| | | | |||||
| * | | Renames, comments, and dead code removal | Zac Pullar-Strecker | 2020-08-24 | 4 | -23/+8 |
| | | | |||||
| * | | Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links | Zac Pullar-Strecker | 2020-08-24 | 1623 | -128337/+130529 |
| |\ \ | |||||
| * | | | Add a test to document unimplemented case | Zac Pullar-Strecker | 2020-08-24 | 1 | -0/+62 |
| | | | | |||||
| * | | | Reorganise code | Zac Pullar-Strecker | 2020-08-24 | 9 | -260/+347 |
| | | | | |||||
| * | | | update & configure cmark to render three backticks | Zac Pullar-Strecker | 2020-08-02 | 5 | -173/+175 |
| | | | | |||||
| * | | | remove debug eprintln! | Zac Pullar-Strecker | 2020-08-01 | 1 | -5/+1 |
| | | | | |||||
| * | | | pulldown_cmark no-default-features | Zac Pullar-Strecker | 2020-08-01 | 2 | -17/+1 |
| | | | | |||||
| * | | | move into separate module | Zac Pullar-Strecker | 2020-08-01 | 4 | -298/+308 |
| | | | | |||||
| * | | | Improve namespace parsing comment | Zac Pullar-Strecker | 2020-08-01 | 1 | -1/+7 |
| | | | | |||||
| * | | | use static data for namespace recognition | Zac Pullar-Strecker | 2020-08-01 | 3 | -56/+49 |
| | | | | |||||
| * | | | revert change to license check | Zac Pullar-Strecker | 2020-08-01 | 1 | -6/+1 |
| | | | | |||||
| * | | | remove some crates.io deps | Zac Pullar-Strecker | 2020-08-01 | 3 | -102/+31 |
| | | | | |||||
| * | | | Update expect tests | Zac Pullar-Strecker | 2020-07-31 | 3 | -168/+423 |
| | | | | |||||
| * | | | Update test calls to 'expect' | Zac Pullar-Strecker | 2020-07-31 | 1 | -22/+36 |
| | | | | |||||
| * | | | Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links | Zac Pullar-Strecker | 2020-07-31 | 655 | -35962/+33791 |
| |\ \ \ | | | | | | | | | | | | | | | | Hasn't fixed tests yet. | ||||
| * | | | | Use From instead of Into in resolver method | Zac Pullar-Strecker | 2020-07-11 | 1 | -8/+8 |
| | | | | | |||||
| * | | | | Remove unintentional changes | Zac Pullar-Strecker | 2020-06-30 | 6 | -16/+13 |
| | | | | | |||||
| * | | | | Format | Zac Pullar-Strecker | 2020-06-30 | 2 | -8/+10 |
| | | | | | |||||
| * | | | | Switch to Path::parse and add tests | Zac Pullar-Strecker | 2020-06-30 | 1 | -671/+667 |
| | | | | | |||||
| * | | | | Don't strip affixes from path links | Zac Pullar-Strecker | 2020-06-30 | 1 | -35/+53 |
| | | | | | |||||
| * | | | | Fix doc attr parsing, fixes links from std/core/alloc | Zac Pullar-Strecker | 2020-06-30 | 1 | -13/+19 |
| | | | | | |||||
| * | | | | Return a resolver for Definition::Local | Zac Pullar-Strecker | 2020-06-30 | 1 | -2/+1 |
| | | | | | |||||
| * | | | | Format & replace todos with 'fixme' | Zac Pullar-Strecker | 2020-06-30 | 5 | -21/+27 |
| | | | | | |||||
| * | | | | Remove old comment, remove unecessary local | Zac Pullar-Strecker | 2020-06-30 | 1 | -4/+1 |
| | | | | | |||||
| * | | | | Update missed heavy test | Zac Pullar-Strecker | 2020-06-30 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Switch to pulldown-cmark, tidy imports | Zac Pullar-Strecker | 2020-06-30 | 5 | -307/+285 |
| | | | | | |||||
| * | | | | Move resolver into impls, work on tests | Zac Pullar-Strecker | 2020-06-30 | 7 | -71/+138 |
| | | | | | |||||
| * | | | | Remove local documentation link rewriting | Zac Pullar-Strecker | 2020-06-30 | 5 | -105/+22 |
| | | | | | |||||
| * | | | | Working intra-doc-links | Zac Pullar-Strecker | 2020-06-30 | 5 | -8/+119 |
| | | | | | |||||
| * | | | | Generate correct symbol filename for relative links | Zac Pullar-Strecker | 2020-06-30 | 3 | -10/+42 |
| | | | | | |||||
| * | | | | Tidy up | Zac Pullar-Strecker | 2020-06-30 | 1 | -67/+53 |
| | | | | | |||||
| * | | | | URL doc outputs in hover | Zac Pullar-Strecker | 2020-06-30 | 2 | -16/+68 |
| | | | | | |||||
| * | | | | Hover doc link rewriting | Zac Pullar-Strecker | 2020-06-30 | 7 | -17/+382 |
| | | | | | |||||
* | | | | | Merge #5863 | bors[bot] | 2020-08-25 | 2 | -25/+17 |
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5863: Cleanup invert-if r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | | | Cleanup invert-if | Aleksey Kladov | 2020-08-25 | 2 | -25/+17 |
|/ / / / | | | | | | | | | | | | | | | | | * stick to trivial factory functions in make * compress the logic for inverting Option/Result | ||||
* | | | | Merge #5861 | bors[bot] | 2020-08-24 | 6 | -591/+16 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5861: Support extern types r=matklad a=jonas-schievink This is a currently unstable feature tracked at https://github.com/rust-lang/rust/issues/43467 Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | | | | Support extern types | Jonas Schievink | 2020-08-24 | 6 | -591/+16 |
|/ / / / | |||||
* | | | | Merge #5859 | bors[bot] | 2020-08-24 | 1 | -19/+19 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5859: Allow rust-analyzer auto publishing r=matklad a=pksunkara Co-authored-by: Pavan Kumar Sunkara <[email protected]> | ||||
| * | | | | Allow rust-analyzer auto publishing | Pavan Kumar Sunkara | 2020-08-24 | 1 | -19/+19 |
| | | | | | |||||
* | | | | | Merge #5841 | bors[bot] | 2020-08-24 | 1 | -0/+8 |
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5841: Gate stream.pipeline workaround on fixed versions of node r=matklad a=Veetaha Fixes the symptom of https://github.com/cdr/code-server/issues/1810 Original report here: https://github.com/rust-analyzer/rust-analyzer/issues/3167#issuecomment-678390564 Thanks to @hjfreyer for precise investigation :D Co-authored-by: Veetaha <[email protected]> | ||||
| * | | | | Gate stream.pipeline workaround on fixed versions of node | Veetaha | 2020-08-21 | 1 | -0/+8 |
| | | | | | |||||
* | | | | | Merge #5733 | bors[bot] | 2020-08-24 | 2 | -119/+617 |
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5733: Fix expand glob import bugs r=matklad a=unexge fixes https://github.com/rust-analyzer/rust-analyzer/issues/5709 TODOs: - [x] Incorrect node replacing <details> <summary>Details</summary> ```rust use crate::{ body::scope::{ExprScopes, ScopeId}, body::Body, builtin_type::BuiltinType, db::DefDatabase, expr::{ExprId, PatId}, generics::GenericParams, item_scope::{BuiltinShadowMode, BUILTIN_SCOPE}, nameres::CrateDefMap, path::*<|>, per_ns::PerNs, visibility::{RawVisibility, Visibility}, AdtId, AssocContainerId, ConstId, ContainerId, DefWithBodyId, EnumId, EnumVariantId, FunctionId, GenericDefId, HasModule, ImplId, LocalModuleId, Lookup, ModuleDefId, ModuleId, StaticId, StructId, TraitId, TypeAliasId, TypeParamId, VariantId, }; ``` becames ```rust use crate::{PathKind, name, name, ModPath}; ``` </details> - [x] Ignoring visibility <details> <summary>Details</summary> ```rust mod foo { mod bar { pub struct Bar; } } use foo::bar::*; fn baz(bar: Bar) {} ``` becames ```rust mod foo { mod bar { pub struct Bar; } } use foo::bar::Bar; fn baz(bar: Bar) {} ``` although mod `bar` is private </details> - [x] Eating attributes Co-authored-by: unexge <[email protected]> | ||||
| * | | | | | Use new `Definition::usages` API in expand glob import | unexge | 2020-08-20 | 1 | -1/+1 |
| | | | | | | |||||
| * | | | | | Fix importing private modules in expand glob import | unexge | 2020-08-20 | 1 | -0/+52 |
| | | | | | | |||||
| * | | | | | Fix importing unused traits in expand glob import | unexge | 2020-08-20 | 1 | -28/+73 |
| | | | | | | |||||
| * | | | | | Use fixme instead of todo | unexge | 2020-08-20 | 2 | -2/+2 |
| | | | | | | |||||
| * | | | | | Use `Definition::find_usages` for finding used items in expand glob import | unexge | 2020-08-20 | 2 | -114/+137 |
| | | | | | |