Joshua Nelson
a68ec22053
Fix rustdoc --version
when used with download-rustc
...
Previously, rustdoc would unconditionally report the version that *rustc* was compiled with.
That showed things like `nightly-2022-10-30`, which wasn't right, since this was a `dev` build compiled from source.
Fix it by changing `rustc_driver::version` to a macro expanded at invocation time.
2022-11-09 02:54:51 -06:00
Pietro Albini
3975d55d98
remove cfg(bootstrap)
2022-09-26 10:14:45 +02:00
est31
173eb6f407
Only enable the let_else feature on bootstrap
...
On later stages, the feature is already stable.
Result of running:
rg -l "feature.let_else" compiler/ src/librustdoc/ library/ | xargs sed -s -i "s#\\[feature.let_else#\\[cfg_attr\\(bootstrap, feature\\(let_else\\)#"
2022-09-15 21:06:45 +02:00
Oli Scherer
ee3c835018
Always import all tracing macros for the entire crate instead of piecemeal by module
2022-09-01 14:54:27 +00:00
Giacomo Stevanato
ccc1a4b7a1
Deny diagnostic lints in rustc_interface
2022-08-22 13:22:09 +02:00
Giacomo Stevanato
e4403ae9ff
Move existing diagnostic struct to a new errors module
2022-08-22 13:17:36 +02:00
Jack Huey
410dcc9674
Fully stabilize NLL
2022-06-03 17:16:41 -04:00
Josh Triplett
0fc5c524f5
Stabilize bool::then_some
2022-05-04 13:22:08 +02:00
Mark Rousskov
22c3a71de1
Switch bootstrap cfgs
2022-02-25 08:00:52 -05:00
bjorn3
5730173763
Move setup_callbacks call to create_compiler_and_run
...
This ensures that it is called even when run_in_thread_pool_with_globals
is avoided and reduces code duplication between the parallel and
non-parallel version of run_in_thread_pool_with_globals
2022-02-12 11:47:53 +01:00
lcnr
a1a30f7548
add a rustc::query_stability lint
2022-02-01 10:15:59 +01:00
est31
b2dd1377c7
Use let_else in even more places
2022-01-18 21:37:57 +01:00
Mark Rousskov
3215eeb99f
Revert "Add rustc lint, warning when iterating over hashmaps"
2021-10-28 11:01:42 -04:00
lcnr
00e5abe9b6
allow potential_query_instability
everywhere
2021-10-15 10:58:18 +02:00
Mark Rousskov
0222556c07
Simplify scoped_thread
...
Avoids a bunch of manual pointer manipulation.
2021-09-23 12:56:59 -04:00
bjorn3
86c2d1a2a7
Don't use a generator for BoxedResolver
...
The generator is non-trivial and requires unsafe code anyway. Using
regular unsafe code without a generator is much easier to follow.
2021-06-08 19:24:17 +02:00
bjorn3
312f964478
Remove unused feature gates
2021-05-31 13:55:43 +02:00
Dániel Buga
b87e1ecdf0
Box the biggest ast::ItemKind variants
2021-02-01 09:23:39 +01:00
Mara Bos
aff7bd66e8
Merge set_panic and set_print into set_output_capture.
...
There were no use cases for setting them separately.
Merging them simplifies some things.
2020-11-10 21:58:13 +01:00
marmeladema
68500ffacb
datastructures: replace once_cell
crate with an impl from std
2020-08-30 20:06:14 +01:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00