Skip to content

Commit

Permalink
Merge pull request #4096 from rust-lang/rust-1.82-manual-regen
Browse files Browse the repository at this point in the history
Rust 1.82: also update all cases of manual regeneration
  • Loading branch information
chriskrycho authored Nov 6, 2024
2 parents f4b2254 + 7ee012f commit 978e994
Show file tree
Hide file tree
Showing 37 changed files with 295 additions and 232 deletions.
5 changes: 5 additions & 0 deletions ci/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ BTreeSet
BufRead
BufReader
BuildHasher
byteorder
Cacher
cacher
Cagain
Expand Down Expand Up @@ -104,6 +105,7 @@ CustomSmartPointer
CustomSmartPointers
data's
DataStruct
dbea
deallocate
deallocated
deallocating
Expand Down Expand Up @@ -566,6 +568,7 @@ Uncomment
uncommenting
unevaluated
unhandled
unicode
Uninstalling
uninstall
unittests
Expand Down Expand Up @@ -598,6 +601,7 @@ Vlissides
vscode
vtable
waitlist
wasi
wasn
weakt
WeatherForecast
Expand All @@ -616,4 +620,5 @@ WriteMessage
xcode
xpression
yyyy
zerocopy
ZipImpl
77 changes: 71 additions & 6 deletions listings/ch02-guessing-game-tutorial/listing-02-02/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ name = "guessing_game"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
$ cargo run
Compiling guessing_game v0.1.0 (file:///projects/guessing_game)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.50s
Running `target/debug/guessing_game`
Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.80s
Running `file:///projects/guessing_game/target/debug/guessing_game`
Hello, world!

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ name = "adder"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ cargo test
Compiling adder v0.1.0 (file:///projects/adder)
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.57s
Running unittests src/lib.rs (target/debug/deps/adder-92948b65e88960b4)
Running unittests src/lib.rs (file:///projects/adder/target/debug/deps/adder-7acb243c25ffd9dc)

running 1 test
test tests::it_works ... ok
Expand All @@ -13,4 +13,3 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fini
running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub fn add(left: usize, right: usize) -> usize {
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

Expand Down
7 changes: 2 additions & 5 deletions listings/ch14-more-about-cargo/listing-14-07/add/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[workspace]

members = [
"adder",
"add_one",
]
resolver = "2"
members = ["adder", "add_one"]

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[workspace]
resolver = "2"
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[workspace]

members = [
"adder",
"add_one",
]
resolver = "2"
members = ["adder", "add_one"]
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[workspace]

members = [
"adder",
"add_one",
]
resolver = "2"
members = ["adder", "add_one"]
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[workspace]

members = [
"adder",
"add_one",
]
resolver = "2"
members = ["adder", "add_one"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[workspace]

members = [
"adder",
]
resolver = "2"
members = ["adder"]
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[workspace]

members = [
"adder",
"add_one",
]
resolver = "2"
members = [ "add_one","adder"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ name = "add_one"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub fn add(left: usize, right: usize) -> usize {
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[workspace]

members = [
"adder",
"add_one",
]
resolver = "2"
members = ["adder", "add_one"]
2 changes: 2 additions & 0 deletions packages/tools/src/bin/lfp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ fn is_line_of_interest(line: &str) -> bool {
line.split_whitespace().any(|sub_string| {
sub_string.contains("file://")
&& !sub_string.contains("file:///projects/")
&& !sub_string.contains("file:///home/.cargo")
&& !sub_string.contains("file:///home/.rustup")
})
}

Expand Down
Loading

0 comments on commit 978e994

Please sign in to comment.