html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/6607#issuecomment-1126549148,https://api.github.com/repos/pydata/xarray/issues/6607,1126549148,IC_kwDOAMm_X85DJcac,2448579,2022-05-13T22:19:14Z,2022-05-13T22:19:14Z,MEMBER,"@shoyer This was the regression I ran in to. We could raise an error asking the user to switch to `swap_dims`.

`x` is unindexed while `lon` is a coordinate variable. Then
```
ds = ds.rename(x='lon')
```
makes `lon` a dimension coordinate (though there is no entry in `._indexes`)

<img width=""803"" alt=""image"" src=""https://user-images.githubusercontent.com/2448579/168396214-1f855c99-785f-4e64-a71c-41d159ae0232.png"">
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1235725650