]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agoRollup merge of #97507 - jyn514:download-rustfmt, r=Mark-Simulacrum
Matthias Krüger [Wed, 8 Jun 2022 16:15:01 +0000 (18:15 +0200)]
Rollup merge of #97507 - jyn514:download-rustfmt, r=Mark-Simulacrum

Move rustfmt downloads from bootstrap.py to rustbuild

- Allow verifying CI downloads using src/stage0.json
- Change download functions not to hard-code `ci-artifacts.rust-lang.org`
- Change `format::format` to take a `Builder` so it has access to `download_component`. I think we may want to reconsider the distinction between Build and Builder at some point; I don't think it's particularly useful.
- Move rustfmt downloads out of bootstrap.py

Fixes https://github.com/rust-lang/rust/issues/95136. Helps with https://github.com/rust-lang/rust/issues/94829. This is based on https://github.com/rust-lang/rust/pull/96687 for simplicity.

2 years agoAuto merge of #97873 - Dylan-DPC:rollup-g6ptsdq, r=Dylan-DPC
bors [Wed, 8 Jun 2022 13:20:45 +0000 (13:20 +0000)]
Auto merge of #97873 - Dylan-DPC:rollup-g6ptsdq, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #97276 (Stabilize `const_intrinsic_copy`)
 - #97763 (Allow ptr_from_addr_cast to fail)
 - #97846 (Specify DWARF alignment in bits, not bytes.)
 - #97848 (Impl Traits lowering minor refactors)
 - #97865 (remove `BorrowckMode`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

2 years agoRollup merge of #97865 - lcnr:bb-BorrowckMode, r=Dylan-DPC
Dylan DPC [Wed, 8 Jun 2022 11:43:21 +0000 (13:43 +0200)]
Rollup merge of #97865 - lcnr:bb-BorrowckMode, r=Dylan-DPC

remove `BorrowckMode`

dead code after #95565

2 years agoRollup merge of #97848 - spastorino:universal-lowering-refactor-1, r=cjgillot
Dylan DPC [Wed, 8 Jun 2022 11:43:20 +0000 (13:43 +0200)]
Rollup merge of #97848 - spastorino:universal-lowering-refactor-1, r=cjgillot

Impl Traits lowering minor refactors

This are unrelated changes on my RPIT refactor that may be better to merge before opening the main PR.

r? `@cjgillot`

cc `@nikomatsakis`

2 years agoRollup merge of #97846 - pcwalton:align-bits, r=michaelwoerister
Dylan DPC [Wed, 8 Jun 2022 11:43:19 +0000 (13:43 +0200)]
Rollup merge of #97846 - pcwalton:align-bits, r=michaelwoerister

Specify DWARF alignment in bits, not bytes.

In DWARF, alignment of types is specified in bits, as is made clear by the
parameter name `AlignInBits`. However, `rustc` was incorrectly passing a byte
alignment. This commit fixes that.

This was noticed in upstream LLVM when I tried to check in a test consisting of
LLVM IR generated from `rustc` and it triggered assertions [1].

[1]: https://reviews.llvm.org/D126835

2 years agoRollup merge of #97763 - RalfJung:fallible-cast, r=lcnr
Dylan DPC [Wed, 8 Jun 2022 11:43:18 +0000 (13:43 +0200)]
Rollup merge of #97763 - RalfJung:fallible-cast, r=lcnr

Allow ptr_from_addr_cast to fail

This is needed for https://github.com/rust-lang/miri/issues/2133: I would like to have an option in Miri to error when a int2ptr cast is executed.

2 years agoRollup merge of #97276 - JohnTitor:stabilize-const-intrinsic-copy, r=dtolnay
Dylan DPC [Wed, 8 Jun 2022 11:43:18 +0000 (13:43 +0200)]
Rollup merge of #97276 - JohnTitor:stabilize-const-intrinsic-copy, r=dtolnay

Stabilize `const_intrinsic_copy`

FCP has been completed: https://github.com/rust-lang/rust/issues/80697#issuecomment-1059825428
Closes #80697

2 years agoStabilize `const_intrinsic_copy`
Yuki Okushi [Sun, 22 May 2022 12:29:54 +0000 (21:29 +0900)]
Stabilize `const_intrinsic_copy`

2 years agoAuto merge of #94732 - nnethercote:infallible-encoder, r=bjorn3
bors [Wed, 8 Jun 2022 10:24:12 +0000 (10:24 +0000)]
Auto merge of #94732 - nnethercote:infallible-encoder, r=bjorn3

Make `Encodable` and `Encoder` infallible.

A follow-up to #93066.

r? `@ghost`

2 years agobye `BorrowckMode`
lcnr [Wed, 8 Jun 2022 08:46:52 +0000 (10:46 +0200)]
bye `BorrowckMode`

2 years agoAuto merge of #97860 - Dylan-DPC:rollup-t3vxos8, r=Dylan-DPC
bors [Wed, 8 Jun 2022 08:05:47 +0000 (08:05 +0000)]
Auto merge of #97860 - Dylan-DPC:rollup-t3vxos8, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #97595 (Remove unwrap from get_vtable)
 - #97597 (Preserve unused pointer to address casts)
 - #97819 (Recover `import` instead of `use` in item)
 - #97823 (Recover missing comma after match arm)
 - #97851 (Use repr(C) when depending on struct layout in ptr tests)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

2 years agoRollup merge of #97851 - saethlin:use-repr-c, r=thomcc
Dylan DPC [Wed, 8 Jun 2022 05:37:33 +0000 (07:37 +0200)]
Rollup merge of #97851 - saethlin:use-repr-c, r=thomcc

Use repr(C) when depending on struct layout in ptr tests

The test depends on the layout of this struct `Pair`, so it should use `repr(C)` instead of the default `repr(Rust)`.

2 years agoRollup merge of #97823 - compiler-errors:missing-comma-match-arm, r=estebank
Dylan DPC [Wed, 8 Jun 2022 05:37:32 +0000 (07:37 +0200)]
Rollup merge of #97823 - compiler-errors:missing-comma-match-arm, r=estebank

Recover missing comma after match arm

If we're missing a comma after a match arm expression, try parsing another pattern and a following `=>`. If we find both of those, then recover by suggesting to insert a `,`.

Fixes #80112

2 years agoRollup merge of #97819 - compiler-errors:use-import, r=wesleywiser
Dylan DPC [Wed, 8 Jun 2022 05:37:31 +0000 (07:37 +0200)]
Rollup merge of #97819 - compiler-errors:use-import, r=wesleywiser

Recover `import` instead of `use` in item

When we definitely don't have a macro invocation (i.e. when we don't have `import ::`), then it's more productive to parse `import` as if it was incorrectly mistaken for `use`.

Not sure if this needs to be a verbose suggestion, but it renders strangely when it's not verbose:
```
error: expected item, found `import`
 --> /home/michael/test.rs:1:1
  |
1 | import std::{io::{self, Write}, rc::Rc};
  | ^^^^^^ help: items are imported using the `use` keyword: `use`
```

Happy to change it to `span_suggestion` instead of `span_suggestion_verbose` though.

Fixes #97788

2 years agoRollup merge of #97597 - tmiasko:simplify-locals-side-effects, r=RalfJung,JakobDegen
Dylan DPC [Wed, 8 Jun 2022 05:37:30 +0000 (07:37 +0200)]
Rollup merge of #97597 - tmiasko:simplify-locals-side-effects, r=RalfJung,JakobDegen

Preserve unused pointer to address casts

Fixes #97421.

cc `@RalfJung`

2 years agoRollup merge of #97595 - ouz-a:issue-97381, r=compiler-errors
Dylan DPC [Wed, 8 Jun 2022 05:37:29 +0000 (07:37 +0200)]
Rollup merge of #97595 - ouz-a:issue-97381, r=compiler-errors

Remove unwrap from get_vtable

This avoids ICE on issue #97381 I think the bug is a bit deeper though, it compiles fine when `v` is `&v` which makes me think `Deref` is causing some issue with borrowck but it's fine I guess since this thing crashes since `nightly-2020-09-17` 😅

2 years agoAuto merge of #97447 - nnethercote:improve-folding, r=jackh726
bors [Wed, 8 Jun 2022 05:36:40 +0000 (05:36 +0000)]
Auto merge of #97447 - nnethercote:improve-folding, r=jackh726

Folding revamp

r? `@ghost`

2 years agorecover `import` instead of `use` in item
Michael Goulet [Tue, 7 Jun 2022 07:13:50 +0000 (00:13 -0700)]
recover `import` instead of `use` in item

2 years agoAuto merge of #97849 - matthiaskrgr:rollup-1yodhvw, r=matthiaskrgr
bors [Wed, 8 Jun 2022 00:26:37 +0000 (00:26 +0000)]
Auto merge of #97849 - matthiaskrgr:rollup-1yodhvw, r=matthiaskrgr

Rollup of 5 pull requests

Successful merges:

 - #97829 (Add regresion test for #95307)
 - #97831 (Remove `AlwaysLiveLocals` wrapper struct)
 - #97832 (Change `Direction::{is_forward,is_backward}` functions into constants)
 - #97840 (RustWrapper: adapt to APInt API changes in LLVM 15)
 - #97845 (Use more targeted suggestion when confusing i8 with std::i8)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

2 years agoRename `rustc_serialize::opaque::Encoder` as `MemEncoder`.
Nicholas Nethercote [Tue, 7 Jun 2022 23:17:49 +0000 (09:17 +1000)]
Rename `rustc_serialize::opaque::Encoder` as `MemEncoder`.

This avoids the name clash with `rustc_serialize::Encoder` (a trait),
and allows lots qualifiers to be removed and imports to be simplified
(e.g. fewer `as` imports).

2 years agoUse repr(C) when depending on struct layout in ptr tests
Ben Kimock [Tue, 7 Jun 2022 23:24:09 +0000 (19:24 -0400)]
Use repr(C) when depending on struct layout in ptr tests

2 years agoFolding revamp.
Nicholas Nethercote [Thu, 2 Jun 2022 01:38:15 +0000 (11:38 +1000)]
Folding revamp.

This commit makes type folding more like the way chalk does it.

Currently, `TypeFoldable` has `fold_with` and `super_fold_with` methods.
- `fold_with` is the standard entry point, and defaults to calling
  `super_fold_with`.
- `super_fold_with` does the actual work of traversing a type.
- For a few types of interest (`Ty`, `Region`, etc.) `fold_with` instead
  calls into a `TypeFolder`, which can then call back into
  `super_fold_with`.

With the new approach, `TypeFoldable` has `fold_with` and
`TypeSuperFoldable` has `super_fold_with`.
- `fold_with` is still the standard entry point, *and* it does the
  actual work of traversing a type, for all types except types of
  interest.
- `super_fold_with` is only implemented for the types of interest.

Benefits of the new model.
- I find it easier to understand. The distinction between types of
  interest and other types is clearer, and `super_fold_with` doesn't
  exist for most types.
- With the current model is easy to get confused and implement a
  `super_fold_with` method that should be left defaulted. (Some of the
  precursor commits fixed such cases.)
- With the current model it's easy to call `super_fold_with` within
  `TypeFolder` impls where `fold_with` should be called. The new
  approach makes this mistake impossible, and this commit fixes a number
  of such cases.
- It's potentially faster, because it avoids the `fold_with` ->
  `super_fold_with` call in all cases except types of interest. A lot of
  the time the compile would inline those away, but not necessarily
  always.

2 years agoAvoid some unnecessary `return`s.
Nicholas Nethercote [Thu, 2 Jun 2022 01:31:23 +0000 (11:31 +1000)]
Avoid some unnecessary `return`s.

2 years agoAdd `try_fold_uenevaluted`.
Nicholas Nethercote [Wed, 1 Jun 2022 07:20:56 +0000 (17:20 +1000)]
Add `try_fold_uenevaluted`.

We already have `visit_unevaluated`, so this improves consistency.

Also, define `TypeFoldable for Unevaluated<'tcx, ()>` in terms of
`TypeFoldable for Unevaluated<'tcx>`, which is neater.

2 years agoAdd `TypeVisitor::visit_mir_const`.
Nicholas Nethercote [Wed, 1 Jun 2022 00:48:34 +0000 (10:48 +1000)]
Add `TypeVisitor::visit_mir_const`.

Because `TypeFoldable::try_fold_mir_const` exists, and even though
`visit_mir_const` isn't needed right now, the consistency makes the code
easier to understand.

2 years agoRemove `EarlyBinder::{try_fold_with,visit_with}`.
Nicholas Nethercote [Wed, 1 Jun 2022 00:25:56 +0000 (10:25 +1000)]
Remove `EarlyBinder::{try_fold_with,visit_with}`.

For most types the default impls of these methods are good enough, and
`EarlyBinder` is one such type.

2 years agoUse `super_visit_with` in a couple of `visit_binder` methods.
Nicholas Nethercote [Tue, 31 May 2022 23:38:07 +0000 (09:38 +1000)]
Use `super_visit_with` in a couple of `visit_binder` methods.

Because it's equivalent but simpler to what's currently there.

2 years agoRename `TypeVisitor::visit_unevaluated_const`.
Nicholas Nethercote [Tue, 31 May 2022 05:07:28 +0000 (15:07 +1000)]
Rename `TypeVisitor::visit_unevaluated_const`.

To match the corresponding type name.

2 years agoMove `finish` out of the `Encoder` trait.
Nicholas Nethercote [Tue, 7 Jun 2022 21:26:35 +0000 (07:26 +1000)]
Move `finish` out of the `Encoder` trait.

This simplifies things, but requires making `CacheEncoder` non-generic.

2 years agoRollup merge of #97845 - estebank:spancito, r=compiler-errors
Matthias Krüger [Tue, 7 Jun 2022 21:55:29 +0000 (23:55 +0200)]
Rollup merge of #97845 - estebank:spancito, r=compiler-errors

Use more targeted suggestion when confusing i8 with std::i8

r? `@compiler-errors`

2 years agoRollup merge of #97840 - durin42:llvm-15-apint, r=nikic
Matthias Krüger [Tue, 7 Jun 2022 21:55:28 +0000 (23:55 +0200)]
Rollup merge of #97840 - durin42:llvm-15-apint, r=nikic

RustWrapper: adapt to APInt API changes in LLVM 15

In https://reviews.llvm.org/D125556 upstream changed sext() and zext()
to allow some no-op cases, which previously required use of the *OrSelf()
methods, which I assume is what was going on here. The *OrSelf() methods
got removed in https://reviews.llvm.org/D125559 after two weeks of
deprecation because they came with some bonus (probably-undesired)
behavior. Since the behavior of sext() and zext() changed slightly, I
kept the old *OrSelf() calls in LLVM 14 and earlier, and only use the
new version in LLVM 15.

r? `@nikic`

2 years agoRollup merge of #97832 - tmiasko:const-direction, r=cjgillot
Matthias Krüger [Tue, 7 Jun 2022 21:55:27 +0000 (23:55 +0200)]
Rollup merge of #97832 - tmiasko:const-direction, r=cjgillot

Change `Direction::{is_forward,is_backward}` functions into constants

Make it explicit that the analysis direction is constant.

This also makes the value immediately available for optimizations.
Previously those functions were neither inline nor generic and so their
definition was unavailable when using data flow framework from other
crates.

2 years agoRollup merge of #97831 - tmiasko:rm-always-live-locals-struct, r=davidtwco
Matthias Krüger [Tue, 7 Jun 2022 21:55:26 +0000 (23:55 +0200)]
Rollup merge of #97831 - tmiasko:rm-always-live-locals-struct, r=davidtwco

Remove `AlwaysLiveLocals` wrapper struct

It is just a wrapper around a `BitSet` and
doesn't have any functionality of its own.

2 years agoRollup merge of #97829 - JohnTitor:issue-95307, r=compiler-errors
Matthias Krüger [Tue, 7 Jun 2022 21:55:25 +0000 (23:55 +0200)]
Rollup merge of #97829 - JohnTitor:issue-95307, r=compiler-errors

Add regresion test for #95307

Closes #95307
r? `@compiler-errors`

2 years agoAuto merge of #97081 - oli-obk:outlives_query_fast_path, r=jackh726
bors [Tue, 7 Jun 2022 21:44:40 +0000 (21:44 +0000)]
Auto merge of #97081 - oli-obk:outlives_query_fast_path, r=jackh726

Re-use the type op instead of calling the implied_outlives_bounds query directly

r? `@ghost`

2 years agoExtract lower_generic_and_bounds function
Santiago Pastorino [Tue, 7 Jun 2022 21:17:41 +0000 (18:17 -0300)]
Extract lower_generic_and_bounds function

2 years agoPass origin down to impl_trait_ty_to_ty
Santiago Pastorino [Fri, 20 May 2022 18:29:45 +0000 (15:29 -0300)]
Pass origin down to impl_trait_ty_to_ty

2 years agoExtract lower_generic_param_kind
Santiago Pastorino [Fri, 20 May 2022 20:32:48 +0000 (17:32 -0300)]
Extract lower_generic_param_kind

2 years agoInstrument important fns in AST lowering
Santiago Pastorino [Fri, 20 May 2022 18:52:56 +0000 (15:52 -0300)]
Instrument important fns in AST lowering

2 years agoUse delayed error handling for `Encodable` and `Encoder` infallible.
Nicholas Nethercote [Tue, 7 Jun 2022 03:30:45 +0000 (13:30 +1000)]
Use delayed error handling for `Encodable` and `Encoder` infallible.

There are two impls of the `Encoder` trait: `opaque::Encoder` and
`opaque::FileEncoder`. The former encodes into memory and is infallible, the
latter writes to file and is fallible.

Currently, standard `Result`/`?`/`unwrap` error handling is used, but this is a
bit verbose and has non-trivial cost, which is annoying given how rare failures
are (especially in the infallible `opaque::Encoder` case).

This commit changes how `Encoder` fallibility is handled. All the `emit_*`
methods are now infallible. `opaque::Encoder` requires no great changes for
this. `opaque::FileEncoder` now implements a delayed error handling strategy.
If a failure occurs, it records this via the `res` field, and all subsequent
encoding operations are skipped if `res` indicates an error has occurred. Once
encoding is complete, the new `finish` method is called, which returns a
`Result`. In other words, there is now a single `Result`-producing method
instead of many of them.

This has very little effect on how any file errors are reported if
`opaque::FileEncoder` has any failures.

Much of this commit is boring mechanical changes, removing `Result` return
values and `?` or `unwrap` from expressions. The more interesting parts are as
follows.
- serialize.rs: The `Encoder` trait gains an `Ok` associated type. The
  `into_inner` method is changed into `finish`, which returns
  `Result<Vec<u8>, !>`.
- opaque.rs: The `FileEncoder` adopts the delayed error handling
  strategy. Its `Ok` type is a `usize`, returning the number of bytes
  written, replacing previous uses of `FileEncoder::position`.
- Various methods that take an encoder now consume it, rather than being
  passed a mutable reference, e.g. `serialize_query_result_cache`.

2 years agoDon't pass in a vector to `Encoder::new`.
Nicholas Nethercote [Tue, 7 Jun 2022 03:30:08 +0000 (13:30 +1000)]
Don't pass in a vector to `Encoder::new`.

It's not necessary.

2 years agoRemove an unnecessary encoder operation.
Nicholas Nethercote [Tue, 7 Jun 2022 01:08:10 +0000 (11:08 +1000)]
Remove an unnecessary encoder operation.

2 years agoUse more targeted suggestion when confusing i8 with std::i8
Esteban Küber [Tue, 7 Jun 2022 20:39:21 +0000 (13:39 -0700)]
Use more targeted suggestion when confusing i8 with std::i8

2 years agoSpecify DWARF alignment in bits, not bytes.
Patrick Walton [Tue, 7 Jun 2022 20:38:35 +0000 (13:38 -0700)]
Specify DWARF alignment in bits, not bytes.

In DWARF, alignment of types is specified in bits, as is made clear by the
parameter name `AlignInBits`. However, `rustc` was incorrectly passing a byte
alignment. This commit fixes that.

This was noticed in upstream LLVM when I tried to check in a test consisting of
LLVM IR generated from `rustc` and it triggered assertions [1].

[1]: https://reviews.llvm.org/D126835

2 years agoAuto merge of #97835 - Dylan-DPC:rollup-0ae3pwp, r=Dylan-DPC
bors [Tue, 7 Jun 2022 19:00:02 +0000 (19:00 +0000)]
Auto merge of #97835 - Dylan-DPC:rollup-0ae3pwp, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #95948 (Improve the safety docs for `CStr`)
 - #97325 (Fix precise field capture of univariant enums)
 - #97817 (:arrow_up: rust-analyzer)
 - #97821 (Remove confusing sentence from `Mutex` docs)
 - #97826 (Add more information for rustdoc-gui tests)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

2 years agoRustWrapper: adapt to APInt API changes in LLVM 15
Augie Fackler [Tue, 7 Jun 2022 18:28:20 +0000 (14:28 -0400)]
RustWrapper: adapt to APInt API changes in LLVM 15

In https://reviews.llvm.org/D125556 upstream changed sext() and zext()
to allow some no-op cases, which previously required use of the *OrSelf()
methods, which I assume is what was going on here. The *OrSelf() methods
got removed in https://reviews.llvm.org/D125559 after two weeks of
deprecation because they came with some bonus (probably-undesired)
behavior. Since the behavior of sext() and zext() changed slightly, I
kept the old *OrSelf() calls in LLVM 14 and earlier, and only use the
new version in LLVM 15.

r? @nikic

2 years agoPreserve unused pointer to address casts
Tomasz Miąsko [Wed, 1 Jun 2022 00:00:00 +0000 (00:00 +0000)]
Preserve unused pointer to address casts

2 years agoRollup merge of #97826 - GuillaumeGomez:rustdoc-gui-tests-info, r=Dylan-DPC
Dylan DPC [Tue, 7 Jun 2022 15:25:45 +0000 (17:25 +0200)]
Rollup merge of #97826 - GuillaumeGomez:rustdoc-gui-tests-info, r=Dylan-DPC

Add more information for rustdoc-gui tests

It was missing `--no-sandbox` in the `--help` message and the README was a bit outdated.

cc `@jsha` (I recall you asking some questions about passing arguments to the rustdoc gui tester so here it).

r? `@notriddle`

2 years agoRollup merge of #97821 - Nilstrieb:mutex-docs, r=Dylan-DPC
Dylan DPC [Tue, 7 Jun 2022 15:25:44 +0000 (17:25 +0200)]
Rollup merge of #97821 - Nilstrieb:mutex-docs, r=Dylan-DPC

Remove confusing sentence from `Mutex` docs

The docs were saying something about "statically initializing" the
mutex, and it's not clear what this means. Remove that part to avoid
confusion.

2 years agoRollup merge of #97817 - lnicola:rust-analyzer-2022-06-07, r=lnicola
Dylan DPC [Tue, 7 Jun 2022 15:25:43 +0000 (17:25 +0200)]
Rollup merge of #97817 - lnicola:rust-analyzer-2022-06-07, r=lnicola

:arrow_up: rust-analyzer

r? ``@ghost``

2 years agoRollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman
Dylan DPC [Tue, 7 Jun 2022 15:25:43 +0000 (17:25 +0200)]
Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman

Fix precise field capture of univariant enums

When constructing a MIR from a THIR field expression, introduce an
additional downcast projection before accessing a field of an enum.

When rebasing a place builder on top of a captured place, account for
the fact that a single HIR enum field projection corresponds to two MIR
projection elements: a downcast element and a field element.

Fixes #95271.
Fixes #96299.
Fixes #96512.
Fixes #97378.

r? ``@nikomatsakis`` ``@arora-aman``

2 years agoRollup merge of #95948 - Nilstrieb:improve-cstr-safety-docs, r=RalfJung
Dylan DPC [Tue, 7 Jun 2022 15:25:42 +0000 (17:25 +0200)]
Rollup merge of #95948 - Nilstrieb:improve-cstr-safety-docs, r=RalfJung

Improve the safety docs for `CStr`

Namely, the two functions `from_ptr` and `from_bytes_with_nul_unchecked`.
Before, these functions didn't state the requirements clearly enough,
and I was not immediately able to find them like for other functions.

This doesn't change the content of the docs, but simply rewords them for
clarity.

note: I'm not entirely sure about the '`ptr` must be valid for reads of `u8`.', there might be room for improvement for this (and maybe for the other docs as well 😄)

2 years agoAdd a `DownloadSource` enum
Joshua Nelson [Sun, 29 May 2022 04:55:42 +0000 (23:55 -0500)]
Add a `DownloadSource` enum

This simplifies the arguments to `download_component` in config.rs.

It also moves stage0.json metadata handling to `Build::new`, making it easier to download the stage0
compiler in rustbuild later if necessary.

2 years agoAdd checksum verification for rustfmt downloads
Joshua Nelson [Sun, 29 May 2022 03:05:43 +0000 (22:05 -0500)]
Add checksum verification for rustfmt downloads

2 years agoMove beta rustfmt downloads to rustbuild
Joshua Nelson [Sun, 29 May 2022 02:17:28 +0000 (21:17 -0500)]
Move beta rustfmt downloads to rustbuild

2 years agoAdd regresion test for #95307
Yuki Okushi [Tue, 7 Jun 2022 13:54:15 +0000 (22:54 +0900)]
Add regresion test for #95307

2 years agoChange `Direction::{is_forward,is_backward}` functions into constants
Tomasz Miąsko [Sun, 5 Jun 2022 00:00:00 +0000 (00:00 +0000)]
Change `Direction::{is_forward,is_backward}` functions into constants

Make it explicit that the analysis direction is constant.

This also makes the value immediately available for optimizations.
Previously those functions were neither inline nor generic and so their
definition was unavailable when using data flow framework from other
crates.

2 years agoRemove `AlwaysLiveLocals` wrapper struct
Tomasz Miąsko [Fri, 3 Jun 2022 00:00:00 +0000 (00:00 +0000)]
Remove `AlwaysLiveLocals` wrapper struct

It is just a wrapper around a `BitSet` and
doesn't have any functionality of its own.

2 years agoImprove the safety docs for `CStr`
Nilstrieb [Mon, 11 Apr 2022 19:31:41 +0000 (21:31 +0200)]
Improve the safety docs for `CStr`

Namely, the two functions `from_ptr` and `from_bytes_with_nul_unchecked`.
Before, this functions didn't state the requirements clearly enough,
and I was not immediately able to find them like for other functions.

This doesn't change the content of the docs, but simply rewords them for
clarity.

2 years agoSimplify handling of `initial_rustfmt`
Joshua Nelson [Fri, 27 May 2022 23:05:32 +0000 (18:05 -0500)]
Simplify handling of `initial_rustfmt`

2 years agoRename `download_component` -> `download_ci_component`
Joshua Nelson [Fri, 27 May 2022 22:58:32 +0000 (17:58 -0500)]
Rename `download_component` -> `download_ci_component`

It was confusing to have two functions with the same name but different behavior.

2 years agoUpdate library/std/src/sync/mutex.rs
Dylan DPC [Tue, 7 Jun 2022 13:15:19 +0000 (15:15 +0200)]
Update library/std/src/sync/mutex.rs

Co-authored-by: Weiyi Wang <wwylele@gmail.com>
2 years agoAuto merge of #97825 - Dylan-DPC:rollup-ya51k1k, r=Dylan-DPC
bors [Tue, 7 Jun 2022 11:08:58 +0000 (11:08 +0000)]
Auto merge of #97825 - Dylan-DPC:rollup-ya51k1k, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #97058 (Various refactors to the incr comp workproduct handling)
 - #97301 (Allow unstable items to be re-exported unstably without requiring the feature be enabled)
 - #97738 (Fix ICEs from zsts within unsized types with non-zero offsets)
 - #97771 (Remove SIGIO reference on Haiku)
 - #97808 (Add some unstable target features for the wasm target codegen)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

2 years agoUpdate rustdoc-gui README
Guillaume Gomez [Tue, 7 Jun 2022 09:49:35 +0000 (11:49 +0200)]
Update rustdoc-gui README

2 years agoUpdate help message for rustdoc-gui runner
Guillaume Gomez [Tue, 7 Jun 2022 09:49:22 +0000 (11:49 +0200)]
Update help message for rustdoc-gui runner

2 years agoRollup merge of #97808 - alexcrichton:wasm-features, r=petrochenkov
Dylan DPC [Tue, 7 Jun 2022 09:41:09 +0000 (11:41 +0200)]
Rollup merge of #97808 - alexcrichton:wasm-features, r=petrochenkov

Add some unstable target features for the wasm target codegen

I was experimenting with cross-language LTO for the wasm target recently
between Rust and C and found that C was injecting the `+mutable-globals`
flag on all functions. When specifying the corresponding
`-Ctarget-feature=+mutable-globals` feature to Rust it prints a warning
about an unknown feature. I've added the `mutable-globals` feature plus
another few I know of to the list of known features for wasm targets.
These features all continue to be unstable to source code as they were
before.

2 years agoRollup merge of #97771 - rtzoeller:haiku_no_sigio, r=kennytm
Dylan DPC [Tue, 7 Jun 2022 09:41:09 +0000 (11:41 +0200)]
Rollup merge of #97771 - rtzoeller:haiku_no_sigio, r=kennytm

Remove SIGIO reference on Haiku

Haiku doesn't define SIGIO. The nix crate already employs this workaround:
https://github.com/nix-rust/nix/blob/5dedbc7850448ae3922ab0a833f3eb971bf7e25f/src/sys/signal.rs#L92-L94

2 years agoRollup merge of #97738 - Kixiron:zst-panic, r=eddyb
Dylan DPC [Tue, 7 Jun 2022 09:41:08 +0000 (11:41 +0200)]
Rollup merge of #97738 - Kixiron:zst-panic, r=eddyb

Fix ICEs from zsts within unsized types with non-zero offsets

- Fixes #97732
- Fixes ICEs while compiling `alloc` with `-Z randomize-layout`

r? ``@eddyb``

2 years agoRollup merge of #97301 - semicoleon:unstable-reexport, r=petrochenkov
Dylan DPC [Tue, 7 Jun 2022 09:41:07 +0000 (11:41 +0200)]
Rollup merge of #97301 - semicoleon:unstable-reexport, r=petrochenkov

Allow unstable items to be re-exported unstably without requiring the feature be enabled

Closes #94972

The diagnostic may need some work still, and I haven't added a test yet

2 years agoRollup merge of #97058 - bjorn3:multi_artifact_work_products, r=nagisa
Dylan DPC [Tue, 7 Jun 2022 09:41:06 +0000 (11:41 +0200)]
Rollup merge of #97058 - bjorn3:multi_artifact_work_products, r=nagisa

Various refactors to the incr comp workproduct handling

This is the result of me looking into adding support for having multiple object files for a single codegen unit to incr comp. This is necessary to support inline assembly in cg_clif without requiring partial linking which is not supported on Windows and seems to fail on macOS for some reason. Cg_clif uses an external assembler to handle inline asm and thus produces one object file with regular functions and one object file containing compiled inline asm for each codegen unit which uses inline asm. Current incr comp can't handle this. This PR doesn't yet add support for this, but it makes it easier to do so.

2 years agoRecover missing comma after match arm
Michael Goulet [Tue, 7 Jun 2022 09:19:18 +0000 (02:19 -0700)]
Recover missing comma after match arm

2 years agoAuto merge of #97512 - scottmcm:add-coldcc, r=nagisa,lcnr
bors [Tue, 7 Jun 2022 08:12:45 +0000 (08:12 +0000)]
Auto merge of #97512 - scottmcm:add-coldcc, r=nagisa,lcnr

Add support for emitting functions with `coldcc` to LLVM

The eventual goal is to try using this for things like the internal panicking stuff, to see whether it helps.

2 years agoRemove confusing sentence from `Mutex` docs
Nilstrieb [Tue, 7 Jun 2022 07:53:44 +0000 (09:53 +0200)]
Remove confusing sentence from `Mutex` docs

The docs were saying something about "statically initializing" the
mutex, and it's not clear what this means. Remove that part to avoid
confusion.

2 years ago:arrow_up: rust-analyzer
Laurențiu Nicola [Tue, 7 Jun 2022 05:52:15 +0000 (08:52 +0300)]
:arrow_up: rust-analyzer

2 years agoAuto merge of #95565 - jackh726:remove-borrowck-mode, r=nikomatsakis
bors [Tue, 7 Jun 2022 05:04:14 +0000 (05:04 +0000)]
Auto merge of #95565 - jackh726:remove-borrowck-mode, r=nikomatsakis

Remove migrate borrowck mode

Closes #58781
Closes #43234

# Stabilization proposal

This PR proposes the stabilization of `#![feature(nll)]` and the removal of `-Z borrowck`. Current borrow checking behavior of item bodies is currently done by first infering regions *lexically* and reporting any errors during HIR type checking. If there *are* any errors, then MIR borrowck (NLL) never occurs. If there *aren't* any errors, then MIR borrowck happens and any errors there would be reported. This PR removes the lexical region check of item bodies entirely and only uses MIR borrowck. Because MIR borrowck could never *not* be run for a compiled program, this should not break any programs. It does, however, change diagnostics significantly and allows a slightly larger set of programs to compile.

Tracking issue: #43234
RFC: https://github.com/rust-lang/rfcs/blob/master/text/2094-nll.md
Version: 1.63 (2022-06-30 => beta, 2022-08-11 => stable).

## Motivation

Over time, the Rust borrow checker has become "smarter" and thus allowed more programs to compile. There have been three different implementations: AST borrowck, MIR borrowck, and polonius (well, in progress). Additionally, there is the "lexical region resolver", which (roughly) solves the constraints generated through HIR typeck. It is not a full borrow checker, but does emit some errors.

The AST borrowck was the original implementation of the borrow checker and was part of the initially stabilized Rust 1.0. In mid 2017, work began to implement the current MIR borrow checker and that effort ompleted by the end of 2017, for the most part. During 2018, efforts were made to migrate away from the AST borrow checker to the MIR borrow checker - eventually culminating into "migrate" mode - where HIR typeck with lexical region resolving following by MIR borrow checking - being active by default in the 2018 edition.

In early 2019, migrate mode was turned on by default in the 2015 edition as well, but with MIR borrowck errors emitted as warnings. By late 2019, these warnings were upgraded to full errors. This was followed by the complete removal of the AST borrow checker.

In the period since, various errors emitted by the MIR borrow checker have been improved to the point that they are mostly the same or better than those emitted by the lexical region resolver.

While there do remain some degradations in errors (tracked under the [NLL-diagnostics tag](https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3ANLL-diagnostics), those are sufficiently small and rare enough that increased flexibility of MIR borrow check-only is now a worthwhile tradeoff.

## What is stabilized

As said previously, this does not fundamentally change the landscape of accepted programs. However, there are a [few](https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3ANLL-fixed-by-NLL) cases where programs can compile under `feature(nll)`, but not otherwise.

There are two notable patterns that are "fixed" by this stabilization. First, the `scoped_threads` feature, which is a continutation of a pre-1.0 API, can sometimes emit a [weird lifetime error](https://github.com/rust-lang/rust/issues/95527) without NLL. Second, actually seen in the standard library. In the `Extend` impl for `HashMap`, there is an implied bound of `K: 'a` that is available with NLL on but not without - this is utilized in the impl.

As mentioned before, there are a large number of diagnostic differences. Most of them are better, but some are worse. None are serious or happen often enough to need to block this PR. The biggest change is the loss of error code for a number of lifetime errors in favor of more general "lifetime may not live long enough" error. While this may *seem* bad, the former error codes were just attempts to somewhat-arbitrarily bin together lifetime errors of the same type; however, on paper, they end up being roughly the same with roughly the same kinds of solutions.

## What isn't stabilized

This PR does not completely remove the lexical region resolver. In the future, it may be possible to remove that (while still keeping HIR typeck) or to remove it together with HIR typeck.

## Tests

Many test outputs get updated by this PR. However, there are number of tests specifically geared towards NLL under `src/test/ui/nll`

## History

* On 2017-07-14, [tracking issue opened](https://github.com/rust-lang/rust/issues/43234)
* On 2017-07-20, [initial empty MIR pass added](https://github.com/rust-lang/rust/pull/43271)
* On 2017-08-29, [RFC opened](https://github.com/rust-lang/rfcs/pull/2094)
* On 2017-11-16, [Integrate MIR type-checker with NLL](https://github.com/rust-lang/rust/pull/45825)
* On 2017-12-20, [NLL feature complete](https://github.com/rust-lang/rust/pull/46862)
* On 2018-07-07, [Don't run AST borrowck on mir mode](https://github.com/rust-lang/rust/pull/52083)
* On 2018-07-27, [Add migrate mode](https://github.com/rust-lang/rust/pull/52681)
* On 2019-04-22, [Enable migrate mode on 2015 edition](https://github.com/rust-lang/rust/pull/59114)
* On 2019-08-26, [Don't downgrade errors on 2015 edition](https://github.com/rust-lang/rust/pull/64221)
* On 2019-08-27, [Remove AST borrowck](https://github.com/rust-lang/rust/pull/64790)

2 years agoAuto merge of #97801 - RalfJung:miri, r=RalfJung
bors [Tue, 7 Jun 2022 02:35:19 +0000 (02:35 +0000)]
Auto merge of #97801 - RalfJung:miri, r=RalfJung

update Miri

Fixes https://github.com/rust-lang/rust/issues/97745
r? `@ghost` Cc `@rust-lang/miri`
Cc `@InfRandomness`

2 years agoAuto merge of #97809 - matthiaskrgr:rollup-ajyvjd3, r=matthiaskrgr
bors [Mon, 6 Jun 2022 23:53:07 +0000 (23:53 +0000)]
Auto merge of #97809 - matthiaskrgr:rollup-ajyvjd3, r=matthiaskrgr

Rollup of 3 pull requests

Successful merges:

 - #97700 (Add note to documentation of HashSet::intersection)
 - #97792 (More eslint checks)
 - #97794 (Fix typo in redundant_pattern_match.rs)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

2 years agoRollup merge of #97794 - eltociear:patch-13, r=matthiaskrgr
Matthias Krüger [Mon, 6 Jun 2022 23:13:48 +0000 (01:13 +0200)]
Rollup merge of #97794 - eltociear:patch-13, r=matthiaskrgr

Fix typo in redundant_pattern_match.rs

alway -> always

2 years agoRollup merge of #97792 - GuillaumeGomez:eslint-checks, r=Dylan-DPC
Matthias Krüger [Mon, 6 Jun 2022 23:13:47 +0000 (01:13 +0200)]
Rollup merge of #97792 - GuillaumeGomez:eslint-checks, r=Dylan-DPC

More eslint checks

Here is the list of newly added eslint checks:

 * [no-confusing-arrow](https://eslint.org/docs/rules/no-confusing-arrow)
 * [no-div-regex](https://eslint.org/docs/rules/no-div-regex)
 * [no-floating-decimal](https://eslint.org/docs/rules/no-floating-decimal)
 * [no-implicit-globals](https://eslint.org/docs/rules/no-implicit-globals)
 * [no-implied-eval](https://eslint.org/docs/rules/no-implied-eval)
 * [no-label-var](https://eslint.org/docs/rules/no-label-var)

Since you already reviewed the previous ones:

r? `@Dylan-DPC`

2 years agoRollup merge of #97700 - nzrq:patch-1, r=dtolnay
Matthias Krüger [Mon, 6 Jun 2022 23:13:46 +0000 (01:13 +0200)]
Rollup merge of #97700 - nzrq:patch-1, r=dtolnay

Add note to documentation of HashSet::intersection

The functionality of the `std::collections::HashSet::intersection(...)` method was slightly surprising to me so I wanted to take a sec to contribute to the documentation for this method.

I've added a `Note:` section if that is appropriate.

2 years agoAdd some unstable target features for the wasm target codegen
Alex Crichton [Mon, 6 Jun 2022 22:01:17 +0000 (15:01 -0700)]
Add some unstable target features for the wasm target codegen

I was experimenting with cross-language LTO for the wasm target recently
between Rust and C and found that C was injecting the `+mutable-globals`
flag on all functions. When specifying the corresponding
`-Ctarget-feature=+mutable-globals` feature to Rust it prints a warning
about an unknown feature. I've added the `mutable-globals` feature plus
another few I know of to the list of known features for wasm targets.
These features all continue to be unstable to source code as they were
before.

2 years agoApply suggestions from code review
nzrq [Mon, 6 Jun 2022 21:14:58 +0000 (17:14 -0400)]
Apply suggestions from code review

Co-authored-by: David Tolnay <dtolnay@gmail.com>
2 years agoAuto merge of #97730 - flip1995:clippyup, r=Manishearth
bors [Mon, 6 Jun 2022 19:40:54 +0000 (19:40 +0000)]
Auto merge of #97730 - flip1995:clippyup, r=Manishearth

Update Clippy

r? `@Manishearth`

This includes a bit bigger `Cargo.lock` update.

2 years agoupdate Miri
Ralf Jung [Mon, 6 Jun 2022 17:36:21 +0000 (13:36 -0400)]
update Miri

2 years agoAuto merge of #97795 - Dylan-DPC:rollup-dxilagr, r=Dylan-DPC
bors [Mon, 6 Jun 2022 16:09:54 +0000 (16:09 +0000)]
Auto merge of #97795 - Dylan-DPC:rollup-dxilagr, r=Dylan-DPC

Rollup of 5 pull requests

Successful merges:

 - #97312 (Compute lifetimes in scope at diagnostic time)
 - #97495 (Add E0788 for improper #[no_coverage] usage)
 - #97579 (Avoid creating `SmallVec`s in `global_llvm_features`)
 - #97767 (interpret: do not claim UB until we looked more into variadic functions)
 - #97787 (E0432: rust 2018 -> rust 2018 or later    in --explain message)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

2 years agoUpdate src/test/ui/unsized/issue-97732.rs
Chase Wilson [Mon, 6 Jun 2022 15:19:33 +0000 (10:19 -0500)]
Update src/test/ui/unsized/issue-97732.rs

Co-authored-by: Eduard-Mihai Burtescu <edy.burt@gmail.com>
2 years agoAuto merge of #97684 - RalfJung:better-provenance-control, r=oli-obk
bors [Mon, 6 Jun 2022 13:28:58 +0000 (13:28 +0000)]
Auto merge of #97684 - RalfJung:better-provenance-control, r=oli-obk

interpret: better control over whether we read data with provenance

The resolution in https://github.com/rust-lang/unsafe-code-guidelines/issues/286 seems to be that when we load data at integer type, we implicitly strip provenance. So let's implement that in Miri at least for scalar loads. This makes use of the fact that `Scalar` layouts distinguish pointer-sized integers and pointers -- so I was expecting some wild bugs where layouts set this incorrectly, but so far that does not seem to happen.

This does not entirely implement the solution to https://github.com/rust-lang/unsafe-code-guidelines/issues/286; we still do the wrong thing for integers in larger types: we will `copy_op` them and then do validation, and validation will complain about the provenance. To fix that we need mutating validation; validation needs to strip the provenance rather than complaining about it. This is a larger undertaking (but will also help resolve https://github.com/rust-lang/miri/issues/845 since we can reset padding to `Uninit`).

The reason this is useful is that we can now implement `addr` as a `transmute` from a pointer to an integer, and actually get the desired behavior of stripping provenance without exposing it!

2 years agoMake saved_file field of WorkProduct non-optional
bjorn3 [Sun, 15 May 2022 11:31:28 +0000 (11:31 +0000)]
Make saved_file field of WorkProduct non-optional

A WorkProduct without a saved file is useless

2 years agoFactor Option out of copy_cgu_workproduct_to_incr_comp_cache_dir call
bjorn3 [Fri, 13 May 2022 12:20:32 +0000 (12:20 +0000)]
Factor Option out of copy_cgu_workproduct_to_incr_comp_cache_dir call

This improves clarity of the code a bit

2 years agoRollup merge of #97787 - matthiaskrgr:e0432_explain, r=Dylan-DPC
Dylan DPC [Mon, 6 Jun 2022 12:34:59 +0000 (14:34 +0200)]
Rollup merge of #97787 - matthiaskrgr:e0432_explain, r=Dylan-DPC

E0432: rust 2018 -> rust 2018 or later    in --explain message

2 years agoRollup merge of #97767 - RalfJung:variadic, r=davidtwco
Dylan DPC [Mon, 6 Jun 2022 12:34:58 +0000 (14:34 +0200)]
Rollup merge of #97767 - RalfJung:variadic, r=davidtwco

interpret: do not claim UB until we looked more into variadic functions

I am not actually sure if this is UB, and anyway for FFI shims, Miri currently does not attempt to distinguish between arguments passed via variadics vs directly. So let's be consistent.
(Programs that ran into this error will anyway immediately fall through to the "unsupported" message on the next line.)

2 years agoRollup merge of #97579 - SparrowLii:target_features, r=nagisa
Dylan DPC [Mon, 6 Jun 2022 12:34:57 +0000 (14:34 +0200)]
Rollup merge of #97579 - SparrowLii:target_features, r=nagisa

Avoid creating `SmallVec`s in `global_llvm_features`

This PR made a simple optimization to avoid creating extra `SmallVec`s by adjusting the use of iterator statements.
Also, given the very small size of `tied_target_features`, there is no need to insert each feature into the FxHashMap.

2 years agoRollup merge of #97495 - clarfonthey:e0788-no-coverage, r=nagisa
Dylan DPC [Mon, 6 Jun 2022 12:34:56 +0000 (14:34 +0200)]
Rollup merge of #97495 - clarfonthey:e0788-no-coverage, r=nagisa

Add E0788 for improper #[no_coverage] usage

Essentially, this adds proper checking for the attribute (tracking issue #84605) and throws errors when it's put in obviously-wrong places, like on struct or const definitions. Most of the code is taken directly from the checks for the `#[inline]` attribute, since it's very similar.

Right now, the code only checks at the function level, but it seems reasonable to allow adding `#[no_coverage]` to individual blocks or expressions, so, for now those just throw `unused_attributes` warnings. Similarly, since there was a lot of desire to eventually allow recursive definitions as well on modules and impl blocks, these also throw `unused_attributes` instead of an error.

I'm not sure if anything has to be done since this error is technically for an unstable feature, but since an error for using unstable features will show up anyway, I think it's okay.

This is the first big piece needed for stabilising this attribute, although I personally would like to explore renaming it to `#[coverage(never)]` on a separate PR, which I will offer soon. There's a lot of discussion still to be had about that, which is why it will be kept separate.

I don't think much is needed besides adding this simple check and a UI test, but let me know if there's something else that should be added to make this happen.

2 years agoRollup merge of #97312 - cjgillot:no-path-in-scope, r=compiler-errors
Dylan DPC [Mon, 6 Jun 2022 12:34:55 +0000 (14:34 +0200)]
Rollup merge of #97312 - cjgillot:no-path-in-scope, r=compiler-errors

Compute lifetimes in scope at diagnostic time

The set of available lifetimes is currently computed during lifetime resolution on HIR.  It is only used for one diagnostic.

In this PR, HIR lifetime resolution just reports whether elided lifetimes are well-defined at the place of use.  The diagnostic code is responsible for building a list of lifetime names if elision is not allowed.

This will allow to remove lifetime resolution on HIR eventually.

2 years agoAvoid an unnecessary clone for copy_cgu_workproduct_to_incr_comp_cache_dir calls
bjorn3 [Fri, 13 May 2022 12:18:13 +0000 (12:18 +0000)]
Avoid an unnecessary clone for copy_cgu_workproduct_to_incr_comp_cache_dir calls

2 years agoRename CodegenUnit::work_product to previous_work_product
bjorn3 [Fri, 13 May 2022 10:32:03 +0000 (10:32 +0000)]
Rename CodegenUnit::work_product to previous_work_product

It returns the previous work product or panics if there is none. This rename
makes the purpose of this method clearer.

2 years agoRemove unnecessary cgu name length hash
bjorn3 [Fri, 13 May 2022 10:29:35 +0000 (10:29 +0000)]
Remove unnecessary cgu name length hash

This is a tiny optimization

2 years agoFix typo in redundant_pattern_match.rs
Ikko Ashimine [Mon, 6 Jun 2022 12:16:31 +0000 (21:16 +0900)]
Fix typo in redundant_pattern_match.rs

alway -> always

2 years agoAdd "no-label-var" eslint check
Guillaume Gomez [Mon, 6 Jun 2022 12:03:26 +0000 (14:03 +0200)]
Add "no-label-var" eslint check

2 years agoAdd "no-implied-eval" eslint check
Guillaume Gomez [Mon, 6 Jun 2022 12:02:37 +0000 (14:02 +0200)]
Add "no-implied-eval" eslint check