sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: HashSet<K, V> has confusing errors thanks to lax BuildHasher bounds
Labels: A-diagnostics,T-compiler

### Code

```Rust
use std::collections::*;

fn make_map() -> HashSet<String, String> {
    Default::default()
}

fn main() {
    let map = make_map();
    
    // compiles!
    for pair in &map { 
    }

    // expected `String`, found `(_, _)`
    for (k, v) in map {
    }
}

```

Writing `HashSet` instead of `HashMap` does *not* cause immediate error, because `HashSet` is allowed to have two type arguments, and very few methods require it to have a specific type.



### Current output

[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b920b26f507861b9d225f36afa1f2b37)


```text
13 |     for (k, v) in map {
   |         ^^^^^^    --- this is an iterator with items of type `String`
   |         |
   |         expected `String`, found `(_, _)`
```


### Desired output

Ideally Rust should check early that the second type in `HashSet` is supposed to be a `BuildHasher`, and warn about that as soon as `HashSet<_, InvalidType>` is used.

### Rationale and extra context

Lack of bound on `HashSet` itself + type inference make incorrect the type compile in many cases, producing either surprising behavior or confusing errors far away from the mistake.


### Other cases

Similar to #87015 

It's not possible to add actual trait bounds on `HashSet`, but maybe the compiler could be somehow informed that these bounds are always expected to be satisfied, and warn whenever they're not.


### Rust Version

rustc 1.79.0-nightly (3c85e5624 2024-03-18)
Repository: next.js
Issue: App Router Metadata Files uses Vercel Authentication on latest production deployment
Labels: bug

### Link to the code that reproduces this issue

https://github.com/niteshsrivats/vercel-metadata-files-bug-reproduction

### To Reproduce

1. Place image named "opengraph-image.jpg" and "twitter-image.jpg" inside the app folder
2. Deploy on Vercel

### Current vs. Expected behavior

**Expectation:**
1. The image URLs are public
2. The image URLs use the production domain (assigned domain)

**Current:**
1. The image URLs can only be accessed after going through Vercel Authentication
2. The image URLs use the deployment preview domain

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000
Binaries:
  Node: 18.17.1
  npm: 10.0.0
  Yarn: 1.22.19
  pnpm: 8.15.4
Relevant Packages:
  next: 14.1.3
  eslint-config-next: 14.1.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router

### Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

### Additional context

- I'm using the recommended "Standard Deployment Protection" under Vercel Project Settings. 
- I have about ~10 domains and everything redirects to one domain (acme.com). Discovered this bug while testing on acme.com
Repository: next.js
Issue: `useReportWebVitals` doesn't report Next.js custom metrics (such as `Next.js-hydration`)
Labels: bug

### Link to the code that reproduces this issue

https://github.com/keyz/nextjs-web-vitals-repro

### To Reproduce

1. Clone minimal repro (https://github.com/keyz/nextjs-web-vitals-repro/)
2. Run `npm run dev`
3. Observe in console that
    1. The `useReportWebVitals(...)` hook does NOT report custom metrics such as `Next.js-hydration`
    2. The `reportWebVitals(...)` export does, with a different type/shape of output

| `useReportWebVitals` hook | `reportWebVitals` export |
|---------------------------|--------------------------|
| <img width="592" alt="useReportWebVitals" src="https://github.com/vercel/next.js/assets/2268452/b8b7ddde-b948-41e8-b95a-ef0abc475c68"> | <img width="574" alt="reportWebVitals" src="https://github.com/vercel/next.js/assets/2268452/6dafd5f9-2d50-4c3a-bb25-56022ae6ed8a"> |

Here's the code: https://github.com/keyz/nextjs-web-vitals-repro/blob/7fe8f2bdf72224d836d1dc1de3cd5105a0eba2ef/src/pages/_app.tsx#L4-L14

```tsx
// _app.tsx
import type { AppProps } from "next/app";
import { useReportWebVitals } from "next/web-vitals";

export default function App({ Component, pageProps }: AppProps) {
  useReportWebVitals((metric) => {
    console.log("1/ From `useReportWebVitals` hook:", metric);
  });

  return <Component {...pageProps} />;
}

export function reportWebVitals(metric: any) {
  console.log("2/ From `reportWebVitals` export:", metric);
}
```


### Current vs. Expected behavior

1. The docs claim that the `useReportWebVitals` hook reports Next.js custom metrics, but it actually doesn't: https://nextjs.org/docs/pages/api-reference/functions/use-report-web-vitals#custom-metrics
2. There is no mention of `export reportWebVitals() {}` in the docs and whether it's supported or not


### Provide environment information

```bash
$ npx next info

Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:54 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6031
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.21
  pnpm: 8.15.4
Relevant Packages:
  next: 14.1.4
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Other (Deployed)

### Additional context

_No response_
Repository: pytorch
Issue: The latest version of pytorch cannot export onnx with loop operator
Labels: module: onnx,triaged

```python
import torch
class Model(torch.nn.Module):
    def __init__(self, n):
        super().__init__()
        self.n = n
        self.conv = torch.nn.Conv2d(3, 3, 3)
    def forward(self, x):
        for i in range(self.n):
            x = self.conv(x)
        return x
model = Model(2)
model_name = 'model_2'

dummy_input = torch.rand(1, 3, 10, 10)
dummy_output = model(dummy_input)
model_script = torch.jit.script(model)
torch.onnx.export(model_script, dummy_input, f'{model_name}_script.onnx',verbose=True)
```

### Versions

The code is as above. I want to export onnx with loop operator. Pytorch version 1.8 can do it, but the onnx exported by pytorch version 2.1 does not have loop operator.
Repository: rust
Issue: Closure captures not indicated in borrow check error
Labels: A-diagnostics,T-compiler

### Code

```Rust
fn foo(x: &[u32]) -> impl Fn() -> u32 + 'static {
    let p = &x[0];
    move || {
        let y = p + 1;
        y
    }
}

fn main() {}
```


### Current output

```Shell
error: lifetime may not live long enough
 --> src/main.rs:3:5
  |
1 |   fn foo(x: &[u32]) -> impl Fn() -> u32 + 'static {
  |             - let's call the lifetime of this reference `'1`
2 |       let p = &x[0];
3 | /     move || {
4 | |         let y = p + 1;
5 | |         y
6 | |     }
  | |_____^ returning this value requires that `'1` must outlive `'static`
  |
help: consider changing `impl Fn() -> u32 + 'static`'s explicit `'static` bound to the lifetime of argument `x`
  |
1 | fn foo(x: &[u32]) -> impl Fn() -> u32 + '_ {
  |                                         ~~
help: alternatively, add an explicit `'static` bound to this reference
  |
1 | fn foo(x: &'static [u32]) -> impl Fn() -> u32 + 'static {
  |           ~~~~~~~~~~~~~~
```


### Desired output

```Shell
error: lifetime may not live long enough
 --> src/main.rs:3:5
  |
1 |   fn foo(x: &[u32]) -> impl Fn() -> u32 + 'static {
  |             - let's call the lifetime of this reference `'1`
2 |       let p = &x[0];
3 | /     move || {
4 | |         let y = p + 1;
  | |                 ^ capturing this value means the closure cannot outlive `'1`
5 | |         y
6 | |     }
  | |_____^ returning this value requires that `'1` must outlive `'static`
  |
help: consider changing `impl Fn() -> u32 + 'static`'s explicit `'static` bound to the lifetime of argument `x`
  |
1 | fn foo(x: &[u32]) -> impl Fn() -> u32 + '_ {
  |                                         ~~
help: alternatively, add an explicit `'static` bound to this reference
  |
1 | fn foo(x: &'static [u32]) -> impl Fn() -> u32 + 'static {
  |           ~~~~~~~~~~~~~~
```


### Rationale and extra context

The trouble with the current output is that while it indicates that the closure cannot outlive the reference `x`, it does not indicate where in the closure a reference was captured that is tied to `x` and therefore forces it to be short-lived. If the closure is large this may require some care to locate, especially since the captured variable need not be `x` itself and instead is something derived from it.

### Other cases

_No response_

### Rust Version

```Shell
rustc 1.78.0-nightly (c67326b06 2024-03-15)
binary: rustc
commit-hash: c67326b063bd27ed04f306ba2e372cd92e0a8751
commit-date: 2024-03-15
host: x86_64-unknown-linux-gnu
release: 1.78.0-nightly
LLVM version: 18.1.0
```


### Anything else?

_No response_
Repository: ant-design
Issue: Placeholder DatePicker When Mode multiple
Labels: 🐛 Bug,Inactive

### Reproduction link

[https://ant.design/components/date-picker](https://ant.design/components/date-picker)

### Steps to reproduce

- Datepicker have placeholder
- Add mode multiple Datepicker
- Do not show placeholder

### What is expected?

Show placeholder

### What is actually happening?

Not show Placeholder

| Environment | Info |
| --- | --- |
| antd | 5.15.3 |
| React | 18.2.0 |
| System | MacOs |
| Browser | chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Disable multi selection for notebook outline view
Labels: bug,notebook-toc-outline

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->

It seems we have multi selection in Notebook Outline View, but the Outline view for text file doesn't have this.

![image](https://github.com/microsoft/vscode/assets/876920/6583f969-1253-4385-b7e2-d9e882372ba8)
Repository: ant-design
Issue: Cascader maxTagPlaceholder 的 option 里的 value 值有点奇特，是否是预期行为
Labels: 🐛 Bug,Inactive,unconfirmed

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/react-b4opc5?file=demo.tsx)

### Steps to reproduce

查看控制台打印

### What is expected?

value 是个数组

### What is actually happening?

value 是字符串，例如 "light__RC_CASCADER_SPLIT__0"，有个 valueCells 才是 ["light", 0]

| Environment | Info |
| --- | --- |
| antd | 5.15.3 |
| React | latest |
| System | mac |
| Browser | chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Confusing translation in Keyboard Manager
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Area-Localization,Loc-Sent To Team,Issue-Translation

### Microsoft PowerToys version

0.79.0

### Utility with translation issue

Keyboard Manager

### 🌐 Language affected

Chinese

### ❌ Actual phrase(s)

#### 1
![IMG1](https://github.com/microsoft/PowerToys/assets/66721082/18d20b78-e66b-4e2c-b71b-62375ce4e28c)

允许 **“和弦”**

#### 2
![IMG2](https://github.com/microsoft/PowerToys/assets/66721082/3cf356ba-be31-48dd-b724-4313ba042594)

**海拔**

### ✔️ Expected phrase(s)

#### 1

* 连续键
* 组合键
* 连续快捷键
* 组合快捷键

Either is okay

#### 2

权限

### ℹ Why is the current translation wrong

#### 1

The word "chord" here usually means a sequence of keys, for example, Ctrl+K, Ctrk+C in Visual Studio. So translate it as "sequence" or "combination".

#### 2

Current word means the vertical distance to the sea level.
Repository: ui
Issue: [Bug]: Type error in Dropdown Menu and Menubar
Labels: bug

### Describe the bug

After installing the DropdownMenu component from `shadcn/ui`, there are a lot of type errors which stops the application from building (NextJS application to be specific)

The type errors also occur when we try to use `DropdownMenuItem` in our code like below

```
<DropdownMenu>
    <DropdownMenuTrigger>Open</DropdownMenuTrigger>
    <DropdownMenuContent>
        <DropdownMenuLabel>My Account</DropdownMenuLabel>
        <DropdownMenuSeparator />
        <DropdownMenuItem>Profile</DropdownMenuItem>
        <DropdownMenuItem>Billing</DropdownMenuItem>
        <DropdownMenuItem>Team</DropdownMenuItem>
        <DropdownMenuItem>Subscription</DropdownMenuItem>
    </DropdownMenuContent>
</DropdownMenu>
```

And the error reads as follow
`Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes & Omit<DropdownMenuLabelProps & RefAttributes<HTMLDivElement>, "ref"> & { ...; } & RefAttributes<...>'.`

### Affected component/components

DropdownMenu, Menubar

### How to reproduce

1. Install DropdownMenu component `npx shadcn-ui@latest add dropdown-menu`
2. Navigate to `@/components/ui/dropdown-menu`

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Browser: Chrome Version 122.0.6261.131 (Official Build) (64-bit)
NextJS Version 14.1.4
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: PowerToys
Issue: PowerRename Chinese translation: Use Boost library
Labels: Issue-Bug,Area-Localization,Product-PowerRename,Loc-Sent To Team,Issue-Translation

### Microsoft PowerToys version

0.79.0

### Utility with translation issue

PowerRename

### 🌐 Language affected

Chinese

### ❌ Actual phrase(s)

使用增强库
![小Q截图-20240325152009](https://github.com/microsoft/PowerToys/assets/5792548/bd028ceb-b529-4e18-bfd2-05d0ce4a3c3a)


### ✔️ Expected phrase(s)

使用Boost库
![小Q截图-20240325152034](https://github.com/microsoft/PowerToys/assets/5792548/d18697c7-7b55-47a9-934f-2db195f615b4)


### ℹ Why is the current translation wrong

Boost is a the name of a library and should not be translated.
Repository: tensorflow
Issue: Conv2D computes wrongly in Windows OS
Labels: stat:awaiting tensorflower,type:bug,subtype:windows,subtype:cpu-intel,TF 2.16

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

tf 2.16

### Custom code

Yes

### OS platform and distribution

Windows 10

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

On Windows OS, Conv2D generates a wrong output in some cases, while performs correctly on some others.
This error does not occur on Linux OS, even with the same code.

An wrong execution example:
![图片](https://github.com/tensorflow/tensorflow/assets/97206823/51fab71a-9bc6-42a9-ab67-19a6c9ec50d0)

You can tell that the result `l(x)` has a wrong shape.

I notice that an exisiting issue #63860 points out the similar error in Conv3D. I guess Conv2D and Conv3D have similar problem since they have the same parent class BaseConv.

### Standalone code to reproduce the issue

```shell
#This test case works fine on linux OS, while goes wrongly on Windows.


from keras.layers import Conv2D
import numpy as np

x=np.random.rand(1,2,2,1)
print(l(x).shape)
print(l.compute_output_shape(x.shape))
```


### Relevant log output

```shell
TensorShape([1, 2, 2, 1])
(1, 0, 0, 1)
```
Repository: angular
Issue: Add global configuration for the default change detection and styles encapsulation settings
Labels: area: compiler

### Which @angular/* package(s) are relevant/related to the feature request?

compiler-cli

### Description

At the moment as a developer when I want to use `ChangeDetectionStrategy.OnPush` in the whole project, I need to add it to every component. It generates one more line and additional import and it's not intuitive. 

Would be great to have an option to set it globally and reduce number of lines in `@Component` decorator.

### Proposed solution

As far as I understand, it needs to set during compilation process, so probably the most obvious place to put configuration is `angular.json`

```
{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "experiment-signal-input": {
      // ...
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "changeDetection": "OnPush", // <---
            "encapsulation": "None", // <---
            "outputPath": "dist/experiment-signal-input",
            // ...
          },
          "defaultConfiguration": "production"
        }
      }
    }
  }
}
```

The main problem that I see at the moment is that it shouldn't affect third party libraries from node_modules.

### Alternatives considered

Make the `ChangeDetectionStrategy.OnPush` as default, but it will harm onboarding and it sounds bad that `ChangeDetectionStrategy.Default` is not the default option. So I wouldn't consider it :D
Repository: pytorch
Issue: In PyTorch v2.1.2, within fmha_api.cpp, the mha_fwd() function redundantly checks cu_seqlens_k
Labels: triaged,module: sdpa

### 🐛 Describe the bug

https://github.com/pytorch/pytorch/blob/v2.1.2/aten/src/ATen/native/transformers/cuda/flash_attn/fmha_api.cpp#L247-L248  
cc @jbschlosser @bhosmer @cpuhrsch @erichan1 @drisspg @mikaylagawarecki

### Versions

torch version == v2.1.2
Repository: vscode
Issue: Support to file issue from the extensions page
Labels: feature-request,issue-reporter,extensions-editor

Testing #208468

* open issue QP
* select the info icon for an extension
* the extensions page/editor open which is nice
* it would be nicer if it allows me to (continue) file an issue right from with in
Repository: ant-design
Issue: DatePicker Mask breaks Mobile
Labels: Inactive,📱Mobile Device

### Reproduction link

[https://ant.design/components/date-picker](https://ant.design/components/date-picker)

### Steps to reproduce

1. Open documentation "Mask Format" part 
2. Press the datepicker
3. Keyboard opens, but any keyboard press doesn't do anything

### What is expected?

When pressing a number it should fill a part of the date.

### What is actually happening?

Nothing is changing

| Environment | Info |
| --- | --- |
| antd | 5.15.4 |
| React | 18 (antd docs) |
| System | Android 14 |
| Browser | Chrome Stable |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Clear automatically inserted repro steps
Labels: bug,issue-reporter

Testing #208468

* use the issue-QP flow to report an issue again python
* now select a different extension
* the steps to reproduce aren't cleared. 

IMO something that I haven't typed is OK to be cleared. The steps don't make sense for the newly selected extension and I shouldn't have to "work" to clear it
Repository: flutter
Issue: [go_router][documentation] Missing breadcrumb from ShellRoute to StatefulShellRoute in "Configuration" docs
Labels: d: api docs,P3,p: go_router,team-go_router,triaged-go_router

### Use case

Developers reading the "Configuration" topic in the docs do get to read about the `ShellRoute`, however breadcrumbs to `StatefulShellRoute` are missing.

### Proposal

Add a breadcrumb for `StatefulShellRoute` to https://pub.dev/documentation/go_router/latest/topics/Configuration-topic.html
so that it shows up on the right under `ShellRoute` in the `CLASSES` list.

Also add a breadcrumb to `StatefulShellRoute` in the docs for `ShellRoute` at https://pub.dev/documentation/go_router/latest/go_router/ShellRoute-class.html to make it more discoverable.
Repository: neovim
Issue: `<C-i>` buffer mapping overrides `<Tab>` global mapping
Labels: bug,mappings

### Problem

when `<C-i>` (or any other term shortcut with special meaning) is mapped for a buffer, it also overrides `<Tab>` global mapping (not buffer specific)

### Steps to reproduce

`nvim -u NONE -i NONE --clean foo -c ':inoremap <tab> tab' -c ':inoremap <buffer> <c-i> c-i' -c :startinsert`

press <kbd>Tab</kbd> or <kbd>Ctrl+i</kbd> - both print `c-i`

### Expected behavior

`c-i` is printed only when `<C-i>` is pressed - in Vim `<tab>` prints `c-i` only if it wasn't mapped at all

### Neovim version (nvim -v)

0.9.5

### Vim (not Nvim) behaves the same?

no, vim 9.1

### Operating system/version

Archlinux 1.0

### Terminal name/version

foot 1.13.1

### $TERM environment variable

foot-ext-underline

### Installation

pacman
Repository: vscode
Issue: Inline chat should offer capability to go to previous results
Labels: feature-request,inline-chat

Testing #208409

I pressed the regenerate button but that generate a worse result. I would have loved to go back to my previous results.
Repository: vscode
Issue: Inline Suggestions: Implement Logging
Labels: feature-request,inline-completions

Would help to investigate #208408 and other bugs.
Repository: vscode
Issue: Strange UI after modifying input text
Labels: under-discussion,inline-chat

Testing #208409

Steps:

- open inline chat
- I typed `add additional capabilities` <return>
- Change the input field to
- `add additional capabilities and add assert library` <return>

I ended up with this:

![Image](https://github.com/microsoft/vscode/assets/1931590/48836375-c137-441d-9a75-007429cc4049)