Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use `original_file_range` in `TestDB` | Jonas Schievink | 2020-12-08 | 1 | -9/+3 |
| | |||||
* | Add test for `$crate` in builtin macros | Jonas Schievink | 2020-12-08 | 1 | -0/+28 |
| | | | | Fixes #6716 | ||||
* | Handle macros in `TestDB::check_diagnostics` | Jonas Schievink | 2020-12-08 | 1 | -2/+9 |
| | |||||
* | Escape string literals in Attr::from_src | Lukas Wirth | 2020-12-08 | 2 | -12/+6 |
| | |||||
* | Replace Arc<[str]> with String in attr::Documentation | Lukas Wirth | 2020-12-07 | 1 | -2/+2 |
| | |||||
* | Keep doc attribute order | Lukas Wirth | 2020-12-07 | 1 | -14/+26 |
| | |||||
* | Remove raw pre and suffixes from string attr literals | Lukas Wirth | 2020-12-07 | 1 | -2/+5 |
| | |||||
* | Remove hir_def/docs.rs module | Lukas Wirth | 2020-12-07 | 3 | -83/+22 |
| | |||||
* | Remove documentation query | Lukas Wirth | 2020-12-07 | 3 | -51/+19 |
| | |||||
* | Don't insert blank lines between doc attributes | Lukas Wirth | 2020-12-07 | 1 | -11/+11 |
| | |||||
* | Make `compile_error!` message match upstream rustc | Jonas Schievink | 2020-12-03 | 1 | -1/+1 |
| | | | | It only consists of the argument passed to it | ||||
* | Fix proc macro token mapping | Jonas Schievink | 2020-12-03 | 1 | -2/+2 |
| | |||||
* | Make `compile_error!` lazy and emit a diagnostic | Jonas Schievink | 2020-12-03 | 1 | -0/+6 |
| | |||||
* | Give better diagnostic if `OUT_DIR` is unset | Jonas Schievink | 2020-12-03 | 1 | -0/+3 |
| | |||||
* | Update/Fix tests | Jonas Schievink | 2020-12-03 | 1 | -4/+15 |
| | |||||
* | Propagate eager expansion errors | Jonas Schievink | 2020-12-03 | 2 | -17/+54 |
| | |||||
* | Test macro diagnostics in body lowering | Jonas Schievink | 2020-12-02 | 1 | -0/+41 |
| | |||||
* | Merge #6698 | bors[bot] | 2020-12-02 | 1 | -2/+5 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 6698: Attach macro expansion errors to the right file r=jonas-schievink a=jonas-schievink Previously it attached them to the result of the macro expansion (or, if no result was produced, to the file containing the invocation). Always use the file containing the invocation. This doesn't seem to have any observable difference, but seems better in theory. bors r+ Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | Attach macro expansion errors to the right file | Jonas Schievink | 2020-12-02 | 1 | -2/+5 |
| | | |||||
* | | Merge #6697 | bors[bot] | 2020-12-02 | 2 | -1/+22 |
|\ \ | |/ |/| | | | | | | | | | | | 6697: Don't discard PathKind::Abs information in lower_use::convert_path r=matklad a=Veykril Fixes #6694 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Don't discard PathKind::Abs information in lower_use::convert_path | Lukas Wirth | 2020-12-02 | 2 | -1/+22 |
| | | |||||
* | | Emit unresolved proc macro errors | Jonas Schievink | 2020-12-01 | 2 | -9/+28 |
| | | |||||
* | | Emit macro diagnostics when lowering bodies | Jonas Schievink | 2020-11-30 | 4 | -27/+68 |
|/ | |||||
* | More accurately place proc-macro diagnostic | Jonas Schievink | 2020-11-27 | 2 | -4/+42 |
| | |||||
* | Publish diagnostics for macro expansion errors | Jonas Schievink | 2020-11-27 | 3 | -4/+137 |
| | |||||
* | Don't store `SyntaxNodePtr` in `CrateDefMap` | Jonas Schievink | 2020-11-26 | 2 | -8/+7 |
| | | | | It is volatile across reparses and makes incrementality worse. | ||||
* | Test def map invalidation with #[cfg] below change | Jonas Schievink | 2020-11-26 | 1 | -0/+6 |
| | |||||
* | Improve autoimports on completion speed | Kirill Bulatov | 2020-11-24 | 1 | -5/+77 |
| | | | | | * Ignore modules eaferly * Do less completion string rendering | ||||
* | Cleanup API | Aleksey Kladov | 2020-11-06 | 1 | -10/+11 |
| | |||||
* | Don't stack overflow on circular modules | Aleksey Kladov | 2020-11-04 | 4 | -18/+62 |
| | | | | closes #6453 | ||||
* | Merge #6435 | bors[bot] | 2020-11-03 | 1 | -2/+15 |
|\ | | | | | | | | | | | | | | | 6435: Test Fixture ExplicitRoot + ModuleResolutionRelativePathOutsideRoot. r=matklad a=rickvanprim Updates `module_resolution_relative_path_outside_root` test to check valid paths outside of the root, by moving the root to a subpath so that paths outside of it are possible. If this would be more appropriate as a new test, or if the original check for an invalid path should be left, I'm happy to update. Co-authored-by: James Leitch <[email protected]> | ||||
| * | Feedback. | James Leitch | 2020-11-02 | 1 | -1/+1 |
| | | |||||
| * | Test Fixture ExplicitRoot + ModuleResolutionRelativePathOutsideRoot. | James Leitch | 2020-11-02 | 1 | -2/+15 |
| | | |||||
* | | Remove more unreachable pubs | Aleksey Kladov | 2020-11-02 | 1 | -2/+2 |
| | | |||||
* | | Deny unreachable-pub | Aleksey Kladov | 2020-11-02 | 4 | -20/+20 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | Handle #![cfg] in crate root | Jonas Schievink | 2020-10-26 | 2 | -2/+22 |
|/ | |||||
* | Fix name of InactiveCode diagnostic | Jonas Schievink | 2020-10-23 | 1 | -1/+1 |
| | |||||
* | Diagnose #[cfg]s in bodies | Jonas Schievink | 2020-10-23 | 7 | -94/+213 |
| | |||||
* | Merge #6324 | bors[bot] | 2020-10-23 | 5 | -23/+75 |
|\ | | | | | | | | | | | | | | | | | 6324: Improve #[cfg] diagnostics r=jonas-schievink a=jonas-schievink Unfortunately I ran into https://github.com/rust-analyzer/rust-analyzer/issues/4058 while testing this on https://github.com/nrf-rs/nrf-hal/, so I didn't see much of it in action yet, but it does seem to work. Co-authored-by: Jonas Schievink <[email protected]> Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | Use format_to | Jonas Schievink | 2020-10-23 | 1 | -4/+3 |
| | | | | | | | | Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Emit better #[cfg] diagnostics | Jonas Schievink | 2020-10-22 | 5 | -21/+74 |
| | | |||||
* | | Merge #6307 | bors[bot] | 2020-10-21 | 1 | -2/+45 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | 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]> | ||||
| * | Refactor is_intrinsic_fn_unsafe() and make it private | Francesco Zardi | 2020-10-21 | 1 | -39/+42 |
| | | |||||
| * | Move safe intrinsic tests | Francesco Zardi | 2020-10-21 | 1 | -20/+0 |
| | | |||||
| * | Add whitelist of safe intrinsics | Francesco Zardi | 2020-10-21 | 2 | -2/+62 |
| | | |||||
* | | More detailed message | Jonas Schievink | 2020-10-20 | 1 | -1/+1 |
| | | |||||
* | | Rename UnconfiguredCode -> InactiveCode | Jonas Schievink | 2020-10-20 | 2 | -4/+4 |
| | | |||||
* | | Add a (hint) diagnostic for unconfigured items | Jonas Schievink | 2020-10-20 | 4 | -1/+70 |
| | | |||||
* | | Rename declaration_name -> display_name | Aleksey Kladov | 2020-10-20 | 2 | -8/+4 |
| | | | | | | | | | | | | | | | | Declaration names sounds like a name of declaration -- something you can use for analysis. It empathically isn't, and is just a label displayed in various UI. It's important not to confuse the two, least we accidentally mix semantics with UI (I believe, there's already a case of this in the FamousDefs at least). | ||||
* | | Add descriptions for diagnostics parseable by xtask | Igor Aleksanov | 2020-10-19 | 1 | -0/+9 |
|/ |