Skip to content
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

inform user where to give a type annotation after a call to collect #47982

Closed
wants to merge 297 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
297 commits
Select commit Hold shift + click to select a range
760879b
Allow `?` as a KleeneOp in the macro parser
mark-i-m Jan 19, 2018
bb8110c
Update the macro parser to allow at most once repetitions for `?` Kleene
mark-i-m Jan 19, 2018
c33649c
Run rustfmt on quoted.rs
mark-i-m Jan 19, 2018
711f71c
Add a couple of tests
mark-i-m Jan 19, 2018
5ac48ec
Run rustfmt on macro_parser.rs
mark-i-m Jan 19, 2018
f59b821
Attempted fix for `?` kleene op
mark-i-m Jan 25, 2018
51ef739
Fix typo in error message + update tests
mark-i-m Jan 25, 2018
4897a05
Fix a couple of tests
mark-i-m Jan 25, 2018
3c15405
Add feature gate + tests
mark-i-m Jan 26, 2018
5c4b4fe
Corrected ui feature gate test
mark-i-m Jan 26, 2018
bd98a93
Fix more tests
mark-i-m Jan 26, 2018
6943430
Add ? to unstable book
mark-i-m Jan 26, 2018
3859eca
Improved tests + typo fixes + assert
mark-i-m Jan 29, 2018
786b2ca
Fix trailing whitespace
mark-i-m Jan 30, 2018
a99b5db
stabilize match_beginning_vert
goodmanjonathan Jan 30, 2018
549534e
Update a few comments
mark-i-m Jan 30, 2018
f641ac6
Add regression test for #44415
Jan 24, 2018
5985b0b
wherein the parens lint keeps its own counsel re args in nested macros
zackmdavis Jan 31, 2018
cfe53c0
Export wasm source map when debug information is enabled
yurydelendik Jan 30, 2018
bc8e11b
Fix ICE when assigning references to a static mut with NLL
Aaron1011 Jan 31, 2018
5a350c1
add doc(include) to the save-analysis test
QuietMisdreavus Jan 31, 2018
e2de8de
Enable stack-probe tests with system LLVM >= 5.0
cuviper Jan 31, 2018
55b54a9
Use a range to identify SIGSEGV in stack guards
cuviper Jan 31, 2018
b9441f2
Improve char escaping in lexer messages
etaoins Jan 31, 2018
9c3dc7e
rustc: prefer ParamEnvAnd and LayoutCx over tuples for LayoutOf.
eddyb Jan 31, 2018
cf78ff3
Fix lang items box example code
vmx Jan 31, 2018
f976291
Correctly subst the fn_sig so that we get the correct types
Manishearth Jan 30, 2018
dfd244d
Eliminate ret_field and ret intermediates in array clone shim
Manishearth Jan 30, 2018
8a8f91b
Generalize tuple_like_shim's code to be useful for enums
Manishearth Jan 30, 2018
0fd4f37
Fix overflow when performing drop check calculations in NLL
Aaron1011 Feb 1, 2018
8f9d915
in which HirIdMap is introduced as an affordance for using HirIds more
zackmdavis Feb 1, 2018
e4b1a79
concerning well-formed suggestions for unused shorthand field patterns
zackmdavis Feb 1, 2018
e34c31b
Use constant for 180/π in to_degrees
varkor Feb 1, 2018
aaec608
Minimize weird spans involving macro context
estebank Feb 1, 2018
accd997
add ellided lifetime
Feb 1, 2018
196fad0
Turn `type_id` into a constant intrinsic
Badel2 Jan 30, 2018
8b8d044
Fix ugly hover in sidebar
GuillaumeGomez Feb 1, 2018
c1383e4
Add filtering options to `rustc_on_unimplemented`
estebank Jan 20, 2018
4c92a02
Change rustc_on_unimplemented for Iterator and binops
estebank Jan 20, 2018
621e61b
Add filter to detect local crates for rustc_on_unimplemented
estebank Jan 20, 2018
2dee07b
Remove cast suggestions
estebank Jan 20, 2018
27a23db
Rework `parse_ident_attr`
estebank Jan 23, 2018
f7c6178
Fix tests
estebank Jan 23, 2018
378e73e
Remove support for `Self` in attributes
estebank Feb 1, 2018
fd3f231
Fix test after rebase
estebank Feb 1, 2018
c785013
Remove dead code
Manishearth Jan 29, 2018
c22d6e2
Fix rustdoc ICE on macros defined within functions
Manishearth Feb 2, 2018
ee737c7
Add regression test
Manishearth Feb 2, 2018
3600bfb
Rollup merge of #46156 - SimonSapin:patch-14, r=withoutboats
kennytm Feb 2, 2018
0f36b2c
Rollup merge of #47829 - estebank:break-in-for, r=cramertj Suggest re…
kennytm Feb 2, 2018
a671944
Rollup merge of #47842 - Manishearth:dead-code, r=nagisa Remove dead …
kennytm Feb 2, 2018
2e3a8f5
Rollup merge of #47898 - Aaron1011:static-ref-nll, r=nikomatsakis Fix…
kennytm Feb 2, 2018
b4b73a1
Rollup merge of #47914 - etaoins:improve-char-escape-in-lexer-msg, r=…
kennytm Feb 2, 2018
5edeff3
Rollup merge of #47916 - vmx:patch-2, r=kennytm Fix lang items box ex…
kennytm Feb 2, 2018
7c6380c
Rollup merge of #47919 - varkor:to_degrees-precision, r=rkruppe Use c…
kennytm Feb 2, 2018
9d995d2
Rollup merge of #47942 - estebank:macro-spans, r=nikomatsakis Minimiz…
kennytm Feb 2, 2018
8d1586d
Rollup merge of #47951 - GuillaumeGomez:sidebar-hover, r=QuietMisdrea…
kennytm Feb 2, 2018
a7646df
Remove commented-out code
Aaron1011 Feb 2, 2018
321e429
copy_nonoverlapping example: Fixed typo
perlun Feb 2, 2018
cc68afb
ui tests: diff from old (expected) to new (actual) instead of backwards.
eddyb Feb 3, 2018
3a0a423
Rollup merge of #47973 - perlun:patch-1, r=dtolnay
kennytm Feb 3, 2018
6b35d81
Fix const evaluation ICE in rustdoc
GuillaumeGomez Jan 29, 2018
8d04b8f
Auto merge of #47962 - kennytm:rollup, r=kennytm
bors Feb 3, 2018
dde3611
Fix rendering issues on mobile
GuillaumeGomez Jan 27, 2018
9b4b2d7
inform user where to give a type annotation after a call to collect
csmoe Feb 3, 2018
aa0a5a8
Auto merge of #46254 - Dylan-DPC:ellided-lifetime, r=nikomatsakis
bors Feb 3, 2018
d597da3
Clarify shared file handler behavior of File::try_clone.
frewsxcv Feb 2, 2018
3d292b7
Auto merge of #47845 - Zoxc:gen-fixes, r=nikomatsakis
bors Feb 3, 2018
e1f04c0
Disable ThinLTO for dist builds.
Mark-Simulacrum Jan 28, 2018
cec82c1
Update RLS and Rustfmt
nrc Feb 1, 2018
9af374a
Auto merge of #47915 - eddyb:layout-of, r=nikomatsakis
bors Feb 4, 2018
61ff3ba
libtest: Replace panics with error messages
Jan 27, 2018
3d114c7
Remove delay_span_bug() in check_aliasability
topecongiro Feb 4, 2018
3986539
Auto merge of #47991 - nrc:update, r=alexcrichton
bors Feb 4, 2018
c26abe7
Fix not selectable search input
GuillaumeGomez Feb 4, 2018
8a587e6
Improve big sidebar elements display
GuillaumeGomez Feb 4, 2018
32d5fbe
Run the `run-make` tests last, so more tests run on Windows when `mak…
Zoxc Feb 4, 2018
0c6091f
Auto merge of #47834 - Mark-Simulacrum:no-cgu-release, r=alexcrichton
bors Feb 4, 2018
a1809d5
Implement TrustedLen for Take<Repeat> and Take<RangeFrom>
oberien Jan 18, 2018
75474ff
TrustedLen for Repeat / RangeFrom test cases
oberien Feb 2, 2018
6caec2c
Document TrustedLen guarantees more explicitly
oberien Feb 4, 2018
f168700
Remove 'the this' in doc comments.
jaystrictor Feb 4, 2018
6869863
Rollup merge of #47862 - GuillaumeGomez:const-evaluation-ice, r=eddyb
kennytm Feb 4, 2018
f3dc756
Rollup merge of #47877 - spastorino:lifetime-bounds-in-copy, r=nikoma…
kennytm Feb 4, 2018
349115e
Rollup merge of #47896 - zackmdavis:and_the_case_of_the_necessary_unn…
kennytm Feb 4, 2018
8b8c6ee
Rollup merge of #47912 - cuviper:glibc-stack-guard, r=alexcrichton
kennytm Feb 4, 2018
1439c2a
Rollup merge of #47947 - goodmanjonathan:stabilize_match_beginning_ve…
kennytm Feb 4, 2018
e58cff2
Rollup merge of #47958 - frewsxcv:frewsxcv-try-clone, r=aidanhs
kennytm Feb 4, 2018
393cd89
Rollup merge of #47978 - eddyb:iu, r=kennytm
kennytm Feb 4, 2018
adb5849
Rollup merge of #47996 - Zoxc:run-make-last, r=Mark-Simulacrum
kennytm Feb 4, 2018
66d6c85
Rollup merge of #47999 - jaystrictor:master, r=Mark-Simulacrum
kennytm Feb 4, 2018
e17ebdf
Rollup merge of #47892 - Badel2:const_type_id_of, r=oli-obk
kennytm Feb 4, 2018
f243f92
Fix info about generic impls in AsMut docs
mbrubeck Feb 4, 2018
dcb3e21
update trpl
steveklabnik Jan 25, 2018
b320829
update reference
steveklabnik Jan 26, 2018
5437188
update mdbook to 0.1.2
steveklabnik Jan 25, 2018
983cc00
add exceptions for new deps
steveklabnik Feb 3, 2018
3c72a84
save-analysis: avoid implicit unwrap
nrc Feb 4, 2018
e7e982a
Auto merge of #47998 - kennytm:rollup, r=kennytm
bors Feb 4, 2018
dd29d3d
Auto merge of #47865 - Manishearth:cleanup-shim, r=nikomatsakis
bors Feb 5, 2018
07ea260
Auto merge of #47873 - Aaron1011:final-ref-coerce, r=nikomatsakis
bors Feb 5, 2018
1b1e887
Override try_[r]fold for RangeInclusive
scottmcm Feb 5, 2018
1461d12
Use time crate in bootstrap dist instead of date
onur Feb 5, 2018
b0a396b
Auto merge of #47920 - Aaron1011:nll-overflow, r=pnkfelix
bors Feb 5, 2018
01f0814
Stabilize use_nested_groups
pietroalbini Feb 1, 2018
70717f2
Update clippy and miri submodule
oli-obk Jan 30, 2018
a29d854
Make inline assembly volatile if it has no outputs. Fixes #46026
Zoxc Nov 16, 2017
6c04c41
Auto merge of #47881 - oli-obk:miri_clippy, r=Manishearth
bors Feb 5, 2018
c83dd03
Clarify 'trait bounds ignored' wording
RalfJung Feb 5, 2018
7be8e2f
Add build.tools option to manage installation of extended rust tools.
o01eg Feb 5, 2018
eb5a461
Rollup merge of #46030 - Zoxc:asm-volatile, r=nikomatsakis
kennytm Feb 5, 2018
cde119d
Rollup merge of #47496 - QuietMisdreavus:rls-doc-include, r=estebank
kennytm Feb 5, 2018
9dab737
Rollup merge of #47543 - topecongiro:issue-42344, r=nikomatsakis
kennytm Feb 5, 2018
a405a08
Rollup merge of #47704 - dsprenkels:issue-44415, r=alexcrichton
kennytm Feb 5, 2018
ddc4284
Rollup merge of #47753 - steveklabnik:update-book, r=alexcrichton
kennytm Feb 5, 2018
e8688b4
Rollup merge of #47807 - tbu-:pr_doc_constanttime_cstr, r=steveklabnik
kennytm Feb 5, 2018
55aef3c
Rollup merge of #47948 - pietroalbini:use-nested-groups-stabilize, r=…
kennytm Feb 5, 2018
daecd15
Rollup merge of #47959 - Manishearth:rustdoc-ice, r=Mark-Simulacrum
kennytm Feb 5, 2018
e2f6e13
Rollup merge of #48003 - mbrubeck:docs, r=steveklabnik
kennytm Feb 5, 2018
0553dc8
Rollup merge of #48007 - nrc:rls-field-init, r=eddyb
kennytm Feb 5, 2018
27a4e73
rustc: Add `#[rustc_args_required_const]`
alexcrichton Feb 5, 2018
5ca88ae
Fix comment in ExprKind::LogicalOp
sapphire-arches Jan 22, 2018
bdc37aa
mir: Add TerminatorKind::FalseUnwind
sapphire-arches Jan 25, 2018
ed6a2eb
mir: Add false edge cleanup out of infinite loops
sapphire-arches Jan 26, 2018
eae1a35
mir: Add and fix tests for FalseUnwinds
sapphire-arches Jan 27, 2018
2aae227
Warn about more ignored bounds on type aliases
RalfJung Feb 5, 2018
5cd4b4f
Swapped order of left/right visits to ensure consistency in read/writ…
davidtwco Feb 5, 2018
b55e07e
correct E0619 span re method call receivers whose type must be known
zackmdavis Feb 6, 2018
2cff123
Add -Zepoch
Manishearth Feb 4, 2018
d0ab8f0
Convert tyvar_behind_raw_pointer to hard error for the 2018 epoch
Manishearth Feb 4, 2018
b224fc8
Auto merge of #48017 - kennytm:rollup, r=kennytm
bors Feb 6, 2018
ca7d839
Auto merge of #47203 - varkor:output-filename-conflicts-with-director…
bors Feb 6, 2018
8d8ba81
config.toml.example: fix typos.
matthiaskrgr Feb 6, 2018
3cf73f4
proc_macro: don't panic parsing ..= (fix #47950)
durka Feb 6, 2018
fefd5e9
fix docs link
QuietMisdreavus Feb 6, 2018
ac183f8
improve wording: bounds -> generic bounds
RalfJung Feb 6, 2018
bb6e54d
Added and updated tests to enable/disable overflow checks.
davidtwco Feb 6, 2018
498ef20
Trait objects cannot contain associated constants
Badel2 Feb 6, 2018
0a3e07d
Rollup merge of #46962 - clarcharr:os_raw_docs, r=QuietMisdreavus
kennytm Feb 6, 2018
a026e8a
Rollup merge of #47986 - Gilnaa:libtest_relaxed, r=Mark-Simulacrum
kennytm Feb 6, 2018
4f184eb
Rollup merge of #48012 - scottmcm:faster-rangeinclusive-fold, r=alexc…
kennytm Feb 6, 2018
3373f65
Rollup merge of #48013 - onur:use-time-in-bootstrap-dist, r=alexcrichton
kennytm Feb 6, 2018
ccdb320
Rollup merge of #48026 - Badel2:doc-assoc-const-object-safe, r=nikoma…
kennytm Feb 6, 2018
d0e7da4
Rollup merge of #48031 - matthiaskrgr:exampleconfigtoml_typos, r=kennytm
kennytm Feb 6, 2018
7f0e87a
Rollup merge of #48036 - durka:proc-macro-doteq, r=alexcrichton
kennytm Feb 6, 2018
bd98fe0
Auto merge of #48040 - kennytm:rollup, r=kennytm
bors Feb 6, 2018
83a9f49
Fill in long diagnostic
Manishearth Feb 4, 2018
b8aa8ca
Add tests for -Zepoch using tyvar_raw_pointer
Manishearth Feb 5, 2018
4f93357
Auto merge of #47607 - davidtwco:issue-45697, r=nikomatsakis
bors Feb 7, 2018
5de094e
mir: Fix DefiningTy::Const
sapphire-arches Feb 2, 2018
e99f8fc
Update trait-associated-const test to new format
sapphire-arches Feb 7, 2018
daaa9a4
Fix ICE for mismatched args on target without span
etaoins Feb 7, 2018
528d6b6
rustdoc: Hide `-> ()` in cross crate inlined Fn* bounds
ollie27 Feb 7, 2018
fee39ba
Auto merge of #47957 - bobtwinkles:fix_mir_consts, r=nikomatsakis
bors Feb 7, 2018
aee2255
Rollup merge of #47613 - estebank:rustc_on_unimplemented, r=nikomatsakis
Manishearth Feb 7, 2018
d920f1f
Rollup merge of #47631 - SimonSapin:nonnull, r=alexcrichton
Manishearth Feb 7, 2018
185f258
Rollup merge of #47810 - GuillaumeGomez:fix-theme-but-position, r=Qui…
Manishearth Feb 7, 2018
d2f7feb
Rollup merge of #47883 - yurydelendik:wasm-map, r=alexcrichton
Manishearth Feb 7, 2018
0ba8712
Rollup merge of #47922 - zackmdavis:and_the_case_of_the_unused_field_…
Manishearth Feb 7, 2018
da6dcbc
Rollup merge of #47944 - oberien:unboundediterator-trustedlen, r=bluss
Manishearth Feb 7, 2018
6908fb7
Rollup merge of #48014 - Manishearth:stealing-chickens-on-the-interne…
Manishearth Feb 7, 2018
993322e
Rollup merge of #48018 - alexcrichton:require-const-arg, r=eddyb
Manishearth Feb 7, 2018
e2b7458
Rollup merge of #48020 - RalfJung:type-alias-bounds, r=petrochenkov
Manishearth Feb 7, 2018
732c830
Rollup merge of #48028 - zackmdavis:and_the_span_of_the_unknown_type,…
Manishearth Feb 7, 2018
29c8276
Auto merge of #48053 - Manishearth:rollup, r=Manishearth
bors Feb 7, 2018
78a0b7f
Refactor checks on list of extended tools.
o01eg Feb 7, 2018
27d4d51
Simplify RangeInclusive::next[_back]
scottmcm Feb 7, 2018
8e0c3f5
[ci skip] Generate false edges from loop_block
sapphire-arches Feb 7, 2018
37b5af2
Update binaryen to fix -Werror with GCC 8
cuviper Feb 7, 2018
04fde1c
intra-doc-links: bail early for linky things
Manishearth Feb 8, 2018
85dfa9d
Fix tests for MIR loop lowering
sapphire-arches Feb 8, 2018
e87e0bc
Add `-Zteach` documentation
estebank Jan 29, 2018
932c736
Auto merge of #48057 - scottmcm:less-match-more-compare, r=dtolnay
bors Feb 8, 2018
94ad4e1
Add theme tests
GuillaumeGomez Jan 23, 2018
b44b033
get differences
GuillaumeGomez Jan 25, 2018
649715d
Fix missing rules for dark.css
GuillaumeGomez Jan 25, 2018
583b29f
Handle comments in css selector and add tests
GuillaumeGomez Jan 25, 2018
9ee6981
Add test when trying to add new theme
GuillaumeGomez Jan 25, 2018
63ee1cd
Improve output a bit in case of error
GuillaumeGomez Jan 25, 2018
51580d4
Add tests for themes
GuillaumeGomez Jan 25, 2018
b1b11d4
Pass themes folder as parameter
GuillaumeGomez Jan 27, 2018
dec9fab
Convert python script to rust
GuillaumeGomez Feb 5, 2018
c00266b
Encode (in MIR) whether borrows are explicit in source or arise due t…
pnkfelix Jan 15, 2018
1855ab7
Restrict two-phase borrows to solely borrows introduced via autoref.
pnkfelix Jan 16, 2018
c8041dd
Add `AutoBorrowMutability`; its like `hir::Mutability` but w/ two-ph…
pnkfelix Jan 23, 2018
81b93fa
Test that autoref'ing beyond method receivers does not leak into two-…
pnkfelix Feb 6, 2018
b55cd8c
Fleshed out the test a lot more.
pnkfelix Feb 6, 2018
5f3dc8b
Fix oversized loads on x86_64 SysV FFI calls
dotdash Jan 20, 2018
4aa66db
rustc: don't ICE when using Rvalue::Discriminant on a non-ADT.
eddyb Feb 8, 2018
51f0c0d
Move some E0XXX to `ui`
estebank Feb 8, 2018
35dca7e
Add `rustc_args_required_const` to the feature whitelist
alexcrichton Feb 8, 2018
7a20fc1
Disallow function pointers to #[rustc_args_required_const]
alexcrichton Feb 8, 2018
e9bcb4e
Hide theme button under menu in mobile mode and fix top margin issue …
GuillaumeGomez Feb 8, 2018
64a8730
rustbuild: Pass `ccache` to build scripts
alexcrichton Feb 7, 2018
4cf3b65
Use the right tracking issue
mark-i-m Feb 9, 2018
afa8acc
Auto merge of #47489 - pnkfelix:limit-2pb-issue-46747, r=nikomatsakis
bors Feb 9, 2018
1bd0862
Update feature gate test
mark-i-m Feb 9, 2018
b92e542
Fix the test
mark-i-m Feb 9, 2018
02537fb
Auto merge of #47761 - GuillaumeGomez:test-themes, r=Mark-Simulacrum
bors Feb 9, 2018
774997d
Fix visitation order of calls so that it matches execution order. Fix…
Zoxc Feb 9, 2018
3bcda48
Auto merge of #47802 - bobtwinkles:loop_false_edge, r=nikomatsakis
bors Feb 9, 2018
9c05bab
ci: Actually bootstrap on i686 dist
alexcrichton Feb 9, 2018
fe8e0d9
Update books for next release
Mark-Simulacrum Feb 9, 2018
8af134e
rustc_mir: insert a dummy access to places being matched on, when bui…
eddyb Feb 9, 2018
1335b3d
Add fetch_nand.
Mark-Simulacrum Feb 9, 2018
e6f910e
fix typo: substract -> subtract.
matthiaskrgr Feb 9, 2018
6b7b6b6
rustc: Upgrade to LLVM 6
alexcrichton Jan 22, 2018
9a6afa8
Emit data::Impl in save-analysis
algesten Feb 2, 2018
39abcc0
Auto merge of #47828 - alexcrichton:llvm-6, r=nikomatsakis
bors Feb 10, 2018
6bbee8d
Rollup merge of #47790 - tinaun:patch-1, r=sfackler
kennytm Feb 10, 2018
4f8ea49
Rollup merge of #47835 - Mark-Simulacrum:remove-data-structs, r=nikom…
kennytm Feb 10, 2018
262703c
Rollup merge of #47854 - varkor:create-out-dir, r=pnkfelix
kennytm Feb 10, 2018
077979f
Rollup merge of #48015 - o01eg:disableable-installation, r=alexcrichton
kennytm Feb 10, 2018
c04ec2c
Rollup merge of #48047 - etaoins:fix-ice-for-mismatched-args-on-targe…
kennytm Feb 10, 2018
4139c0a
Rollup merge of #48051 - ollie27:rustdoc_fn_unit_return, r=QuietMisdr…
kennytm Feb 10, 2018
2259e0d
Rollup merge of #48058 - cuviper:binaryen-gcc8, r=alexcrichton
kennytm Feb 10, 2018
73d2767
Rollup merge of #48059 - alexcrichton:sccachebs, r=Mark-Simulacrum
kennytm Feb 10, 2018
d6394e5
Rollup merge of #48064 - Manishearth:intra-doc-bail, r=QuietMisdreavus
kennytm Feb 10, 2018
1e10ca0
Rollup merge of #48078 - alexcrichton:fix-required-const-and-proc-mac…
kennytm Feb 10, 2018
a580eef
Rollup merge of #48080 - GuillaumeGomez:mobile-docs-fixes, r=QuietMis…
kennytm Feb 10, 2018
3554c3a
Rollup merge of #48086 - Zoxc:gen-fix, r=nikomatsakis
kennytm Feb 10, 2018
22c5067
Rollup merge of #48098 - alexcrichton:fix-i686-dist-bootstrap, r=Mark…
kennytm Feb 10, 2018
a37a329
Rollup merge of #48101 - Mark-Simulacrum:new-books, r=steveklabnik
kennytm Feb 10, 2018
6605d03
Rollup merge of #48107 - matthiaskrgr:typo__substract_to_subtract, r=…
kennytm Feb 10, 2018
8550ac8
Rollup merge of #48100 - Mark-Simulacrum:fetch-nand, r=alexcrichton
kennytm Feb 10, 2018
7ee3e39
fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}}
matthiaskrgr Feb 10, 2018
49f7ccd
Update the dlmalloc submodule
alexcrichton Feb 9, 2018
3a96767
Explain unusual debugging code in librustc
alexcrichton Feb 10, 2018
c888f72
Rollup merge of #48085 - alexcrichton:update-dlmalloc, r=Mark-Simulacrum
kennytm Feb 10, 2018
18d7be3
Rollup merge of #48120 - matthiaskrgr:typos_src_1, r=alexcrichton
kennytm Feb 10, 2018
b37c602
Rollup merge of #48124 - alexcrichton:clean-up-debugging, r=kennytm
kennytm Feb 10, 2018
4a82718
Rollup merge of #47547 - varkor:infinite-iterators-warning-doc, r=fre…
kennytm Feb 10, 2018
45fba43
Auto merge of #48113 - kennytm:rollup, r=kennytm
bors Feb 10, 2018
28b39f5
Update release notes for 1.24.0
Jan 9, 2018
d0f1f42
Auto merge of #47286 - Aaronepower:master, r=Mark-Simulacrum
bors Feb 10, 2018
7f2baba
Auto merge of #48092 - eddyb:discriminate-the-void, r=nikomatsakis
bors Feb 11, 2018
0bb8935
Auto merge of #47657 - algesten:save-analysis-impls, r=nrc
bors Feb 11, 2018
0196b20
Auto merge of #47614 - dotdash:x86_64_sysv_ffi, r=eddyb
bors Feb 11, 2018
b8398d9
Auto merge of #47752 - mark-i-m:at-most-once-rep, r=nikomatsakis
bors Feb 11, 2018
66ee33a
compiletest: Delete the executable immediately after running.
kennytm Feb 11, 2018
00bce71
Delete executables if the test ran successfully.
Mark-Simulacrum Feb 11, 2018
b54f27b
Auto merge of #48144 - kennytm:reduce-musl-test-size, r=Mark-Simulacrum
bors Feb 12, 2018
16362c7
Auto merge of #47843 - estebank:teach, r=nikomatsakis
bors Feb 12, 2018
4d2d3fc
Auto merge of #47804 - retep007:recursive-requirements, r=pnkfelix
bors Feb 13, 2018
6889c08
upate tests
csmoe Feb 13, 2018
32e9f6b
inform user where to give a type annotation after a call to collect
csmoe Feb 3, 2018
2b16b65
upate tests
csmoe Feb 13, 2018
db99689
rebase
csmoe Feb 13, 2018
9a39471
Merge branch 'give_type_annotation_after_collect' of https://github.c…
csmoe Feb 13, 2018
57437f2
Revert "Merge branch 'give_type_annotation_after_collect' of https://…
csmoe Feb 13, 2018
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
5 changes: 0 additions & 5 deletions config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,6 @@
# bootstrap)
#codegen-backends = ["llvm"]

# Flag indicating whether `libstd` calls an imported function to hande basic IO
# when targetting WebAssembly. Enable this to debug tests for the `wasm32-unknown-unknown`
# target, as without this option the test output will not be captured.
#wasm-syscall = false

# =============================================================================
# Options for specific targets
#
Expand Down
17 changes: 0 additions & 17 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,6 @@ impl<'a> Builder<'a> {
self.ensure(Libdir { compiler, target })
}

pub fn sysroot_codegen_backends(&self, compiler: Compiler) -> PathBuf {
self.sysroot_libdir(compiler, compiler.host)
.with_file_name("codegen-backends")
}

/// Returns the compiler's libdir where it stores the dynamic libraries that
/// it itself links against.
///
Expand Down Expand Up @@ -474,18 +469,6 @@ impl<'a> Builder<'a> {
stage = compiler.stage;
}

let mut extra_args = env::var(&format!("RUSTFLAGS_STAGE_{}", stage)).unwrap_or_default();
if stage != 0 {
let s = env::var("RUSTFLAGS_STAGE_NOT_0").unwrap_or_default();
extra_args.push_str(" ");
extra_args.push_str(&s);
}

if !extra_args.is_empty() {
cargo.env("RUSTFLAGS",
format!("{} {}", env::var("RUSTFLAGS").unwrap_or_default(), extra_args));
}

// Customize the compiler we're running. Specify the compiler to cargo
// as our shim and then pass it some various options used to configure
// how the actual compiler itself is called.
Expand Down
3 changes: 2 additions & 1 deletion src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ fn copy_codegen_backends_to_sysroot(builder: &Builder,
//
// Here we're looking for the output dylib of the `CodegenBackend` step and
// we're copying that into the `codegen-backends` folder.
let dst = builder.sysroot_codegen_backends(target_compiler);
let libdir = builder.sysroot_libdir(target_compiler, target);
let dst = libdir.join("codegen-backends");
t!(fs::create_dir_all(&dst));

for backend in builder.config.rust_codegen_backends.iter() {
Expand Down
3 changes: 0 additions & 3 deletions src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ pub struct Config {
pub debug_jemalloc: bool,
pub use_jemalloc: bool,
pub backtrace: bool, // support for RUST_BACKTRACE
pub wasm_syscall: bool,

// misc
pub low_priority: bool,
Expand Down Expand Up @@ -283,7 +282,6 @@ struct Rust {
test_miri: Option<bool>,
save_toolstates: Option<String>,
codegen_backends: Option<Vec<String>>,
wasm_syscall: Option<bool>,
}

/// TOML representation of how each build target is configured.
Expand Down Expand Up @@ -465,7 +463,6 @@ impl Config {
set(&mut config.rust_dist_src, rust.dist_src);
set(&mut config.quiet_tests, rust.quiet_tests);
set(&mut config.test_miri, rust.test_miri);
set(&mut config.wasm_syscall, rust.wasm_syscall);
config.rustc_parallel_queries = rust.experimental_parallel_queries.unwrap_or(false);
config.rustc_default_linker = rust.default_linker.clone();
config.musl_root = rust.musl_root.clone().map(PathBuf::from);
Expand Down
8 changes: 5 additions & 3 deletions src/bootstrap/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,11 @@ impl Step for Rustc {
}

// Copy over the codegen backends
let backends_src = builder.sysroot_codegen_backends(compiler);
let backends_rel = backends_src.strip_prefix(&src).unwrap();
let backends_dst = image.join(&backends_rel);
let backends_src = builder.sysroot_libdir(compiler, host)
.join("codegen-backends");
let backends_dst = image.join("lib/rustlib")
.join(&*host)
.join("lib/codegen-backends");
t!(fs::create_dir_all(&backends_dst));
cp_r(&backends_src, &backends_dst);

Expand Down
3 changes: 0 additions & 3 deletions src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,6 @@ impl Build {
if self.config.profiler {
features.push_str(" profiler");
}
if self.config.wasm_syscall {
features.push_str(" wasm_syscall");
}
features
}

Expand Down
8 changes: 0 additions & 8 deletions src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1286,14 +1286,6 @@ impl Step for Crate {
cargo.env(format!("CARGO_TARGET_{}_RUNNER", envify(&target)),
build.config.nodejs.as_ref().expect("nodejs not configured"));
} else if target.starts_with("wasm32") {
// Warn about running tests without the `wasm_syscall` feature enabled.
// The javascript shim implements the syscall interface so that test
// output can be correctly reported.
if !build.config.wasm_syscall {
println!("Libstd was built without `wasm_syscall` feature enabled: \
test output may not be visible.");
}

// On the wasm32-unknown-unknown target we're using LTO which is
// incompatible with `-C prefer-dynamic`, so disable that here
cargo.env("RUSTC_NO_PREFER_DYNAMIC", "1");
Expand Down
6 changes: 3 additions & 3 deletions src/doc/unstable-book/src/language-features/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ closure-like semantics. Namely:
types and such.

* Traits like `Send` and `Sync` are automatically implemented for a `Generator`
depending on the captured variables of the environment. Unlike closures,
depending on the captured variables of the environment. Unlike closures though
generators also depend on variables live across suspension points. This means
that although the ambient environment may be `Send` or `Sync`, the generator
itself may not be due to internal variables live across `yield` points being
not-`Send` or not-`Sync`. Note that generators, like closures, do
not-`Send` or not-`Sync`. Note, though, that generators, like closures, do
not implement traits like `Copy` or `Clone` automatically.

* Whenever a generator is dropped it will drop all captured environment
Expand All @@ -155,7 +155,7 @@ lifted at a future date, the design is ongoing!

### Generators as state machines

In the compiler, generators are currently compiled as state machines. Each
In the compiler generators are currently compiled as state machines. Each
`yield` expression will correspond to a different state that stores all live
variables over that suspension point. Resumption of a generator will dispatch on
the current state and then execute internally until a `yield` is reached, at
Expand Down
149 changes: 65 additions & 84 deletions src/etc/wasm32-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,74 +28,12 @@ let m = new WebAssembly.Module(buffer);

let memory = null;

function viewstruct(data, fields) {
return new Uint32Array(memory.buffer).subarray(data/4, data/4 + fields);
}

function copystr(a, b) {
let view = new Uint8Array(memory.buffer).subarray(a, a + b);
return String.fromCharCode.apply(null, view);
}

function syscall_write([fd, ptr, len]) {
let s = copystr(ptr, len);
switch (fd) {
case 1: process.stdout.write(s); break;
case 2: process.stderr.write(s); break;
if (memory === null) {
return null
}
}

function syscall_exit([code]) {
process.exit(code);
}

function syscall_args(params) {
let [ptr, len] = params;

// Calculate total required buffer size
let totalLen = -1;
for (let i = 2; i < process.argv.length; ++i) {
totalLen += Buffer.byteLength(process.argv[i]) + 1;
}
if (totalLen < 0) { totalLen = 0; }
params[2] = totalLen;

// If buffer is large enough, copy data
if (len >= totalLen) {
let view = new Uint8Array(memory.buffer);
for (let i = 2; i < process.argv.length; ++i) {
let value = process.argv[i];
Buffer.from(value).copy(view, ptr);
ptr += Buffer.byteLength(process.argv[i]) + 1;
}
}
}

function syscall_getenv(params) {
let [keyPtr, keyLen, valuePtr, valueLen] = params;

let key = copystr(keyPtr, keyLen);
let value = process.env[key];

if (value == null) {
params[4] = 0xFFFFFFFF;
} else {
let view = new Uint8Array(memory.buffer);
let totalLen = Buffer.byteLength(value);
params[4] = totalLen;
if (valueLen >= totalLen) {
Buffer.from(value).copy(view, valuePtr);
}
}
}

function syscall_time(params) {
let t = Date.now();
let secs = Math.floor(t / 1000);
let millis = t % 1000;
params[1] = Math.floor(secs / 0x100000000);
params[2] = secs % 0x100000000;
params[3] = Math.floor(millis * 1000000);
let view = new Uint8Array(memory.buffer).slice(a, a + b);
return String.fromCharCode.apply(null, view);
}

let imports = {};
Expand All @@ -110,25 +48,68 @@ imports.env = {
log10: Math.log10,
log10f: Math.log10,

rust_wasm_syscall: function(index, data) {
switch (index) {
case 1: syscall_write(viewstruct(data, 3)); return true;
case 2: syscall_exit(viewstruct(data, 1)); return true;
case 3: syscall_args(viewstruct(data, 3)); return true;
case 4: syscall_getenv(viewstruct(data, 5)); return true;
case 6: syscall_time(viewstruct(data, 4)); return true;
default:
console.log("Unsupported syscall: " + index);
return false;
// These are called in src/libstd/sys/wasm/stdio.rs and are used when
// debugging is enabled.
rust_wasm_write_stdout: function(a, b) {
let s = copystr(a, b);
if (s !== null) {
process.stdout.write(s);
}
}
},
rust_wasm_write_stderr: function(a, b) {
let s = copystr(a, b);
if (s !== null) {
process.stderr.write(s);
}
},

// These are called in src/libstd/sys/wasm/args.rs and are used when
// debugging is enabled.
rust_wasm_args_count: function() {
if (memory === null)
return 0;
return process.argv.length - 2;
},
rust_wasm_args_arg_size: function(i) {
return Buffer.byteLength(process.argv[i + 2]);
},
rust_wasm_args_arg_fill: function(idx, ptr) {
let arg = process.argv[idx + 2];
let view = new Uint8Array(memory.buffer);
Buffer.from(arg).copy(view, ptr);
},

// These are called in src/libstd/sys/wasm/os.rs and are used when
// debugging is enabled.
rust_wasm_getenv_len: function(a, b) {
let key = copystr(a, b);
if (key === null) {
return -1;
}
if (!(key in process.env)) {
return -1;
}
return Buffer.byteLength(process.env[key]);
},
rust_wasm_getenv_data: function(a, b, ptr) {
let key = copystr(a, b);
let value = process.env[key];
let view = new Uint8Array(memory.buffer);
Buffer.from(value).copy(view, ptr);
},
};

let instance = new WebAssembly.Instance(m, imports);
memory = instance.exports.memory;
try {
instance.exports.main();
} catch (e) {
console.error(e);
process.exit(101);
let module_imports = WebAssembly.Module.imports(m);

for (var i = 0; i < module_imports.length; i++) {
let imp = module_imports[i];
if (imp.module != 'env') {
continue
}
if (imp.name == 'memory' && imp.kind == 'memory') {
memory = new WebAssembly.Memory({initial: 20});
imports.env.memory = memory;
}
}

let instance = new WebAssembly.Instance(m, imports);
5 changes: 0 additions & 5 deletions src/liballoc/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1748,11 +1748,6 @@ impl<'a, K: Ord, Q: ?Sized, V> Index<&'a Q> for BTreeMap<K, V>
{
type Output = V;

/// Returns a reference to the value corresponding to the supplied key.
///
/// # Panics
///
/// Panics if the key is not present in the `BTreeMap`.
#[inline]
fn index(&self, key: &Q) -> &V {
self.get(key).expect("no entry found for key")
Expand Down
2 changes: 0 additions & 2 deletions src/libcore/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,6 @@ impl Display for ! {

#[stable(feature = "rust1", since = "1.0.0")]
impl Debug for bool {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result {
Display::fmt(self, f)
}
Expand Down Expand Up @@ -1749,7 +1748,6 @@ impl<T: Debug> Debug for [T] {

#[stable(feature = "rust1", since = "1.0.0")]
impl Debug for () {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result {
f.pad("()")
}
Expand Down
1 change: 0 additions & 1 deletion src/libcore/fmt/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ macro_rules! debug {
($T:ident) => {
#[stable(feature = "rust1", since = "1.0.0")]
impl fmt::Debug for $T {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fmt::Display::fmt(self, f)
}
Expand Down
44 changes: 0 additions & 44 deletions src/libcore/iter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ use fmt;
use iter_private::TrustedRandomAccess;
use ops::Try;
use usize;
use intrinsics;

#[stable(feature = "rust1", since = "1.0.0")]
pub use self::iterator::Iterator;
Expand Down Expand Up @@ -695,49 +694,6 @@ impl<I> Iterator for StepBy<I> where I: Iterator {
(f(inner_hint.0), inner_hint.1.map(f))
}
}

#[inline]
fn nth(&mut self, mut n: usize) -> Option<Self::Item> {
if self.first_take {
self.first_take = false;
let first = self.iter.next();
if n == 0 {
return first;
}
n -= 1;
}
// n and self.step are indices, we need to add 1 to get the amount of elements
// When calling `.nth`, we need to subtract 1 again to convert back to an index
// step + 1 can't overflow because `.step_by` sets `self.step` to `step - 1`
let mut step = self.step + 1;
// n + 1 could overflow
// thus, if n is usize::MAX, instead of adding one, we call .nth(step)
if n == usize::MAX {
self.iter.nth(step - 1);
} else {
n += 1;
}

// overflow handling
loop {
let mul = n.checked_mul(step);
if unsafe { intrinsics::likely(mul.is_some()) } {
return self.iter.nth(mul.unwrap() - 1);
}
let div_n = usize::MAX / n;
let div_step = usize::MAX / step;
let nth_n = div_n * n;
let nth_step = div_step * step;
let nth = if nth_n > nth_step {
step -= div_n;
nth_n
} else {
n -= div_step;
nth_step
};
self.iter.nth(nth - 1);
}
}
}

// StepBy can only make the iterator shorter, so the len will still fit.
Expand Down
Loading