Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Cast to ExprStmt, style fixes | ivan770 | 2020-12-10 | 1 | -6/+5 | |
| | | ||||||
| * | Apply rustfmt changes | ivan770 | 2020-12-09 | 1 | -9/+8 | |
| | | ||||||
| * | Apply suggestions from code review | ivan770 | 2020-12-09 | 1 | -17/+20 | |
| | | | | | | Co-authored-by: bjorn3 <[email protected]> | |||||
| * | Format code | ivan770 | 2020-12-08 | 1 | -4/+13 | |
| | | ||||||
| * | Remove use via super | ivan770 | 2020-12-08 | 1 | -3/+1 | |
| | | ||||||
| * | Remove this semicolon | ivan770 | 2020-12-08 | 2 | -1/+50 | |
| | | ||||||
* | | 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 | |
| | | ||||||
* | | Implement HirDisplay for FnSig | Jonas Schievink | 2020-12-09 | 1 | -20/+23 | |
| | | | | | | | | This could be useful for diagnostics, but isn't used right now | |||||
* | | Introduce anchored_path | Aleksey Kladov | 2020-12-09 | 1 | -3/+5 | |
|/ | | | | | They allow to represent paths like `#[path = "C:\path.rs"] mod foo;` in a lossless cross-platform & network-transparent way. | |||||
* | Upgrade Chalk | Florian Diebold | 2020-12-07 | 6 | -14/+126 | |
| | | | | | | | Also make overflow depth and max type size configurable through env variables. This can be helpful at least for debugging. Fixes #6628. | |||||
* | Use correct, full substs for self type in impl | Florian Diebold | 2020-12-04 | 2 | -1/+26 | |
| | | | | | | | | Without arbitrary self types, the self type could never refer to the method type parameters, so this wasn't a problem; but with arbitrary self types, it can. This fixes the crash from #6668; but it doesn't make method resolution work for these methods. | |||||
* | Check structs for match exhaustiveness | Lukas Wirth | 2020-11-24 | 1 | -31/+120 | |
| | ||||||
* | Add middle ellipsis missing arm text | Lukas Wirth | 2020-11-24 | 1 | -0/+14 | |
| | ||||||
* | Handle ellipsis in tuple patterns in match exhaustiveness checking | Lukas Wirth | 2020-11-24 | 1 | -42/+41 | |
| | ||||||
* | Properly infer tuple struct patterns when encountering ellipsis | Lukas Wirth | 2020-11-24 | 2 | -9/+70 | |
| | ||||||
* | Properly infer tuple patterns when encountering ellipsis | Lukas Wirth | 2020-11-24 | 2 | -8/+64 | |
| | ||||||
* | Replace RacyFlag with OnceCell | Aleksey Kladov | 2020-11-11 | 1 | -3/+4 | |
| | ||||||
* | 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 | |
| | ||||||
* | Remove more unreachable pubs | Aleksey Kladov | 2020-11-02 | 5 | -21/+21 | |
| | ||||||
* | Deny unreachable-pub | Aleksey Kladov | 2020-11-02 | 9 | -67/+68 | |
| | | | | | | | | It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034. | |||||
* | Upgrade Chalk to 0.36 | Florian Diebold | 2020-10-30 | 4 | -316/+176 | |
| | | | | Quite a few changes, because Chalk got rid of the `ApplicationTy` nesting. | |||||
* | refactor(hir_ty): do not override DisplayTarget in hir_fmt | Benjamin Coenen | 2020-10-28 | 1 | -45/+68 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | do not use associated types placeholder for inlay hint | Benjamin Coenen | 2020-10-28 | 4 | -8/+17 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | do not use associated types placeholder for inlay hint | Benjamin Coenen | 2020-10-28 | 3 | -60/+44 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | do not use associated types placeholder for inlay hint | Benjamin Coenen | 2020-10-28 | 5 | -155/+87 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | do not use associated types placeholder for inlay hint | Benjamin Coenen | 2020-10-28 | 2 | -31/+102 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | do not use associated types placeholder for inlay hint #6191 | Benjamin Coenen | 2020-10-27 | 3 | -19/+61 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | Fix case where non FnOnce variables is marked callable | GrayJack | 2020-10-26 | 1 | -0/+13 | |
| | ||||||
* | Merge #6350 | bors[bot] | 2020-10-26 | 1 | -126/+123 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 6350: Make IncorrectDiagnostic match rustc by copying rustc's code. r=popzxc a=ArifRoktim This closes #6343 and closes #6345. The old algorithm which used a `DetectedCase` enum, didn't match how rustc thinks of cases. Some inputs can be interpreted as more than 1 case depending on the situation. For example, to rustc: - `ABCD`: Can be both camel case and upper snake case - `X86_64`: Can be both camel case and upper snake case I could've made `detect_case` return a collection of `DetectedCase` and then modified the other code as such, but I think using the same code rustc uses is simpler and a surefire way to achieve the same diagnostics as rustc. Co-authored-by: Arif Roktim <[email protected]> | |||||
| * | Make IncorrectDiagnostic match rustc by copying rustc's code. | Arif Roktim | 2020-10-25 | 1 | -126/+123 | |
| | | ||||||
* | | Get rid of FAKE_PLACEHOLDER | Florian Diebold | 2020-10-25 | 1 | -8/+9 | |
|/ | | | | | The lifetime placeholder can be replaced by the static lifetime, and for array sizes we should just be using a concrete const. | |||||
* | Improve Chalk debugging | Florian Diebold | 2020-10-23 | 1 | -7/+23 | |
| | | | | | | - add panic context for the trait goal if CHALK_DEBUG is set - print the Chalk program even if we're panicking - log goal/solution while TLS is still set | |||||
* | Merge #6319 | bors[bot] | 2020-10-22 | 2 | -3/+34 | |
|\ | | | | | | | | | | | | | | | 6319: Properly identify camel cased acronyms as UpperCamelCase r=popzxc a=ArifRoktim This closes #6305. Co-authored-by: Arif Roktim <[email protected]> | |||||
| * | Properly identify camel cased acronyms as UpperCamelCase | Arif Roktim | 2020-10-21 | 2 | -3/+34 | |
| | | ||||||
* | | Merge #6307 | bors[bot] | 2020-10-21 | 1 | -0/+18 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | 6307: Add whitelist of safe intrinsics r=frazar a=frazar This PR should fix #5996, where intrinsic operations where all marked as unsafe. I'm rather new to this codebase, so I might be doing something *very* wrong. Please forgive me! In particular, I'm not sure how to "check that we are in extern `rust-intrinsics`" as mentioned [in this comment](https://github.com/rust-analyzer/rust-analyzer/issues/5996#issuecomment-709234802). Co-authored-by: Francesco Zardi <[email protected]> | |||||
| * | Move safe intrinsic tests | Francesco Zardi | 2020-10-21 | 1 | -0/+18 | |
| | | ||||||
* | | Add descriptions for diagnostics parseable by xtask | Igor Aleksanov | 2020-10-19 | 1 | -0/+55 | |
|/ | ||||||
* | binary operator overload type inference: add test mark | Roland Ruckerbauer | 2020-10-14 | 2 | -0/+6 | |
| | ||||||
* | Implement binary operator overloading type inference | Roland Ruckerbauer | 2020-10-13 | 3 | -5/+120 | |
| | ||||||
* | Keep SyntaxNodePtr::range private | Igor Aleksanov | 2020-10-12 | 2 | -4/+13 | |
| | ||||||
* | 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 | 2 | -4/+3 | |
| | ||||||
* | Fix compilation error | Igor Aleksanov | 2020-10-12 | 1 | -2/+1 | |
| | ||||||
* | Apply suggestions from code review | Igor Aleksanov | 2020-10-12 | 1 | -2/+2 | |
| | | | Co-authored-by: Lukas Wirth <[email protected]> | |||||
* | Fix code style issues | Igor Aleksanov | 2020-10-12 | 2 | -3/+7 | |
| | ||||||
* | Fix issues with match arm bindings | Igor Aleksanov | 2020-10-12 | 1 | -7/+12 | |
| | ||||||
* | Code style adjustments | Igor Aleksanov | 2020-10-12 | 3 | -8/+88 | |
| |