-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
compiler error E0505 example compiles with 2018 edition #58586
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
Comments
Where are the error code examples in the repo? |
gurgalex
changed the title
compiler error E505 example compiles with 2018 edition
compiler error E0505 example compiles with 2018 edition
Feb 20, 2019
rust/src/librustc_mir/diagnostics.rs Lines 1540 to 1557 in 8af675a
|
estebank
added
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
and removed
A-diagnostics
Area: Messages for errors, warnings, and lints
labels
Feb 20, 2019
Which part do I need to build for |
gurgalex
added a commit
to gurgalex/rust
that referenced
this issue
Feb 20, 2019
I think a stage 1 build should be fine? |
Centril
added a commit
to Centril/rust
that referenced
this issue
Feb 22, 2019
…n, r=matthewjasper Fixes rust-lang#58586: Make E0505 erronous example fail for the 2018 edition The original example worked for 2015, but not the 2018 edition of Rust. Borrowing the moved value after ownership is transferred seems required for 2018. [this](rust-lang/rust@rust-lang:f66e469...gurgalex:b2a02c8#diff-4ca866aea4a6efecd732f1975faaad88R1564) line though is correct for 2018, but not for the 2015 edition. Fix rust-lang#58586
Centril
added a commit
to Centril/rust
that referenced
this issue
Feb 22, 2019
…n, r=matthewjasper Fixes rust-lang#58586: Make E0505 erronous example fail for the 2018 edition The original example worked for 2015, but not the 2018 edition of Rust. Borrowing the moved value after ownership is transferred seems required for 2018. [this](rust-lang/rust@rust-lang:f66e469...gurgalex:b2a02c8#diff-4ca866aea4a6efecd732f1975faaad88R1564) line though is correct for 2018, but not for the 2015 edition. Fix rust-lang#58586
bors
added a commit
that referenced
this issue
Feb 22, 2019
Rollup of 17 pull requests Successful merges: - #57656 (Deprecate the unstable Vec::resize_default) - #58059 (deprecate before_exec in favor of unsafe pre_exec) - #58064 (override `VecDeque::try_rfold`, also update iterator) - #58198 (Suggest removing parentheses surrounding lifetimes) - #58431 (fix overlapping references in BTree) - #58555 (Add a note about 2018e if someone uses `try {` in 2015e) - #58588 (remove a bit of dead code) - #58589 (cleanup macro after 2018 transition) - #58591 (Dedup a rustdoc diagnostic construction) - #58600 (fix small documentation typo) - #58601 (Search for target_triple.json only if builtin target not found) - #58606 (Docs: put Future trait into spotlight) - #58607 (Fixes #58586: Make E0505 erronous example fail for the 2018 edition) - #58615 (miri: explain why we use static alignment in ref-to-place conversion) - #58620 (introduce benchmarks of BTreeSet.intersection) - #58621 (Update miri links) - #58632 (Make std feature list sorted) Failed merges: r? @ghost
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
Taken from https://doc.rust-lang.org
Erroneous code compiles fine for E0505
A possible way to trigger E0505 in the 2018 edition
Rust version 1.32 on playground
The text was updated successfully, but these errors were encountered: