Skip to content

Commit 0f4e3df

Browse files
author
Jethro Beekman
committed
Update to 2021-03-25
1 parent 2c0030a commit 0f4e3df

File tree

96 files changed

+170458
-25
lines changed

Some content is hidden

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

96 files changed

+170458
-25
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "core_io"
3-
version = "0.1.20190701"
3+
version = "0.1.20210325"
44
authors = ["The Rust Project Developers", "Jethro Beekman"]
55
license = "MIT/Apache-2.0"
66
description = """

build-src.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,4 @@ for IO_COMMIT in $OLD_COMMITS $(git_commits_ordered %H $NEW_COMMITS|tac); do
6868
fi
6969
done
7070

71-
if [ $(uname) == 'Darwin' ]; then
72-
OLD_GIT_PERM=$(stat -f %Op .git)
73-
else
74-
OLD_GIT_PERM=$(stat --printf=%a .git)
75-
fi
76-
trap "chmod $OLD_GIT_PERM .git; exit 1" SIGINT
77-
chmod 000 .git
78-
cargo ${1:-package}
79-
chmod $OLD_GIT_PERM .git
71+
cargo ${1:-package} --allow-dirty

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn parse_mappings(mut mappings: &'static str) -> Vec<Mapping> {
1212
// is why it's kind of weird. It should be changed to a saner format.
1313

1414
const P1: &'static str = r#"-Mapping(""#;
15-
const P2: &'static str = r#"",""#; ;
15+
const P2: &'static str = r#"",""#;
1616
const P3: &'static str = "\")\n";
1717

1818
trait TakePrefix: Sized {

edit-patches.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ prompt_changes() {
2525
bold_arrow; echo "Replacing $IO_COMMIT.patch with updated version"
2626
git diff > $TMP_PATCH
2727
git clean -f -x
28+
git reset -q HEAD~
2829
git diff > $PATCH_DIR/$IO_COMMIT.patch
2930
rm -rf .git
3031
}

functions.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo_lines() {
2626

2727
get_io_commits() {
2828
for COMPILER_COMMIT in $COMPILER_COMMITS; do
29-
IO_COMMIT=$(git log -n1 --pretty=format:%H $COMPILER_COMMIT -- src/libstd/io)
29+
IO_COMMIT=$(git log -n1 --pretty=format:%H $COMPILER_COMMIT -- src/libstd/io library/std/src/io)
3030
if ! grep -q $COMPILER_COMMIT mapping.rs; then
3131
echo "-Mapping(\"$COMPILER_COMMIT\",\"$IO_COMMIT\")" >> mapping.rs
3232
fi
@@ -40,8 +40,14 @@ get_patch_commits() {
4040

4141
prepare_version() {
4242
mkdir src/$IO_COMMIT
43-
git_extract src/libstd/io/
44-
if git_file_exists src/libcore/slice/memchr.rs; then
43+
if git_file_exists library/std/src/io/mod.rs; then
44+
git_extract library/std/src/io/
45+
else
46+
git_extract src/libstd/io/
47+
fi
48+
if git_file_exists library/core/src/slice/memchr.rs; then
49+
true
50+
elif git_file_exists src/libcore/slice/memchr.rs; then
4551
true
4652
elif git_file_exists src/libstd/sys_common/memchr.rs; then
4753
git_extract src/libstd/sys_common/memchr.rs
@@ -84,6 +90,6 @@ bash_diff_loop() {
8490
;;
8591
esac
8692
done
87-
bash <> /dev/stderr
93+
bash --rcfile <(custom_bashrc) <> /dev/stderr
8894
done
8995
}

mapping.rs

Lines changed: 628 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)