Skip to content

Rebase on Rust 1.41. #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
175ca98
Switch to bootstrapping from dev-static stable
Mark-Simulacrum Dec 17, 2019
eb3f7c2
Auto merge of #67370 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
bors Dec 17, 2019
50132c4
Fix up Command Debug output when arg0 is specified.
jsgf Dec 11, 2019
9efb92d
Move command-related tests into command/
jsgf Dec 12, 2019
72b9452
Don't suppress move errors for union fields
matthewjasper Dec 15, 2019
03436b7
Reenable static linking of libstdc++ on windows-gnu
mati865 Dec 18, 2019
7c4f913
Use the correct type for static qualifs
matthewjasper Dec 25, 2019
e780933
Treat extern statics just like statics in the "const pointer to stati…
oli-obk Dec 26, 2019
097240b
Do not ICE on lifetime error involving closures
estebank Dec 28, 2019
289cd17
Fix rebase damage
jonas-schievink Jan 13, 2020
965ce16
Auto merge of #68189 - jonas-schievink:beta-next, r=Mark-Simulacrum
bors Jan 14, 2020
2aff5b8
expect `fn` after `const unsafe` / `const extern`
Centril Jan 9, 2020
9b23f7c
Do not ICE on unicode next point
estebank Jan 10, 2020
28e0b42
Fix `next_point` to be unicode aware
estebank Jan 10, 2020
89c526a
Fix invalid bounding box
estebank Jan 10, 2020
ec4a464
Change `next_point` when `shrink_to_hi` is more appropriate
estebank Jan 10, 2020
84eb3b2
Add ICE regression tests
estebank Jan 10, 2020
076095b
rustdoc: Don't allow `#![feature(...)]` on stable or beta
ollie27 Jan 7, 2020
fb30562
Auto merge of #68321 - cuviper:beta-next, r=Dylan-DPC
bors Jan 19, 2020
5d4b639
fmt data data structures
Mark-Simulacrum Jan 23, 2020
6a835ea
Revert parts of #66405.
nnethercote Dec 20, 2019
5386cbd
format librustdoc
Mark-Simulacrum Jan 23, 2020
4bed1c7
Distinguish between private items and hidden items in rustdoc
dtolnay Jan 4, 2020
d97ae99
format librustc_errors
Mark-Simulacrum Jan 23, 2020
356ff77
Do not ICE on malformed suggestion spans
estebank Jan 15, 2020
b0a99fd
review comments
estebank Jan 17, 2020
3f41b03
Auto merge of #68496 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
bors Jan 24, 2020
4f763ac
Make pointers to statics internal
matthewjasper Jan 23, 2020
44f959d
Update RELEASES.md for 1.41.0
XAMPPRocky Jan 6, 2020
0a48e73
Update RELEASES.md
XAMPPRocky Jan 21, 2020
5d201d7
switch bootstrap compiler to stable 1.40.0
pietroalbini Jan 27, 2020
4600d3c
1.41.0 stable release
pietroalbini Jan 27, 2020
5e1a799
Auto merge of #68568 - pietroalbini:stable-next, r=pietroalbini
bors Jan 27, 2020
2f78548
The xtensa triples are recognized by the compiler. Need to implement …
MabezDev Mar 5, 2019
a76ea97
Preliminary call abi for xtensa, it almost certainly has mistakes/ mi…
MabezDev Mar 5, 2019
cab3a66
Tweaks to the xtensa call abi, small arrays arguments still need to b…
MabezDev Mar 7, 2019
f16abb8
Add built in target, based on msp430. This uses external gcc to gener…
MabezDev Mar 12, 2019
fbc8b1c
Add xtensa-esp32-none-elf, xtensa-esp8266-none-elf targets. Remove xt…
MabezDev May 27, 2019
7b34499
Update README.md
MabezDev May 31, 2019
d2e0c93
Merge pull request #3 from 0ndorio/fix/register_calculation
MabezDev Jul 25, 2019
31cd44b
Merge pull request #10 from chocol4te/tidy_fix
MabezDev Nov 11, 2019
8d12b2e
Fix ESP8266 linker.
reitermarkus Dec 4, 2019
968b9c4
Add matrix link
MabezDev Feb 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# The Rust Programming Language
# The Rust Programming Language For Xtensa processors

This fork enables projects to be built for the ESP32 and ESP8266 using [espressif's llvm fork](https://github.com/espressif/llvm-xtensa). The [esp-rs](https://github.com/esp-rs) organization has been formed to develop runtime, pac and hal crates for the esp32 and eventually esp8266.

Join in on the discussion: https://matrix.to/#/#esp-rs:matrix.org!

## Using this fork

The [quickstart repo](https://github.com/MabezDev/xtensa-rust-quickstart) has more information on how to build this fork and use it to build xtensa compatible code.

This is the main source code repository for [Rust]. It contains the compiler,
standard library, and documentation.
Expand Down
115 changes: 115 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,118 @@
Version 1.41.0 (2020-01-30)
===========================

Language
--------

- [You can now pass type parameters to foreign items when implementing
traits.][65879] E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
- [You can now arbitrarily nest receiver types in the `self` position.][64325] E.g. you can
now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`,
`&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
- [You can now use any valid identifier in a `format_args` macro.][66847]
Previously identifiers starting with an underscore were not allowed.
- [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
enum variants.][66183] These are still rejected semantically, but
can be seen and parsed by procedural macros and conditional compilation.

Compiler
--------

- [Rustc will now warn if you have unused loop `'label`s.][66325]
- [Removed support for the `i686-unknown-dragonfly` target.][67255]
- [Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.][66661]
- [You can now pass an arguments file passing the `@path` syntax
to rustc.][66172] Note that the format differs somewhat from what is
found in other tooling; please see [the documentation][argfile-docs] for
more information.
- [You can now provide `--extern` flag without a path, indicating that it is
available from the search path or specified with an `-L` flag.][64882]

\* Refer to Rust's [platform support page][forge-platform-support] for more
information on Rust's tiered platform support.

[argfile-docs]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#path-load-command-line-flags-from-a-path

Libraries
---------

- [The `core::panic` module is now stable.][66771] It was already stable
through `std`.
- [`NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer
width.][66277] E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
- [`MaybeUninit<T>` now implements `fmt::Debug`.][65013]

Stabilized APIs
---------------

- [`Result::map_or`]
- [`Result::map_or_else`]
- [`std::rc::Weak::weak_count`]
- [`std::rc::Weak::strong_count`]
- [`std::sync::Weak::weak_count`]
- [`std::sync::Weak::strong_count`]

Cargo
-----

- [Cargo will now document all the private items for binary crates
by default.][cargo/7593]
- [`cargo-install` will now reinstall the package if it detects that it is out
of date.][cargo/7560]
- [Cargo.lock now uses a more git friendly format that should help to reduce
merge conflicts.][cargo/7579]
- [You can now override specific dependencies's build settings][cargo/7591] E.g.
`[profile.dev.overrides.image] opt-level = 2` sets the `image` crate's
optimisation level to `2` for debug builds. You can also use
`[profile.<profile>.build_overrides]` to override build scripts and
their dependencies.

Misc
----

- [You can now specify `edition` in documentation code blocks to compile the block
for that edition.][66238] E.g. `edition2018` tells rustdoc that the code sample
should be compiled the 2018 edition of Rust.
- [You can now provide custom themes to rustdoc with `--theme`, and check the
current theme with `--check-theme`.][54733]
- [You can use `#[cfg(doc)]` to compile an item when building documentation.][61351]

Compatibility Notes
-------------------

- [As previously announced 1.41.0 will be the last tier 1 release for 32-bit
Apple targets.][apple-32bit-drop] This means that the source code is still
available to build, but the targets are no longer being tested and release
binaries for those platforms will no longer be distributed by the Rust project.
Please refer to the linked blog post for more information.

[54733]: https://github.com/rust-lang/rust/pull/54733/
[61351]: https://github.com/rust-lang/rust/pull/61351/
[67255]: https://github.com/rust-lang/rust/pull/67255/
[66661]: https://github.com/rust-lang/rust/pull/66661/
[66771]: https://github.com/rust-lang/rust/pull/66771/
[66847]: https://github.com/rust-lang/rust/pull/66847/
[66238]: https://github.com/rust-lang/rust/pull/66238/
[66277]: https://github.com/rust-lang/rust/pull/66277/
[66325]: https://github.com/rust-lang/rust/pull/66325/
[66172]: https://github.com/rust-lang/rust/pull/66172/
[66183]: https://github.com/rust-lang/rust/pull/66183/
[65879]: https://github.com/rust-lang/rust/pull/65879/
[65013]: https://github.com/rust-lang/rust/pull/65013/
[64882]: https://github.com/rust-lang/rust/pull/64882/
[64325]: https://github.com/rust-lang/rust/pull/64325/
[cargo/7560]: https://github.com/rust-lang/cargo/pull/7560/
[cargo/7579]: https://github.com/rust-lang/cargo/pull/7579/
[cargo/7591]: https://github.com/rust-lang/cargo/pull/7591/
[cargo/7593]: https://github.com/rust-lang/cargo/pull/7593/
[`Result::map_or_else`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or_else
[`Result::map_or`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or
[`std::rc::Weak::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.weak_count
[`std::rc::Weak::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.strong_count
[`std::sync::Weak::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.weak_count
[`std::sync::Weak::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.strong_count
[apple-32bit-drop]: https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html

Version 1.40.0 (2019-12-19)
===========================

Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ pub fn rustc_cargo_env(builder: &Builder<'_>, cargo: &mut Cargo, target: Interne
// not for MSVC or macOS
if builder.config.llvm_static_stdcpp &&
!target.contains("freebsd") &&
!target.contains("windows") &&
!target.contains("msvc") &&
!target.contains("apple") {
let file = compiler_file(builder,
builder.cxx(target).unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion src/ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi
#
# FIXME: need a scheme for changing this `nightly` value to `beta` and `stable`
# either automatically or manually.
export RUST_RELEASE_CHANNEL=nightly
export RUST_RELEASE_CHANNEL=stable
if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL"
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
Expand Down
2 changes: 0 additions & 2 deletions src/librustc/ty/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,6 @@ impl<'tcx> TyCtxt<'tcx> {

if self.is_mutable_static(def_id) {
self.mk_mut_ptr(static_ty)
} else if self.is_foreign_item(def_id) {
self.mk_imm_ptr(static_ty)
} else {
self.mk_imm_ref(self.lifetimes.re_erased, static_ty)
}
Expand Down
Loading