bors
cd48ce1e9a
Auto merge of #56282 - qnighy:additional-sizedness-fix, r=nikomatsakis
...
Fix #56237 : normalize type before deferred sizedness checking.
This seems to fix #56237 , which was introduced by #56045 . I don't thoroughly understand how this works, but the problem seemed to be a lack of normalization.
r? @cramertj
2018-12-06 17:31:15 +00:00
bors
4bb5d35659
Auto merge of #56392 - petrochenkov:regensym, r=oli-obk
...
Delay gensym creation for "underscore items" (`use foo as _`/`const _`) until name resolution
So they cannot be cloned by macros. See https://github.com/rust-lang/rust/pull/56303 for the discussion.
Mostly fix cross-crate use of underscore items by inverting the "gensyms are lost in metadata" bug as described in https://github.com/rust-lang/rust/pull/56303#issuecomment-442464695 .
Fix unused import warnings for single-segment imports (first commit) and `use crate_name as _` imports (as specified in https://github.com/rust-lang/rust/pull/56303#issuecomment-442274118 ).
Prohibit accidentally implemented `static _: TYPE = EXPR;` (cc https://github.com/rust-lang/rust/pull/55983 ).
Add more tests for `use foo as _` imports.
2018-12-06 15:08:11 +00:00
bors
367e783e6f
Auto merge of #56557 - pietroalbini:rollup, r=pietroalbini
...
Rollup of 11 pull requests
Successful merges:
- #56315 (Rustdoc inline macro reexport)
- #56332 ([rustdoc] Specific crate search)
- #56362 (Stabilise exhaustive integer patterns)
- #56426 (libsyntax_pos: A few tweaks)
- #56441 (rustbuild: Fix issues with compiler docs)
- #56446 (pass the parameter environment to `traits::find_associated_item`)
- #56500 (cleanup: remove static lifetimes from consts)
- #56525 (Avoid extra copy and syscall in std::env::current_exe)
- #56528 (Remove unused dependency (rustc_lint -> rustc_mir))
- #56548 (Optimized string FromIterator + Extend impls)
- #56553 (Don't print the profiling summary to stdout when -Zprofile-json is set)
Failed merges:
r? @ghost
2018-12-06 12:41:30 +00:00
bors
128a1fa4e1
Auto merge of #55635 - oli-obk:min_const_unsafe_fn, r=nikomatsakis
...
Allow calling `const unsafe fn` in `const fn` behind a feature gate
cc #55607
r? @Centril
2018-12-06 10:18:17 +00:00
Pietro Albini
50148a9566
Rollup merge of #56446 - arielb1:special-env-implications, r=nikomatsakis
...
pass the parameter environment to `traits::find_associated_item`
dropping the param-env on the floor is obviously the wrong thing to do.
The ICE was probably exposed by #54490 adding the problem-exposing use of
`traits::find_associated_item`.
Fixes #55380 .
r? @nikomatsakis
2018-12-06 07:48:56 +01:00
Pietro Albini
0aa72ad55d
Rollup merge of #56426 - petrochenkov:syntweak, r=nikomatsakis
...
libsyntax_pos: A few tweaks
2018-12-06 07:48:53 +01:00
Pietro Albini
e57ed0ddab
Rollup merge of #56362 - varkor:stabilise-exhaustive-integer-patterns, r=nikomatsakis
...
Stabilise exhaustive integer patterns
This is dependent on the FCP for https://github.com/rust-lang/rfcs/pull/2591 being completed, but that should happen tomorrow, so there's little harm in opening this PR early.
Closes #50907 .
2018-12-06 07:48:52 +01:00
Pietro Albini
a88feabac4
Rollup merge of #56332 - GuillaumeGomez:specifi-crate-search, r=QuietMisdreavus
...
[rustdoc] Specific crate search
Reopening of #54706 .
Fixes #54616 .
<img width="1440" alt="screenshot 2018-11-29 at 01 29 11" src="https://user-images.githubusercontent.com/3050060/49191372-979adf80-f376-11e8-963e-e4feb927c1da.png ">
r? @QuietMisdreavus
2018-12-06 07:48:50 +01:00
Pietro Albini
3073c7af5f
Rollup merge of #56315 - weiznich:rustdoc_inline_macro_reexport, r=QuietMisdreavus
...
Rustdoc inline macro reexport
Fixes #56173
I assume this needs to have tests? Any pointers where these need to be added?
2018-12-06 07:48:48 +01:00
bors
1839c144bc
Auto merge of #54517 - mcr431:53956-panic-on-include_bytes-of-own-file, r=michaelwoerister
...
53956 panic on include bytes of own file
fix #53956
When using `include_bytes!` on a source file in the project, compiler would panic on subsequent compilations because `expand_include_bytes` would overwrite files in the source_map with no source. This PR changes `expand_include_bytes` to check source_map and use the already existing src, if any.
2018-12-06 01:36:51 +00:00
bors
4988b096e6
Auto merge of #56549 - pietroalbini:rollup, r=pietroalbini
...
Rollup of 15 pull requests
Successful merges:
- #51753 (Document `From` implementations)
- #55563 (Improve no result found sentence in doc search)
- #55987 (Add Weak.ptr_eq)
- #56119 (Utilize `?` instead of `return None`.)
- #56372 (Refer to the second borrow as the "second borrow" in E0501.rs)
- #56388 (More MIR borrow check cleanup)
- #56424 (Mention raw-ident syntax)
- #56452 (Remove redundant clones)
- #56456 (Handle existential types in dead code analysis)
- #56466 (data_structures: remove tuple_slice)
- #56476 (Fix invalid line number match)
- #56497 (cleanup: remove static lifetimes from consts in libstd)
- #56498 (Fix line numbers display)
- #56523 (Added a bare-bones eslint config (removing jslint))
- #56538 (Use inner iterator may_have_side_effect for Cloned)
Failed merges:
r? @ghost
2018-12-05 23:00:36 +00:00
Pietro Albini
1276ffeba2
Rollup merge of #56456 - oli-obk:private_impl_trait, r=cramertj
...
Handle existential types in dead code analysis
fixes #55124
r? @cramertj
2018-12-05 23:54:32 +01:00
Pietro Albini
b2a002dc4b
Rollup merge of #56372 - wildarch:issue-55314-second-borrow-ref, r=davidtwco
...
Refer to the second borrow as the "second borrow" in E0501.rs
Fixes #55314 .
r? @davidtwco
2018-12-05 23:54:27 +01:00
Pietro Albini
64371f1cfe
Rollup merge of #56119 - frewsxcv:frewsxcv-option-carrier, r=TimNN
...
Utilize `?` instead of `return None`.
None
2018-12-05 23:54:25 +01:00
varkor
ed64b1927b
Fix precise_pointer_size_matching tests on all platforms
2018-12-05 23:21:56 +01:00
bors
14997d56a5
Auto merge of #55933 - euclio:doc-panic, r=QuietMisdreavus
...
emit error when doc generation fails
Fixes #41813 .
The diagnostic looks something like this:
```
error: couldn't generate documentation: No space left on device (os error 28)
|
= note: failed to create or modify "/path/to/crate/target/doc/src/lazycell"
```
2018-12-05 20:27:17 +00:00
Andy Russell
c359f98c7a
emit error when doc generation fails
...
Fixes #41813 .
2018-12-05 10:10:31 -05:00
bors
93ac09c3b5
Auto merge of #55466 - sinkuu:cleanup, r=petrochenkov
...
syntax: Use iterator and pattern APIs instead of `char_at`
Iterating over chars with the `char_at(str, i)` `i += ch.len_utf8()` loop seems unidiomatic.
2018-12-05 13:56:07 +00:00
bors
21cb46a6e9
Auto merge of #55922 - oli-obk:slice_pat_ice, r=zackmdavis
...
Fix ICE in `const` slice patterns
fixes #55911
based on https://github.com/rust-lang/rust/pull/55915
New commits start at eabc1551e0d0953f1951020afb5919ab4c129cf5
2018-12-05 07:16:17 +00:00
Matthew Russo
f0f8aa9e05
adds DocTest filename variant, refactors doctest_offset out of source_map, fixes remaining test failures
2018-12-04 19:52:42 -05:00
Matthew Russo
88130f1796
updates all Filename variants to take a fingerprint
2018-12-04 17:24:12 -05:00
bors
b3af09205b
Auto merge of #56486 - matthewjasper:propagate-all-closure-bounds, r=pnkfelix
...
Propagate all closure requirements to the caller
Closes #56477
This should be backported to 1.32 if it doesn't make the cut.
r? @pnkfelix
cc @nikomatsakis
2018-12-04 20:56:11 +00:00
Corey Farwell
9012af6f19
Utilize ? instead of return None.
2018-12-04 08:57:34 -08:00
bors
906deae079
Auto merge of #56244 - oli-obk:loud_ui_errors, r=nikomatsakis
...
Report failing tests without `//~ ERROR` comments
r? @nikomatsakis
2018-12-04 16:26:18 +00:00
Georg Semmler
956b03f7db
Add a test case for inlining the docs of a macro reexport
2018-12-04 10:24:17 +01:00
Oliver Scherer
f4115765c5
Intrinsic checks are just needed for qualify_min_const_fn
2018-12-04 10:17:37 +01:00
Oliver Scherer
ae0b00cada
Add and update tests
2018-12-04 10:17:37 +01:00
Oliver Scherer
37ef5e43af
Add tests for stable unsafe features in const fn
2018-12-04 10:17:37 +01:00
Oliver Scherer
4497ff3762
Emit feature gate suggestion
2018-12-04 10:17:36 +01:00
Oliver Scherer
55abc0bc90
Also prevent mutation fields directly
2018-12-04 10:17:36 +01:00
Oliver Scherer
1894a5fe2c
Also make immutable references to non-freeze restricted value range types unsafe
2018-12-04 10:17:36 +01:00
Oliver Scherer
081c49783f
generalize the message about the creation of layout restricted types
2018-12-04 10:17:36 +01:00
Oliver Scherer
c4a850078c
Adjust a rustc test to the safety changes
2018-12-04 10:17:36 +01:00
Oliver Scherer
14218e3969
Trailing newlines again
2018-12-04 10:17:36 +01:00
Oliver Scherer
8bdb11c4d9
Forbid the creation of mutable borrows to fields of layout constrained types
2018-12-04 10:17:36 +01:00
Oliver Scherer
02b22323f1
Make sure the initialization of constrained int range newtypes is unsafe
2018-12-04 10:17:36 +01:00
Oliver Scherer
cc3470ce3b
Add test for dereferencing raw pointers and immediately referencing again
2018-12-04 10:17:36 +01:00
Oliver Scherer
f2ae7b78d6
Allow calling const unsafe fn in const fn behind a feature gate
2018-12-04 10:17:36 +01:00
Oliver Scherer
ff97569dd9
Update doc-ui tests
2018-12-04 10:06:05 +01:00
Oliver Scherer
690439bb45
Update ui tests
2018-12-04 10:06:05 +01:00
Oliver Scherer
374a096cb1
Remove unused stderr file
2018-12-04 10:06:05 +01:00
Oliver Scherer
1b636b1cd9
Newlines.... newlines everywhere
2018-12-04 10:06:05 +01:00
Oliver Scherer
296398ab52
Add a test ensuring that we don't regress this
2018-12-04 10:06:05 +01:00
Oliver Scherer
61efc3b71b
Update tests
2018-12-04 10:06:05 +01:00
bors
596e10fd32
Auto merge of #55707 - GuillaumeGomez:file-sidebar, r=QuietMisdreavus
...
Add source file sidebar
This is just a start currently but that gives a good overview of what it'll look like:
<img width="1440" alt="screenshot 2018-11-06 at 01 39 15" src="https://user-images.githubusercontent.com/3050060/48035592-05336180-e165-11e8-82e1-5ead0c345eb9.png ">
r? @QuietMisdreavus
2018-12-04 07:00:19 +00:00
bors
91d5d56c00
Auto merge of #55682 - GuillaumeGomez:primitive-sidebar-link-gen, r=QuietMisdreavus
...
Fixes primitive sidebar link generation
Fixes #50746 .
Fixes #55656 .
r? @QuietMisdreavus
2018-12-04 03:34:32 +00:00
Shotaro Yamada
4e3128223b
Fix test
2018-12-04 09:28:14 +09:00
Matthew Jasper
d748712521
Propagate all closure requirements to the caller
2018-12-03 23:17:02 +00:00
Guillaume Gomez
3f253f5394
Improve filter test
2018-12-03 23:05:09 +01:00
Vadim Petrochenkov
101467c152
syntax: dyn is a used keyword now
2018-12-04 00:30:27 +03:00