aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master'Dmitry2020-08-0927-421/+570
|\
| * Merge #5684bors[bot]2020-08-082-10/+67
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 5684: Semantic highlighting for unsafe union field access r=jonas-schievink a=Nashenas88 This change adds support for unions in inference and lowering, then extends on that to add the unsafe semantic modifier on field access only. The `is_possibly_unsafe` function in `syntax_highlighting.rs` could be extended to support fns and static muts so that their definitions are not highlighted as unsafe, but only their usage. Also, each commit of this PR updates the tests. By reviewing the files by commit, it's easy to see how the changes in the code affected the tests. Co-authored-by: Paul Daniel Faria <[email protected]>
| | * Apply unsafe semantic highlighting to union field accessPaul Daniel Faria2020-08-081-10/+56
| | |
| | * Add test for unsafe union field access highlightingPaul Daniel Faria2020-08-071-0/+11
| | |
| * | Mark static mutable names as unsafePaul Daniel Faria2020-08-071-0/+1
| | |
| * | Add test for accessing static mutPaul Daniel Faria2020-08-071-0/+7
| |/
| * align names in makeAleksey Kladov2020-08-051-4/+6
| |
| * Add test showing unresolved module renamePaul Daniel Faria2020-08-041-0/+3
| |
| * Fold trait declarationsLaurențiu Nicola2020-08-031-1/+22
| |
| * Update grammarAleksey Kladov2020-08-012-2/+2
| |
| * Rename DotDotPat -> RestPatAleksey Kladov2020-07-311-1/+1
| |
| * RenameAleksey Kladov2020-07-313-4/+4
| |
| * Rename BindPat -> IdentPatAleksey Kladov2020-07-316-17/+21
| |
| * Allign RecordPat with RecordExprAleksey Kladov2020-07-313-5/+5
| |
| * Rename TypeArgList -> GenericArgListAleksey Kladov2020-07-312-2/+2
| |
| * Rename LambdaExpr -> ClosureExprAleksey Kladov2020-07-311-1/+1
| |
| * Rename TypeRef -> TypeAleksey Kladov2020-07-313-4/+4
| | | | | | | | | | | | | | | | | | | | The TypeRef name comes from IntelliJ days, where you often have both type *syntax* as well as *semantical* representation of types in scope. And naming both Type is confusing. In rust-analyzer however, we use ast types as `ast::Type`, and have many more semantic counterparts to ast types, so avoiding name clash here is just confusing.
| * Use ty to access most TypeRefsAleksey Kladov2020-07-302-2/+2
| |
| * Remove TypeAscriptionOwnerAleksey Kladov2020-07-304-31/+22
| |
| * Finalize attribute grammarAleksey Kladov2020-07-301-6/+4
| |
| * Finalize impl GrammarAleksey Kladov2020-07-306-15/+14
| |
| * Finalize Trait grammarAleksey Kladov2020-07-307-25/+25
| |
| * fmtAleksey Kladov2020-07-301-4/+3
| |
| * Finalize const&static grammarAleksey Kladov2020-07-306-17/+17
| |
| * Rename EnumVariant -> VariantAleksey Kladov2020-07-307-10/+10
| |
| * Rename EnumDef -> EnumAleksey Kladov2020-07-305-9/+9
| |
| * Rename StructDef -> StructAleksey Kladov2020-07-307-32/+32
| |
| * Finalize union grammarAleksey Kladov2020-07-304-4/+4
| |
| * Rename FieldDef -> FieldAleksey Kladov2020-07-308-19/+19
| |
| * Rename RecordLit -> RecordExprAleksey Kladov2020-07-305-10/+10
| |
| * Rename TypeParamList -> GenericParamListAleksey Kladov2020-07-304-6/+6
| |
| * Rename TypeAliasDef -> TypeAliasAleksey Kladov2020-07-306-10/+10
| |
| * Rename FnDef -> FnAleksey Kladov2020-07-3016-86/+86
| |
| * Rename UseItem -> UseAleksey Kladov2020-07-302-4/+4
| |
| * Split ItemList & AssocItemListAleksey Kladov2020-07-303-37/+43
| |
| * Rename ModuleItem -> ItemAleksey Kladov2020-07-292-3/+3
| |
| * Replace rand with oorandomAleksey Kladov2020-07-291-5/+5
| |
| * Rename NomialDef -> AdtDefAleksey Kladov2020-07-291-5/+5
| |
| * Merge #5564bors[bot]2020-07-292-4/+9
| |\ | | | | | | | | | | | | | | | | | | | | | 5564: SSR: Restrict to current selection if any r=davidlattimore a=davidlattimore The selection is also used to avoid unnecessary work, but only to the file level. Further restricting unnecessary work is left for later. Co-authored-by: David Lattimore <[email protected]>
| | * SSR: Rename position and lookup_context to resolve_contextDavid Lattimore2020-07-291-2/+2
| | |
| | * SSR: Restrict to current selection if anyDavid Lattimore2020-07-292-3/+8
| | | | | | | | | | | | | | | The selection is also used to avoid unnecessary work, but only to the file level. Further restricting unnecessary work is left for later.
| * | Allow running more tests at onceKirill Bulatov2020-07-281-54/+110
| |/
* / Added competition for unstable featuresDmitry2020-08-093-8/+24
|/ | | Added xtask for download unstable book from rust repository and codegene for it. Also small changes from lint
* Fold multiline fn parametersAleksey Kladov2020-07-271-1/+13
|
* add completion for rustc lintsEmil Gardström2020-07-271-4/+278
|
* Only display experimental diagnostics when enabledJonas Schievink2020-07-242-7/+18
|
* Add a builder for DiagnosticSinkJonas Schievink2020-07-241-68/+71
|
* SSR: Allow function calls to match method callsDavid Lattimore2020-07-241-0/+3
| | | | | | | | | | | This differs from how this used to work before I removed it in that: a) It's only one direction. Function calls in the pattern can match method calls in the code, but not the other way around. b) We now check that the function call in the pattern resolves to the same function as the method call in the code. The lack of (b) was the reason I felt the need to remove the feature before.
* SSR: Match paths based on what they resolve toDavid Lattimore2020-07-241-1/+11
| | | | Also render template paths appropriately for their context.
* SSR: Pass current file position through to SSR code.David Lattimore2020-07-242-3/+6
| | | | In a subsequent commit, it will be used for resolving paths.