ruff/crates/ruff_python_resolver/src
konsti 14e65afdc6
Update to Rust 1.74 and use new clippy lints table (#8722)
Update to [Rust
1.74](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html) and use
the new clippy lints table.

The update itself introduced a new clippy lint about superfluous hashes
in raw strings, which got removed.

I moved our lint config from `rustflags` to the newly stabilized
[workspace.lints](https://doc.rust-lang.org/stable/cargo/reference/workspaces.html#the-lints-table).
One consequence is that we have to `unsafe_code = "warn"` instead of
"forbid" because the latter now actually bans unsafe code:

```
error[E0453]: allow(unsafe_code) incompatible with previous forbid
  --> crates/ruff_source_file/src/newlines.rs:62:17
   |
62 |         #[allow(unsafe_code)]
   |                 ^^^^^^^^^^^ overruled by previous forbid
   |
   = note: `forbid` lint level was set on command line
```

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-11-16 18:12:46 -05:00
..
snapshots Add dedicated struct for implicit imports (#5427) 2023-06-28 18:55:43 +00:00
config.rs Misc. clean-up for import resolver (#5401) 2023-06-27 19:27:12 +00:00
execution_environment.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
host.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
implicit_imports.rs Format let-else with rustfmt nightly (#5461) 2023-07-03 02:13:35 +00:00
import_result.rs Add dedicated struct for implicit imports (#5427) 2023-06-28 18:55:43 +00:00
lib.rs Fix CI by downgrading to cargo insta 1.29.0 (#5589) 2023-07-08 14:54:49 +00:00
module_descriptor.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
native_module.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
py_typed.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
python_platform.rs Make lib iteration platform-specific (#5406) 2023-06-28 13:52:20 +00:00
python_version.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
resolver.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
search.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00