carbotaniuman
bd5fce65c6
Rustc changes for permissive provenance
2022-05-13 12:30:25 -05:00
Volker-Weissmann
30108ca15c
Added note in documentation
...
I added this note, because if you forget the `--target` flags, you get a really ugly error message.
https://github.com/rust-lang/cargo/issues/10666
2022-05-13 18:37:07 +02:00
Miguel Guarniz
f1c256d168
remove redundant branch
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
17e86d9ff9
remove unnecessary methods from HirIdValidator
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
433a5f1144
avoid converting to DefId from LocalDefId when using query
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
91223acde3
use for_each_module instead of iterating over Item's
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
df119428a2
change for_each_module's parameter to FnMut
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
cad1fd2f16
update rustdoc code to use new method name
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
2e98879403
change back to using tcx.hir() visit-item method
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
f975d05116
rename visit item-like methods
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
7e44078e9a
update comments about visitor strategy
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
93616dd539
remove ItemLikeVisitor and DeepVisitor
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
0b7dd95475
remove HirVisitor
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
885b90bb34
remove DebuggerVisualizerCollector
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
52d721c3fa
remove TestItemNamesVisitor
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
cdba1dcef6
add module_items
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
e166409f0d
remove Visitor impl for PrivateItemsInPublicInterfacesChecker
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
e8ef5bf464
remove TraitVisitor
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:06 -04:00
Miguel Guarniz
eea16de9f7
replace hir().def_kind for def_kind query in rustc_passes
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
90685c6333
check def_kind before fetching item
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
0a029e2ed0
remove CollectPrivateImplItemsVisitor
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
45c37da0f7
remove LayoutTest
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
0ef16feb72
remove OuterVisitor
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
b1f0209cd1
optimize find_item to fetch Item only when needed
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
fb73ae2c8a
remove ItemLikeVisitor impl for EntryContext
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
dab0e75911
remove DiagnosticItemCollector
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
52f833a254
remove LifeSeeder
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
00260347e3
replace usage of visit_item_likes_in_modules with hir_module_items query
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Miguel Guarniz
bd2b210c59
Remove CheckConstTraitVisitor
...
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13 11:46:05 -04:00
Guillaume Gomez
5ec5a762e9
Emit an error if there is a JS failure on rustdoc pages
2022-05-13 17:05:17 +02:00
Guillaume Gomez
a50ad35dda
Update browser-ui-test version
2022-05-13 17:03:33 +02:00
Mark Rousskov
180fde8f35
Bump to 1.63
2022-05-13 10:08:03 -04:00
Matthias Krüger
cc357bd000
Rollup merge of #97011 - JohnTitor:issue-28935, r=compiler-errors
...
Add regression test for #28935
Closes #28935 , one of the ancient issues can be closed :)
r? `@compiler-errors`
2022-05-13 16:03:26 +02:00
Matthias Krüger
a56211a44e
Rollup merge of #97003 - nnethercote:rm-const_fn-attrs, r=fee1-dead
...
Remove some unnecessary `rustc_allow_const_fn_unstable` attributes.
r? `@fee1-dead`
2022-05-13 16:03:25 +02:00
Matthias Krüger
384caefbb6
Rollup merge of #96982 - klensy:no-expect, r=Dylan-DPC
...
fix clippy expect_fun_call
2022-05-13 16:03:24 +02:00
Matthias Krüger
281be096c1
Rollup merge of #96615 - JohnTitor:test-54779, r=compiler-errors
...
Add a regression test for #54779
Closes #54779
r? `@jackh726`
2022-05-13 16:03:23 +02:00
Matthias Krüger
feb18d102a
Rollup merge of #96154 - lukaslueg:unreachablehint, r=scottmcm
...
Expand core::hint::unreachable_unchecked() docs
Rework the docs for `unreachable_unchecked`, encouraging deliberate use, and providing a better example for action at a distance.
Fixes #95865
2022-05-13 16:03:22 +02:00
Yuki Okushi
9ff4d34923
Add regression test for #28935
2022-05-13 22:04:47 +09:00
bors
a7d6408b05
Auto merge of #96899 - oli-obk:closure_wf_check_bounds, r=nikomatsakis
...
Check that closures satisfy their where bounds
fixes https://github.com/rust-lang/rust/issues/53092
fixes https://github.com/rust-lang/rust/issues/90409
based on https://github.com/rust-lang/rust/pull/96736
2022-05-13 11:18:01 +00:00
Oli Scherer
7a4ac84a90
For non-defining opaque type usage errors, don't try to also prove all trait bounds
2022-05-13 10:09:11 +00:00
Oli Scherer
253408b409
Check that closures satisfy their where bounds
2022-05-13 10:09:11 +00:00
Oli Scherer
59bbbe78e2
Avoid invoking the full eq
infrastructure when all we want is to check a discriminant
2022-05-13 09:31:46 +00:00
bors
1c80ac003b
Auto merge of #96930 - ayrtonm:mips32-tmp-file, r=petrochenkov
...
Fix e_flags for 32-bit MIPS targets in generated object file
In #95604 the compiler started generating a temporary symbols.o which is added to the linker invocation. This object file has an `e_flags` which is invalid for 32-bit MIPS targets. Even though symbols.o doesn't contain code, linking these targets with [lld fails](https://github.com/llvm/llvm-project/blob/main/lld/ELF/Arch/MipsArchTree.cpp#L76-L79 ) with
```
rust-lld: error: foo-cgu.0.rcgu.o: ABI 'o32' is incompatible with target ABI 'n64'
```
because it omits the ABI bits (`EF_MIPS_ABI_O32`) so lld assumes it's using the N64 ABI. This breaks linking on nightly for the out-of-tree [mipsel-sony-psx target](https://github.com/ayrtonm/psx-sdk-rs/issues/9 ), the builtin mipsel-sony-psp target (cc `@overdrivenpotato)` and probably any other 32-bit MIPS target using lld.
This PR sets the ABI in `e_flags` to O32 since that's the only ABI for 32-bit MIPS that LLVM supports. It also sets other `e_flags` bits based on the target to avoid similar issues with the object file arch and PIC. I had to bump the object crate version since some of these constants were [added recently](https://github.com/gimli-rs/object/pull/433 ). I'm not sure if this PR needs a test, but I can confirm that it fixes the linking issue on both targets I mentioned.
2022-05-13 08:48:31 +00:00
Scott McMurray
e8fc7ba6a7
Slap #[inline] on all the ByRefSized methods, per the8472's suggestion
2022-05-13 00:43:15 -07:00
est31
e6ccf9b5d8
Use pluralize in one instance
2022-05-13 08:48:35 +02:00
est31
cc3c5d2700
Improve name and documentation of generic_extension
...
This function doesn't *create* a (rules based) macro, it *expands* it.
Thus, the documentation was wrong.
2022-05-13 08:42:39 +02:00
bors
97d48bec2d
Auto merge of #96965 - oli-obk:flaky_inliner_ice, r=cjgillot
...
Gracefully handle normalization failures in the prospective inliner cycle detector
Preliminary work for adding the regression test in #96950 to our test suite (it was flaky on glacier).
If this PR solves the flakiness on glacier, we can then merge #96950
2022-05-13 06:20:56 +00:00
Nicholas Nethercote
fd01fbc058
Remove some unnecessary rustc_allow_const_fn_unstable
attributes.
2022-05-13 16:01:18 +10:00
bors
f001f9301c
Auto merge of #97000 - matthiaskrgr:rollup-qh3lhu8, r=matthiaskrgr
...
Rollup of 5 pull requests
Successful merges:
- #96932 (Clarify what values `BorrowedHandle`, `OwnedHandle` etc. can hold.)
- #96948 (Add test of matches macro for trailing commas)
- #96988 (Fix platform support links.)
- #96989 (Be more precise than DefPathData::Misc.)
- #96993 (rustdoc: fix GUI crash when searching for magic JS property values)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-05-13 03:40:37 +00:00
Matthias Krüger
5a111dff3b
Rollup merge of #96993 - notriddle:notriddle/prototype, r=GuillaumeGomez
...
rustdoc: fix GUI crash when searching for magic JS property values
2022-05-13 05:33:14 +02:00