Roxane
189d206522
Fix error after rebase
2021-03-15 13:16:18 -04:00
Roxane
7926664876
Add comments with examples and tests
2021-03-15 13:16:04 -04:00
Roxane
22eaffe71a
Add comments with examples and tests
2021-03-15 13:16:04 -04:00
bjorn3
53235d2abb
Enable thread test in std_example
...
Turns out libstd doesn't use #[thread_local] on Windows at all
2021-03-15 18:01:48 +01:00
Oli Scherer
19dce738f9
Delete non-revision ui test output file if revisions are used
2021-03-15 16:56:19 +00:00
Oli Scherer
5553301137
Make regression test succeed as long as it ICEs
2021-03-15 16:56:12 +00:00
Oli Scherer
f261a82a8d
Use tracing instrumentation for better bug diagnosing
2021-03-15 16:53:05 +00:00
Oli Scherer
327cc62b0d
Add reproduction test
2021-03-15 16:46:45 +00:00
Aaron Hill
e70d47b3b5
Mark extern_mod_stmt_cnum as eval_always
...
This query reads from global untracked state, so it always needs to be
evaluated.
2021-03-15 12:26:49 -04:00
bors
0e042d2f70
Auto merge of #6831 - camsteffen:suspicious-map, r=Y-Nak,flip1995
...
Fix suspicious_map false positives
changelog: Fix suspicious_map false positives
Fixes #5253
Replaces #5375
2021-03-15 15:56:56 +00:00
bjorn3
a47896d6e4
Merge pull request #1149 from bjorn3/test_rustc_testsuite
...
Run the rustc test suite on CI
2021-03-15 16:30:52 +01:00
bors
2ccf06302c
Auto merge of #83149 - Dylan-DPC:rollup-ov70c5v, r=Dylan-DPC
...
Rollup of 10 pull requests
Successful merges:
- #82989 (Custom error on literal names from other languages)
- #83054 (Validate rustc_layout_scalar_valid_range_{start,end} attributes)
- #83098 (Find more invalid doc attributes)
- #83108 (Remove unused `opt_local_def_id_to_hir_id` function)
- #83110 (Fix typos in `library/core/src/ptr/mod.rs` and `library/std/src/sys_common/thread_local_dtor.rs`)
- #83113 (Minor refactoring in try_index_step)
- #83127 (Introduce `proc_macro_back_compat` lint, and emit for `time-macros-impl`)
- #83132 (Don't encode file information for span with a dummy location)
- #83141 (⬆️ rust-analyzer)
- #83144 (Introduce `rustc_interface::interface::Config::parse_sess_created` callback)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2021-03-15 15:24:54 +00:00
Dylan DPC
2816c110e0
Rollup merge of #83144 - hyd-dev:parse-sess-created, r=oli-obk
...
Introduce `rustc_interface::interface::Config::parse_sess_created` callback
Resolves #82900 .
cc `@oli-obk`
2021-03-15 16:23:00 +01:00
Dylan DPC
13eac5b236
Rollup merge of #83141 - lnicola:rust-analyzer-2021-03-15, r=jonas-schievink
...
⬆️ rust-analyzer
2021-03-15 16:22:59 +01:00
Dylan DPC
9b16c7a712
Rollup merge of #83132 - Aaron1011:fix/incr-cache-dummy, r=estebank
...
Don't encode file information for span with a dummy location
Fixes #83112
The location information for a dummy span isn't real, so don't encode
it. This brings the incr comp cache code into line with the Span
`StableHash` impl, which doesn't hash the location information for dummy
spans.
Previously, we would attempt to load the 'original' file from a dummy
span - if the file id changed (e.g. due to being moved on disk), we would get an
ICE, since the Span was still valid due to its hash being unchanged.
2021-03-15 16:22:58 +01:00
Dylan DPC
d1f5f1d156
Rollup merge of #83127 - Aaron1011:time-macros-impl-warn, r=petrochenkov
...
Introduce `proc_macro_back_compat` lint, and emit for `time-macros-impl`
Now that future-incompat-report support has landed in nightly Cargo, we
can start to make progress towards removing the various proc-macro
back-compat hacks that have accumulated in the compiler.
This PR introduces a new lint `proc_macro_back_compat`, which results in
a future-incompat-report entry being generated. All proc-macro
back-compat warnings will be grouped under this lint. Note that this
lint will never actually become a hard error - instead, we will remove
the special cases for various macros, which will cause older versions of
those crates to emit some other error.
I've added code to fire this lint for the `time-macros-impl` case. This
is the easiest case out of all of our current back-compat hacks - the
crate was renamed to `time-macros`, so seeing a filename with
`time-macros-impl` guarantees that an older version of the parent `time`
crate is in use.
When Cargo's future-incompat-report feature gets stabilized, affected
users will start to see future-incompat warnings when they build their
crates.
2021-03-15 16:22:57 +01:00
Dylan DPC
8ec9b2a0ac
Rollup merge of #83113 - osa1:refactor_try_index_step, r=jonas-schievink
...
Minor refactoring in try_index_step
Merges `if-let` and `if x.is_some() { ... }` blocks
2021-03-15 16:22:56 +01:00
Dylan DPC
194472c9e3
Rollup merge of #83110 - hyksm:fix-typo, r=jonas-schievink
...
Fix typos in `library/core/src/ptr/mod.rs` and `library/std/src/sys_common/thread_local_dtor.rs`
adress -> address
2021-03-15 16:22:55 +01:00
Dylan DPC
f1061d1dff
Rollup merge of #83108 - jyn514:remove-unused, r=estebank
...
Remove unused `opt_local_def_id_to_hir_id` function
Found while investigating #82933 - all LocalDefIds are expected to have
HirIds, there's no point in pretending otherwise.
2021-03-15 16:22:53 +01:00
Dylan DPC
75a15bf275
Rollup merge of #83098 - camelid:more-doc-attr-check, r=davidtwco
...
Find more invalid doc attributes
- Lint on `#[doc(123)]`, `#[doc("hello")]`, etc.
- Lint every attribute; e.g., will now report two warnings for `#[doc(foo, bar)]`
- Add hyphen to "crate level"
- Display paths like `#[doc(foo::bar)]` correctly instead of as an empty string
2021-03-15 16:22:52 +01:00
Dylan DPC
b8622f2b3b
Rollup merge of #83054 - tmiasko:rustc_layout_scalar_valid_range, r=davidtwco
...
Validate rustc_layout_scalar_valid_range_{start,end} attributes
Fixes #82251 , fixes #82981 .
2021-03-15 16:22:51 +01:00
Dylan DPC
4eca4929ec
Rollup merge of #82989 - Smittyvb:other-lang-literal-errors, r=varkor
...
Custom error on literal names from other languages
This detects all Java literal types and all single word C data types, and suggests the corresponding Rust literal type.
2021-03-15 16:22:50 +01:00
Oli Scherer
6f3635d87b
Fix const stability since versions.
2021-03-15 14:39:18 +00:00
bjorn3
80b2feae1a
Run the rustc test suite on CI
2021-03-15 15:22:18 +01:00
Cameron Steffen
59dba04ccb
Improve find_binding_init docs
2021-03-15 08:56:14 -05:00
bjorn3
154668bd02
Suppress an unnecessary warning and fix an incorrect warning
2021-03-15 14:48:58 +01:00
bjorn3
afc529dbe7
Fix assert_assignable adt checking
2021-03-15 14:22:11 +01:00
bjorn3
f545a21fbe
Split rust fork setup out of test_bootstrap.sh
2021-03-15 14:21:15 +01:00
hyd-dev
0bbfd548ec
Fix src/test/run-make-fulldeps/issue-19371
2021-03-15 21:16:39 +08:00
bjorn3
78d0b77651
Update Cranelift
2021-03-15 14:04:22 +01:00
bjorn3
3d85f05dfd
Remove no longer necessary intcasts
2021-03-15 14:04:04 +01:00
hyd-dev
4709dcd476
Change the .unwrap to .expect with a helpful message
2021-03-15 20:45:45 +08:00
Oli Scherer
1ffd21a15c
Pacify tidy
2021-03-15 12:19:29 +00:00
Smitty
5eae9af193
Custom error on literal names from other languages
...
This detects all Java literal types and all single word C data types,
and suggests the corresponding Rust literal type.
2021-03-15 08:11:02 -04:00
Oli Scherer
21a0c8e9e4
s/ConstantSource/ConstantKind/
2021-03-15 12:06:52 +00:00
Oli Scherer
9f407ae5ee
Do not expose fallible to_int operation on Scalar.
...
Any use of it has been shown to be a bug in the past.
2021-03-15 12:06:52 +00:00
Oli Scherer
0dd5a1b622
Explain pointer and dyn Trait handling in const_to_valtree
2021-03-15 12:06:52 +00:00
Oli Scherer
c01c49430c
Explain how we encode enums at the encoding site
2021-03-15 12:06:52 +00:00
Oli Scherer
f646c1e434
Explain why we do not allow const_to_valtree to read from statics
2021-03-15 12:06:52 +00:00
Oli Scherer
bc8641a487
Document valtree
2021-03-15 12:06:52 +00:00
Oli Scherer
c30c1be1e6
s/ConstantSource/ConstantKind/
2021-03-15 12:06:52 +00:00
Laurențiu Nicola
ebe51cfced
⬆️ rust-analyzer
2021-03-15 13:55:56 +02:00
bors
7a7bbdb3ab
Auto merge of #83118 - erikdesjardins:removezst, r=oli-obk
...
Rebase and fixup #80493 : Remove MIR assignments to ZST types
closes #80493
cc `@simonvandel`
r? `@oli-obk`
2021-03-15 11:30:33 +00:00
bjorn3
b1d14ca05d
Use mmap for metadata loading
...
This can have a significant improvement on compilation times. In
addition it reduces the memory consumption.
Fixes #927
2021-03-15 11:59:06 +01:00
XAMPPRocky
c64e796d24
Update RELEASES.md
2021-03-15 11:49:17 +01:00
hyd-dev
1d57c3e1fb
Use rustc_interface::interface::Config::parse_sess_created in Clippy
2021-03-15 18:25:04 +08:00
hyd-dev
176bb6bd38
Use rustc_interface::interface::Config::parse_sess_created in Clippy
2021-03-15 18:25:04 +08:00
hyd-dev
d7ab3c77b3
Add rustc_interface::interface::Config::parse_sess_created
2021-03-15 18:24:58 +08:00
Samuel E. Moelius III
f7c5742ca6
Do not show docs link when lint doesn't start with "clippy::"
2021-03-15 05:40:21 -04:00
bjorn3
578fcdef5f
Special case ZST's in Rvalue::Repeat
...
Fixes #1146 by preventing a hang for [(); usize::MAX], which is used in
a test of libcore.
2021-03-15 10:22:29 +01:00