Skip to content

Commit 56fbf5d

Browse files
bors[bot]Veykril
andauthored
10607: Migrate to edition 2021 r=Veykril a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
2 parents 6aeeb4e + 1294bfc commit 56fbf5d

File tree

56 files changed

+48
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+48
-71
lines changed

crates/base_db/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "base_db"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77

88
[lib]
99
doctest = false

crates/cfg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cfg"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77

88
[lib]
99
doctest = false

crates/flycheck/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "flycheck"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77

88
[lib]
99
doctest = false

crates/hir/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "hir"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77

88
[lib]
99
doctest = false

crates/hir_def/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "hir_def"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77

88
[lib]
99
doctest = false

crates/hir_def/src/attr.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
//! A higher level attributes based on TokenTree, with also some shortcuts.
22
3-
use std::{
4-
convert::{TryFrom, TryInto},
5-
fmt,
6-
hash::Hash,
7-
ops,
8-
sync::Arc,
9-
};
3+
use std::{fmt, hash::Hash, ops, sync::Arc};
104

115
use base_db::CrateId;
126
use cfg::{CfgExpr, CfgOptions};

crates/hir_expand/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "hir_expand"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77

88
[lib]
99
doctest = false

crates/hir_ty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "hir_ty"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77

88
[lib]
99
doctest = false

crates/ide/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "ide"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77

88
[lib]
99
doctest = false

crates/ide/src/doc_links.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
33
mod intra_doc_links;
44

5-
use std::convert::{TryFrom, TryInto};
6-
75
use either::Either;
86
use pulldown_cmark::{BrokenLink, CowStr, Event, InlineStr, LinkType, Options, Parser, Tag};
97
use pulldown_cmark_to_cmark::{cmark_with_options, Options as CmarkOptions};

0 commit comments

Comments
 (0)