sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: E0521 borrowed data escapes with subtyping stuff is confusing
Labels: A-diagnostics,T-compiler

Code that fails:

```rust
struct State<'a, 'b> {
    data: &'a str,
    foo: &'b [u8],
}

impl<'a, 'b> State<'a, 'b> {
    fn id(&self) -> Id<'b> {
        todo!()
    }
}

impl<'b> Foo<'b> for bool {
    fn process<'a>(state: &'a mut State<'a, 'b>) -> bool {
        let id = state.id();
        if Kind::Id(id) == KIND {
            return true;
        } else {
            return false;
        };
    }
    
}

trait Foo<'b>: Sized {
    fn process<'a>(state: &'a mut State<'a, 'b>) -> bool;
}

#[derive(Eq, PartialEq)]
struct Id<'b> {
    data: &'b str,
}

#[derive(Eq, PartialEq)]
enum Kind {
    Id(Id<'static>),
}

const KIND: Kind = Kind::Id(Id { data: "foo" });
```

[Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2630cd61c1b6a3afdfa8d53d7a307559).

The current output is:

```
error[[E0521]](https://doc.rust-lang.org/stable/error-index.html#E0521): borrowed data escapes outside of associated function
  --> src/lib.rs:14:18
   |
12 | impl<'b> Foo<'b> for bool {
   |      -- lifetime `'b` defined here
13 |     fn process<'a>(state: &'a mut State<'a, 'b>) -> bool {
   |                    ----- `state` is a reference that is only valid in the associated function body
14 |         let id = state.id();
   |                  ^^^^^^^^^^
   |                  |
   |                  `state` escapes the associated function body here
   |                  argument requires that `'b` must outlive `'static`

For more information about this error, try `rustc --explain E0521`.
```

The value of `id` clearly does not escape the associated function, and nor does `state`. The problematic span is actually `Kind::Id(id)`, although I would still not use the "escape" wording for this case of putting an explicit lifetime into a `'static` field.
Repository: rust
Issue: bound regions affect path resolution
Labels: A-resolve,T-compiler,C-bug

We should emit the same error message here regardless of whether the projection type contains bound regions.

```rust
fn test<'x>() {
    use std::ops::Deref;
    None::<for<'y> fn(<&'x Option<()> as Deref>::Target::Some)>;
    //~^ ERROR expected type, found variant
    None::<for<'y> fn(<&'y Option<()> as Deref>::Target::Some)>;
    //~^ ERROR ambiguous associated type
}
```

I discovered this in #101947 and added a FIXME comment.

@rustbot label T-compiler C-bug A-resolve
Repository: tauri
Issue: [feat] Add "move to Trash" functionality
Labels: type: feature request

### Describe the problem

I want to give users the option to move a file to Trash via my app (so they can retrieve it if done by accident). Basically Electron's [`trashItem`-functionality](https://www.electronjs.org/docs/latest/api/shell#shelltrashitempath).

Currently I only have [`removeFile`](https://tauri.app/v1/api/js/fs#removefile) which immediately deletes the file and can lead to frustration if the action was done by mistake.

### Describe the solution you'd like

Additional functions called **`trashFile`** and **`trashDir`** (analogous to `removeFile` and `removeDir`) that ... well moves the file/directory into the Trash.

### Alternatives considered

I thought about using `renameFile` to move the file to Trash, but I didn't see a "trashDir" in `path` that would give me the location of the Trash across platforms.

### Additional context

_No response_
Repository: next.js
Issue: Dynamic "import" creates a race condition with initial load requests
Labels: Upstream,examples

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

> This issue is not related to the precise Next version but rather to the `with-msw` example code. 

    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.13.2
      npm: 8.1.2
      Yarn: 1.22.17
      pnpm: 7.4.0
    Relevant packages:
      next: 12.3.4
      eslint-config-next: N/A
      react: 17.0.2
      react-dom: 17.0.2

### Which example does this report relate to?

with-msw

### What browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

- Originally reported in https://github.com/mswjs/msw/issues/1474 (I describe what/why happens [here](https://github.com/mswjs/msw/issues/1474#issuecomment-1323491118)).

I believe due to #25607, MSW example has migrated from `require()` to dynamic imports `import()` in order to tree-shake MSW from production builds. That, however, introduced a different problem: 

- Since `await import()` is async, and there's no top-level `await` to wait for the `initMocks()` function, there's a race condition created between the client-side code and the mocks being imported. 

This race condition manifests upon initial page requests as those may be ignored by MSW since the code is not done resolving `await import()` when those requests happen. 

### Expected Behavior

1. The example imports/requires MSW setup _synchronously_. 
2. Alternatively, the example ensures that the app doesn't run until MSW is imported. This import is not a costly operation, it's just a matter of asynchronicity and awaiting it. 
3. _Side-effect:_ MSW must not be included in the production bundle as an indirect result of this fix/change. 

### To Reproduce

- See the reproduction repo in https://github.com/mswjs/msw/issues/1474
Repository: angular
Issue: $localize runtime error with special .browserslistrc file
Labels: area: i18n

### Which @angular/* package(s) are the source of the bug?

localize

### Is this a regression?

Yes

### Description

Since Angular 15, targeting last 5 iOS major versions using `.browserslistrc` file breaks the generated bundle, throwing `TypeError: $localize is not a function` on runtime.
Just changing `.browserslistrc` to `last 4 iOS major versions` generates valid bundles again.

To reproduce, follow this steps:

> ng new
> ng add @angular/localize

Then update `.browserslistrc` with this content: `last 5 iOS major versions`

Add `"localize": true` in your `angular.json` file, under projects > _yourProject_ > architect > build > options.

Add an `i18n` attribute to some HTML element to enable localization.

And then: 
> ng serve

### Please provide a link to a minimal reproduction of the bug

I haven't been able to reproduce on StackBlitz, it's ignoring my angular.json file

### Please provide the exception or error you saw

```true
TypeError: $localize is not a function
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 15.0.0
Node: 18.12.1
Package Manager: npm 9.1.2
OS: win32 x64

Angular: 15.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.0
@angular-devkit/build-angular   15.0.0
@angular-devkit/core            15.0.0
@angular-devkit/schematics      15.0.0
@schematics/angular             15.0.0
rxjs                            7.5.7
typescript                      4.8.4
```


### Anything else?

_No response_
Repository: PowerToys
Issue: FancyZOnes - Fast layout switching without numeric shortcut
Labels: Needs-Triage

### Description of the new feature / enhancement

Fast switching between layouts without using numpad shortcut. It could be looks like in win11, where on the top of the screen i can see all layouts and select the best for me at the moment.

### Scenario when this would be used?

When user want to fast switch between layouts without configure numeric shortcut, and remember them to use.

### Supporting information

_No response_
Repository: PowerToys
Issue: Mouse pointer wrap
Labels: Idea-New PowerToy,Product-Mouse Utilities

### Description of the new feature / enhancement

When the mouse curser goes of the edge of the monitor, lets say left edge of the leftmost monitor, it wraps around and comes in on the right edge of the right most monitor.
Optionally, idem for top and bottom.

### Scenario when this would be used?

When in a meeting room, you do not always sit on the same side of the monitor being used as main display.
Often leading to confusion as to which side the mouse should go from your private screen to the main display, or vise versa.
By wrapping the mouse it does not matter. Either side of the display is fine.

### Supporting information

This tool accomplishes something similar
https://www.actualtools.com/articles/detail.php?ID=1322
Repository: storybook
Issue: [Feature Request]: Story displaying all material-ui components for mui theme testing
Labels: feature request,needs triage

### Is your feature request related to a problem? Please describe

_No response_

### Describe the solution you'd like

Is there any addon or library that renders all mui components possible in single story? This would be useful for theme testing.

### Describe alternatives you've considered

_No response_

### Are you able to assist to bring the feature to reality?

no

### Additional context

_No response_
Repository: neovim
Issue: Add `on_close` (or whatever) callback option to `sockconnect` function
Labels: enhancement,channels-rpc

### Feature already in Vim?

Kinda. `ch_open`, `sockconnect` alternative of Vim, has `close_cb`

### Feature description

I'd like to detect TCP disconnection to automatically reconnect. In short, I'd like to write Vim script code like

```vim
function! s:connect(address) abort
  let l:chan = sockconnect('tcp', a:address, {
        \ 'rpc': v:true,
        \ 'on_close': { chan -> s:on_close(chan, a:address) },
        \})
  " ...
endfunction

function! s:on_close(chan, address) abort
  echo "Reconnect..."
  call s:connect(a:address)
endfunction
```

Or is there any way to achive this functionality?

Comes from https://github.com/vim-denops/denops.vim/pull/206
Repository: ant-design
Issue: Make font sizes based on rem instead of px (number) for theme
Labels: help wanted,Inactive

### What problem does this feature solve?

Font sizes are today marked as `number` type and therefore only px is allowed. If they can be made as `string` we could either pass a `px` or a `rem` or a `pc` as values to it

### What does the proposed API look like?

`fontSize*: string | undefined`

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Allow multiple extensions to contribute to the same remote explorer view
Labels: feature-request,debt,remote-explorer

Right now we have a 'hack' in the [remote explorer extension](https://github.com/microsoft/vscode-remote-explorer) that calls commands in remote-ssh and remote-tunnels in order to build its tree view. This is complex, makes changes difficult, and introduces dependency issues ([most recently](https://github.com/microsoft/vscode-cli/issues/566)).

Instead, we should allow multiple extensions to contribute to the same view ID in the remote explorer. Then, tunnels and SSH could manage their own explorer views, and simplify things greatly.
Repository: flutter
Issue: Windows compilation failures in flutter/packages tests hang LUCI
Labels: team-infra,P3,triaged-infra

I wasted a lot of time debugging a hang in CI in the Windows LUCI tests in a flutter/packages PR, and eventually discovered that it was because I forgot to update some `#include`s for a file rename (and missed it locally because I still had the file in the old location). This should have failed with a clear error message in CI after a couple of minutes; instead it hung for an hour and a half and provided no useful output.

STR:
- Make a branch from `3b311692c8bb234b9efd7426d3e61aff2bd88d8e` in https://github.com/flutter/packages/pull/2823
- Run `Windows custom_package_tests master - packages` against that branch

Having CI hang with missing log output instead of failing immediately with errors is a huge productivity drain when things go wrong.
Repository: ant-design
Issue: Impossible to add word-wrap to menu title; `white-space: normal` has no effect
Labels: help wanted,Inactive

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/top-navigation-antd-4-24-3-forked-5rcjss?file=/index.css)

### Steps to reproduce

Create a horizontal menu
Try to add word wrap to title text

### What is expected?

When the menu width is smaller than the menu title I would like the title to wrap not to disappear and display the EllipsisOutlined icon.

### What is actually happening?

When the menu width is smaller than the menu title the title is replaced by the EllipsisOutlined icon.

| Environment | Info |
| --- | --- |
| antd | 4.23.4 |
| React | 18.1.0 |
| System | Ubuntu 20.04.5 LTS |
| Browser | Version 107.0.5304.110 (Official Build) (64-bit) |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: Color Picker, bottom of triangles not draggable
Labels: bug,usability,topic:gui

### Godot version

v4.0.beta5.official [89a33d2]

### System information

Windows 10 22H2, OpenGL3, Geforce GTX 550 Ti

### Issue description

On the Color Picker popup, the triangles under the color bars, look like handles that can be dragged.
But nothing happens when dragging on the bottom half of the triangles.

![colorpicker](https://user-images.githubusercontent.com/13420573/203598259-a0804d45-9481-4a40-8c8c-a001b44bc4aa.png)

These seem to be the areas where dragging, does (green border) or doesn't (red border) move the triangles.

![colorpicker-draggable-areas](https://user-images.githubusercontent.com/13420573/203598493-d0cbe7a5-55da-489c-9575-7643cc70181b.png)


### Steps to reproduce

- open the project: `issue, color picker, bottom of triangle not draggable.zip`
- select the `ColorRect` node, either from the top left `Scene` panel or on the 2d viewport
- in the right side `Inspector` panel, click on the `Color` property button, to open the `ColorPicker`
- try dragging the bottom of the triangle, below the slider: `R`

### Expected
The triangle should move with the mouse.

### Observed
Nothing happens.

### Cause
The draggable area includes the color bar, and about four pixels below it,
this means that only the top half of the triangle can be dragged.

### A possible solution
The draggable area should be extended down, to the bottom of the triangle.



### Minimal reproduction project

[issue, color picker, bottom of triangle not draggable.zip](https://github.com/godotengine/godot/files/10077377/issue.color.picker.bottom.of.triangle.not.draggable.zip)
Repository: pytorch
Issue: Finish deprecation of autograd decorator over class objects
Labels: module: autograd,triaged

Finish the deprecation cycle from https://github.com/pytorch/pytorch/pull/89522 after 2 versions of PyTorch have passed.
We can simply make it an error.

cc @ezyang @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7
Repository: rust
Issue: "bad" error message for inferred trait type arguments.
Labels: A-diagnostics,A-visibility,T-compiler

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5d320a5c30a83876d9712461511f7dcf
```rs
fn main() {
    A::run();
}

pub struct A;
    
pub trait Runnable<T> {
    fn run();
}

mod hides_trait {
    use crate::{Runnable, A};
    
    struct DefinetlyNotPublic;

    impl Runnable<DefinetlyNotPublic> for A {
        fn run() {
            println!("impl");
        }
    }
}
```
In the above, the rust complier is smart enough to figure out that the user wants to call `<A as Runnable<DefinetlyNotPublic>>::run()`. It inferres that, and then notices that DefinetlyNotPublic is not public.

You then get this errors:
```
error: type `DefinetlyNotPublic` is private
 --> src/main.rs:2:5
  |
2 |     A::run();
  |     ^^^^^^ private type

error: could not compile `playground` due to previous error
```

Why do I think this is not perfect: The type DefinetlyNotPublic is mentioned, even though there is nothing in the code referring to it. Mentioning the inferred `Runnable<DefinetlyNotPublic>` would be enough. Something like
```
error: type `DefinetlyNotPublic` is private
 --> src/main.rs:2:5
  |
2 |     A::run();
  |     ^^^^^^------ calls `Runnable<DefinetlyNotPublic>::run()` but type parameter `DefinetlyNotPublic` is private.
```
Is this important? Not really, I just felt like reporting it since it is a small improvement.
If it is a quick fix and someone is bored go for it.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"mox692"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: rust
Issue: Upstream support for `--print=target-cpus` to LLVM
Labels: A-LLVM,T-compiler,A-target-specs

The target-cpus feature is only exposed when building llvm through `x.py` because it depends on a patch in our [fork of llvm](https://github.com/rust-lang/llvm-project/branches). As a result, linking to an upstream llvm build with `llvm.llvm-config = "..."` won't work with `--print=target-cpus`. The relevant patch on the current branch is https://github.com/rust-lang/llvm-project/commit/a8f170c5611585510033764926b0c40a6901d001; it would be nice if someone lobbied for that in upstream LLVM.

The last attempt to do that was https://reviews.llvm.org/D93789; the feedback there was to use fillValidCPUArchList() instead.

See below for the original issue description.

---

Hi,

is there a good reason release versions of rust do not support these options?

```
% rustc --print target-cpus
Target CPU help is not supported by this LLVM version.

% rustc --print target-spec-json
error: the `-Z unstable-options` flag must also be passed to enable the target-spec-json print option
```
OK, so let's try adding that option, then:
```
% rustc -Z unstable-options --print target-spec-json
error: the option `Z` is only accepted on the nightly compiler
```
Gah!
Googling a little gave a sliver of hope:
```
% rustc +nightly -Z unstable-options --print target-spec-json
error: the option `Z` is only accepted on the nightly compiler

% 
```
Nope!
```
% rustc --version
rustc 1.65.0
% uname
NetBSD
% uname -m
amd64
% uname -p
x86_64
% uname -r
9.99.104
% 
```

It does, though support `rustc --print target-list`, so this looks a little ... inconsistent?

The `rustc(1)` man page does mention both the above unsupported options without
any qualification.

I suspect this can relatively easily (and cheaply?) be improved?
Repository: PowerToys
Issue: Upgrade installer to Wix v4 (or v5 if it has been out)
Labels: Area-Setup/Install

### Description of the new feature / enhancement

When Wix v4 is released, we should upgrade our installer

In theory, this will resolve https://github.com/microsoft/PowerToys/issues/16095

### Scenario when this would be used?

ARM64 native installers, possible better, easier installer work

### Supporting information

_No response_
Repository: angular
Issue: Log an error when Domino code is in a client bundle
Labels: feature,area: server,feature: in backlog

### Which @angular/* package(s) are relevant/related to the feature request?

platform-server

### Description

Domino is only needed in server bundles, but it may leak into the client bundles accidentally when there is some misconfiguration in an app and some symbols from the `platform-server` are retained. It'd be great to detect this situation and log an error.
Repository: PowerToys
Issue: Less logging for the average user
Labels: Needs-Triage,Area-Logging

### Description of the new feature / enhancement

I was doing some housekeeping on my machine and noticed that PowerToys seems incredibly log happy. 

I doofed and didnt get a screenshot but it was in the order of hundreds of megabytes of logs, and for PowerToys I dont use like Awake. 

Is it really necessary for Mouse Highlight to log that it started every start up, for example?

Is there a way to turn this sort of thing off, or can one be added?

Thanks

### Scenario when this would be used?

Cuts down on logs being written when they are not desired or required.

### Supporting information

_No response_
Repository: flutter
Issue: We shouldn't build dashing from source on every docs build
Labels: framework,P2,c: tech-debt,team-framework,triaged-framework

In https://github.com/flutter/flutter/issues/114906, our docs CI builds began failing trying to build [dashing](https://github.com/technosophos/dashing) from Go source.

We should pre-compile this to a binary vendor it via CIPD.

Note, this is generating a Dash docset, not the api docs: https://github.com/flutter/flutter/blob/master/dev/bots/docs.sh#L47.

We should also consider either not generating this docset (I'm not sure how many, if any, users it has), or separating it into a dependent step.
Repository: godot
Issue: Color picker in editor doesn't allow entering code values
Labels: discussion,topic:gui

### Godot version

4.0 beta 5

### System information

Linux

### Issue description

The color picker in the editor has a button next to the hex value LineEdit that allows to switch between entering hex values and entering code values. When switching to code values, the placeholder text is highlighted, but the LineEdit is inactive and you cannot enter text.

### Steps to reproduce

1. Click on some property in the inspector that will bring up the color picker, for example `modulate` on any CanvasItem.
2. Click on the `#` button next to the hex value to switch to code value.
3. Attempt to enter some text.

### Minimal reproduction project

Not necessary.
Repository: react
Issue: [DevTools Bug]: configure by add webpack entry in document doesn't work
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://github.com/tjx666/awesome-chrome-extension-boilerplate/tree/vue3

### Repro steps

![](https://user-images.githubusercontent.com/41773861/203625364-e3865fa3-fc84-4498-bdea-1375d519a78e.png)

<img width="1440" alt="image" src="https://user-images.githubusercontent.com/41773861/203153962-4f47996d-be2c-438a-b72f-d8a32cbc198c.png">

<img width="1440" alt="image" src="https://user-images.githubusercontent.com/41773861/203154053-a672c033-5299-449a-a3a9-21d1468b655f.png">

related https://github.com/facebook/react/issues/24844#issuecomment-1325511675

I load react-devtools by put in most front of webpack entry: https://github.com/tjx666/awesome-chrome-extension-boilerplate/blob/aad9001069cb19cfc5583615b864740b322b7923/server/utils/entry.ts#L29

1. git clone https://github.com/tjx666/awesome-chrome-extension-boilerplate.git
2. git checkout manifest-v3
3. git reset --hard aad9001069cb19cfc5583615b864740b322b7923
4. pnpm install
5. run pnpm devtools
6. chrome open chrome://extensions/
7. enable chrome extension develop mode
8. load unpack extension folder under project root
9. open options page of this extension
10. then you will see the error in above screenshot.

### How often does this bug happen?

Every time

### DevTools package (automated)

```"react-devtools": "4.26.1"```

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_