Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | internal: move diagnostics infra to hir | Aleksey Kladov | 2021-06-12 | 1 | -353/+6 |
| | |||||
* | minor: it's Parameter, not Argument | Aleksey Kladov | 2021-05-31 | 1 | -3/+3 |
| | |||||
* | fix: avoid panics in match case diagnostic | Aleksey Kladov | 2021-05-31 | 1 | -108/+33 |
| | |||||
* | internal: move diagnostics to hir | Aleksey Kladov | 2021-05-25 | 1 | -4/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | The idea here is to eventually get rid of `dyn Diagnostic` and `DiagnosticSink` infrastructure altogether, and just have a `enum hir::Diagnostic` instead. The problem with `dyn Diagnostic` is that it is defined in the lowest level of the stack (hir_expand), but is used by the highest level (ide). As a first step, we free hir_expand and hir_def from `dyn Diagnostic` and kick the can up to `hir_ty`, as an intermediate state. The plan is then to move DiagnosticSink similarly to the hir crate, and, as final third step, remove its usage from the ide. One currently unsolved problem is testing. You can notice that the test which checks precise diagnostic ranges, unresolved_import_in_use_tree, was moved to the ide layer. Logically, only IDE should have the infra to render a specific range. At the same time, the range is determined with the data produced in hir_def and hir crates, so this layering is rather unfortunate. Working on hir_def shouldn't require compiling `ide` for testing. | ||||
* | decl_check: follow test style guide | Jonas Schievink | 2021-04-13 | 1 | -60/+59 |
| | |||||
* | address review feedback | Jade | 2021-04-13 | 1 | -21/+35 |
| | |||||
* | decl_check: consider outer scopes' allows | Jade | 2021-04-08 | 1 | -10/+122 |
| | | | | | | | | | Fix #8417. Also makes it less noisy about no_mangle annotated stuff the user can do nothing about. Note: this still is broken with bitfield! macros. A repro in an ignore test is included here. I believe this bug is elsewhere, and I don't think I can work around it here. | ||||
* | Access a body's block def maps via a method | Jonas Schievink | 2021-04-04 | 1 | -2/+1 |
| | |||||
* | Use bitflags to compress function properties | Jonas Schievink | 2021-04-03 | 1 | -1/+1 |
| | | | | Very minor savings, only 1 MB or so | ||||
* | Fix infinite recursion when computing diagnostics for inner items | Jonas Schievink | 2021-03-18 | 1 | -1/+14 |
| | |||||
* | avoid converting types into themselves via .into() (clippy::useless-conversion) | Matthias Krüger | 2021-03-17 | 1 | -9/+9 |
| | | | | example: let x: String = String::from("hello world").into(); | ||||
* | Introduce FunctionQualifier for hir::FunctionData | oxalica | 2021-03-15 | 1 | -1/+1 |
| | |||||
* | Use `body.block_scopes` to validate inner items | Jonas Schievink | 2021-03-09 | 1 | -3/+8 |
| | |||||
* | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 1 | -7/+4 |
| | |||||
* | Cleanup decl_check | Lukas Wirth | 2021-02-05 | 1 | -160/+119 |
| | |||||
* | decl_check: don't pass `db` around so often | Jonas Schievink | 2020-12-17 | 1 | -54/+49 |
| | |||||
* | Use mark/hit | Jonas Schievink | 2020-12-10 | 1 | -0/+7 |
| | |||||
* | Ignore extern items in incorrect-case check | Jonas Schievink | 2020-12-10 | 1 | -0/+19 |
| | |||||
* | Improve decl_check module readability | Igor Aleksanov | 2020-11-03 | 1 | -6/+6 |
| | |||||
* | Remove numbers from comments in decl_check.rs | Igor Aleksanov | 2020-11-03 | 1 | -15/+15 |
| | |||||
* | Check for allow(..) attributes for case diagnostic | Igor Aleksanov | 2020-11-03 | 1 | -25/+91 |
| | |||||
* | Properly identify camel cased acronyms as UpperCamelCase | Arif Roktim | 2020-10-21 | 1 | -2/+26 |
| | |||||
* | Keep SyntaxNodePtr::range private | Igor Aleksanov | 2020-10-12 | 1 | -2/+11 |
| | |||||
* | Replace 'if let' with 'match' in decl_check.rs | Igor Aleksanov | 2020-10-12 | 1 | -30/+33 |
| | |||||
* | Add to_upper_snake_case function to stdx | Igor Aleksanov | 2020-10-12 | 1 | -2/+2 |
| | |||||
* | Fix code style issues | Igor Aleksanov | 2020-10-12 | 1 | -2/+6 |
| | |||||
* | Fix issues with match arm bindings | Igor Aleksanov | 2020-10-12 | 1 | -7/+12 |
| | |||||
* | Code style adjustments | Igor Aleksanov | 2020-10-12 | 1 | -2/+50 |
| | |||||
* | Make incorrect case diagnostic work inside of functions | Igor Aleksanov | 2020-10-12 | 1 | -32/+245 |
| | |||||
* | Add diagnostics for enum names and variants | Igor Aleksanov | 2020-10-12 | 1 | -1/+146 |
| | |||||
* | Check structure fields to be snake_case | Igor Aleksanov | 2020-10-12 | 1 | -46/+65 |
| | |||||
* | Add check for structure names to be CamelCase | Igor Aleksanov | 2020-10-12 | 1 | -0/+138 |
| | |||||
* | Extract helper functions into a separate module | Igor Aleksanov | 2020-10-12 | 1 | -29/+20 |
| | |||||
* | Add checks for function parameters | Igor Aleksanov | 2020-10-12 | 1 | -6/+91 |
| | |||||
* | Create basic support for names case checks and implement function name case ↵ | Igor Aleksanov | 2020-10-12 | 1 | -0/+173 |
check |