rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

minor : fixes for ratoml module

Open alibektas opened this issue 1 year ago • 3 comments

This is a follow-up PR to #17058.

  • Parse errors are reflected as such by defining a new variant called ConfigError::ParseError
  • Amend config::ConfigChange::apply_change.
  • User config can be detected once again.
  • New error collection has been added to store config level agnostic errors.

alibektas avatar Jun 23 '24 18:06 alibektas

https://github.com/rust-lang/rust-analyzer/blob/bd9758bd5d780ab41068aa6e9c3ec0b3d3d593db/crates/rust-analyzer/src/config.rs#L3610-L3612

I would also like to ( since it is relevant to this issue ) ask why this is supposed to be an error. If my assumption is correct it is related to the hyphenated key. If that's the case toml actually allows such keys.

alibektas avatar Jun 23 '24 18:06 alibektas

:umbrella: The latest upstream changes (presumably #17488) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Jun 24 '24 11:06 bors

https://github.com/rust-lang/rust-analyzer/blob/bd9758bd5d780ab41068aa6e9c3ec0b3d3d593db/crates/rust-analyzer/src/config.rs#L3610-L3612

I would also like to ( since it is relevant to this issue ) ask why this is supposed to be an error. If my assumption is correct it is related to the hyphenated key. If that's the case toml actually allows such keys.

Sprry forgot to reply to this. the error here is that sysroot isn't a table config, so the the non-table key being used here should error

Veykril avatar Jul 01 '24 10:07 Veykril

@bors delegate+

Veykril avatar Jul 22 '24 09:07 Veykril

:v: @alibektas, you can now approve this pull request!

If @Veykril told you to "r=me" after making some further change, please make that change, then do @bors r=@Veykril

bors avatar Jul 22 '24 09:07 bors

@bors r+

alibektas avatar Jul 23 '24 14:07 alibektas

:pushpin: Commit 784d46e8147d4a156ef00d963990db59a12799c9 has been approved by alibektas

It is now in the queue for this repository.

bors avatar Jul 23 '24 14:07 bors

:hourglass: Testing commit 784d46e8147d4a156ef00d963990db59a12799c9 with merge 7507695a16eb9b17f24908e337677267d6f6d67d...

bors avatar Jul 23 '24 14:07 bors

:sunny: Test successful - checks-actions Approved by: alibektas Pushing 7507695a16eb9b17f24908e337677267d6f6d67d to master...

bors avatar Jul 23 '24 14:07 bors