about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates
AgeCommit message (Collapse)AuthorLines
2023-03-20:arrow_up: rust-analyzerLaurențiu Nicola-587/+1957
2023-03-13Auto merge of #109069 - lnicola:rust-analyzer-2023-03-13, r=lnicolabors-3018/+12501
:arrow_up: `rust-analyzer` r? `@ghost`
2023-03-13:arrow_up: rust-analyzerLaurențiu Nicola-3018/+12501
2023-03-12Remove uses of `box_syntax` in rustc and toolsclubby789-2/+2
2023-02-24Rename many interner functions.Nicholas Nethercote-1/+1
(This is a large commit. The changes to `compiler/rustc_middle/src/ty/context.rs` are the most important ones.) The current naming scheme is a mess, with a mix of `_intern_`, `intern_` and `mk_` prefixes, with little consistency. In particular, in many cases it's easy to use an iterator interner when a (preferable) slice interner is available. The guiding principles of the new naming system: - No `_intern_` prefixes. - The `intern_` prefix is for internal operations. - The `mk_` prefix is for external operations. - For cases where there is a slice interner and an iterator interner, the former is `mk_foo` and the latter is `mk_foo_from_iter`. Also, `slice_interners!` and `direct_interners!` can now be `pub` or non-`pub`, which helps enforce the internal/external operations division. It's not perfect, but I think it's a clear improvement. The following lists show everything that was renamed. slice_interners - const_list - mk_const_list -> mk_const_list_from_iter - intern_const_list -> mk_const_list - substs - mk_substs -> mk_substs_from_iter - intern_substs -> mk_substs - check_substs -> check_and_mk_substs (this is a weird one) - canonical_var_infos - intern_canonical_var_infos -> mk_canonical_var_infos - poly_existential_predicates - mk_poly_existential_predicates -> mk_poly_existential_predicates_from_iter - intern_poly_existential_predicates -> mk_poly_existential_predicates - _intern_poly_existential_predicates -> intern_poly_existential_predicates - predicates - mk_predicates -> mk_predicates_from_iter - intern_predicates -> mk_predicates - _intern_predicates -> intern_predicates - projs - intern_projs -> mk_projs - place_elems - mk_place_elems -> mk_place_elems_from_iter - intern_place_elems -> mk_place_elems - bound_variable_kinds - mk_bound_variable_kinds -> mk_bound_variable_kinds_from_iter - intern_bound_variable_kinds -> mk_bound_variable_kinds direct_interners - region - intern_region (unchanged) - const - mk_const_internal -> intern_const - const_allocation - intern_const_alloc -> mk_const_alloc - layout - intern_layout -> mk_layout - adt_def - intern_adt_def -> mk_adt_def_from_data (unusual case, hard to avoid) - alloc_adt_def(!) -> mk_adt_def - external_constraints - intern_external_constraints -> mk_external_constraints Other - type_list - mk_type_list -> mk_type_list_from_iter - intern_type_list -> mk_type_list - tup - mk_tup -> mk_tup_from_iter - intern_tup -> mk_tup
2023-02-20:arrow_up: rust-analyzerLaurențiu Nicola-937/+1784
2023-02-13:arrow_up: rust-analyzerLaurențiu Nicola-8623/+9589
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-2/+2
2023-01-09:arrow_up: rust-analyzerarcnmx-5340/+12834
Merge commit '368e0bb32f1178cf162c2ce5f7e10b7ae211eb26'
2022-11-23:arrow_up: rust-analyzerLaurențiu Nicola-836/+1884
2022-11-09Rollup merge of #104211 - lnicola:rust-analyzer-2022-11-09, r=lnicolaMichael Goulet-367/+1137
:arrow_up: rust-analyzer r? ``@ghost``
2022-11-09:arrow_up: rust-analyzerLaurențiu Nicola-367/+1137
2022-11-09Rollup merge of #103919 - nnethercote:unescaping-cleanups, r=matkladDylan DPC-4/+2
Unescaping cleanups Some code improvements, and some error message improvements. Best reviewed one commit at a time. r? ````@matklad````
2022-11-05Remove `unescape_byte_literal`.Nicholas Nethercote-4/+2
It's easy to just use `unescape_literal` + `byte_from_char`.
2022-11-01:arrow_up: rust-analyzerLaurențiu Nicola-234/+608
2022-10-26:arrow_up: rust-analyzerLaurențiu Nicola-953/+1374
2022-10-18:arrow_up: rust-analyzerLaurențiu Nicola-1511/+2972
2022-10-11rename rustc_allocator_nounwind to rustc_nounwindRalf Jung-1/+1
2022-10-11:arrow_up: rust-analyzerLaurențiu Nicola-1047/+2825
2022-10-02Fix duplicate usage of `a` article.Petr Portnov-2/+2
This fixes a typo first appearing in #94624 in which test-macro diagnostic uses "a" article twice. Since I searched sources for " a a " sequences, I also fixed the same issue in a few source files where I found it. Signed-off-by: Petr Portnov <gh@progrm-jarvis.ru>
2022-09-27rustc_typeck to rustc_hir_analysislcnr-4/+4
2022-09-20:arrow_up: rust-analyzerLaurențiu Nicola-594/+1526
2022-09-13:arrow_up: rust-analyzerLaurențiu Nicola-143/+519
2022-09-06:arrow_up: rust-analyzerLaurențiu Nicola-828/+2817
2022-09-01Auto merge of #100210 - mystor:proc_macro_diag_struct, r=eddybbors-55/+4
proc_macro/bridge: send diagnostics over the bridge as a struct This removes some RPC when creating and emitting diagnostics, and simplifies the bridge slightly. After this change, there are no remaining methods which take advantage of the support for `&mut` references to objects in the store as arguments, meaning that support for them could technically be removed if we wanted. The only remaining uses of immutable references into the store are `TokenStream` and `SourceFile`. r? `@eddyb`
2022-08-30:arrow_up: rust-analyzerLaurențiu Nicola-686/+1820
2022-08-23:arrow_up: rust-analyzerLaurențiu Nicola-509/+1959
2022-08-16:arrow_up: rust-analyzerLaurențiu Nicola-5086/+1772
2022-08-09:arrow_up: rust-analyzerLaurențiu Nicola-231/+1386
2022-08-06proc_macro/bridge: send diagnostics over the bridge as a structNika Layzell-55/+4
This removes some RPC when creating and emitting diagnostics, and simplifies the bridge slightly. After this change, there are no remaining methods which take advantage of the support for `&mut` references to objects in the store as arguments, meaning that support for them could technically be removed if we wanted. The only remaining uses of immutable references into the store are `TokenStream` and `SourceFile`.
2022-08-02:arrow_up: rust-analyzerLaurențiu Nicola-228/+744
2022-07-26Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ↵Amos Wenger-210/+617
ra-sync-and-pms-component
2022-07-24Make macros test order-resistantAmos Wenger-2/+7
2022-07-24Sort when iterating through CrateGraphAmos Wenger-18/+15
2022-07-24Sort in DefMap::dump, since HashMap iteration order isn't definedAmos Wenger-34/+33
2022-07-24hir-def tests: sort results before comparing, since FxHashSet iteration ↵Amos Wenger-25/+28
order isn't guaranteed (And, in fact, it failed on i686)
2022-07-24Fix .gitattributes for test_dataAmos Wenger-223/+223
2022-07-24Small fixupsJoshua Nelson-4/+6
- use `path` instead of `paths` - don't mark rust-analyzer as an optional tool - print the cargo command that's run in the proc-macro-test build script this originally was part of a change to fix `test --stage 0 rust-analyzer`, but I'm going to leave that for a separate PR so it's easier to review.
2022-07-24Move cfg attrs up to the mod definitions to disable sourcegenAmos Wenger-32/+7
2022-07-24Disable all source-gen tests at compile timeAmos Wenger-5/+63
2022-07-24Don't run slow tests in Rust CI, only RA CIAmos Wenger-3/+4
2022-07-24Add 'src/tools/rust-analyzer/' from commit ↵Amos Wenger-0/+316409
'977e12a0bdc3e329af179ef3a9d466af9eb613bb' git-subtree-dir: src/tools/rust-analyzer git-subtree-mainline: 3c98486a0cdb6d92f0fca34ffb1fd46c0e498653 git-subtree-split: 977e12a0bdc3e329af179ef3a9d466af9eb613bb