about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-15 10:50:09 +0000
committerbors <bors@rust-lang.org>2023-12-15 10:50:09 +0000
commit96df4943409564a187894018f15f795426dc2e1f (patch)
treec5ad76afae23bf85e0fdff647180aa42f205dafe /compiler/rustc_pattern_analysis/src/constructor.rs
parentd253bf61ad38a59cc579aee688f81a06c31283d3 (diff)
parent09c8fd35ac1e24416207feaae04a499768994498 (diff)
downloadrust-96df4943409564a187894018f15f795426dc2e1f.tar.gz
rust-96df4943409564a187894018f15f795426dc2e1f.zip
Auto merge of #118961 - notriddle:notriddle/varconst, r=GuillaumeGomez
rustdoc-search: fix a race condition in search index loading

`var` declare it in the global scope, and `const` does not. It needs to be declared in global scope.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const

> const declarations do not create properties on [globalThis](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis) when declared at the top level of a script.

Fixes a regression introduced by https://github.com/rust-lang/rust/pull/118910
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
0 files changed, 0 insertions, 0 deletions