Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2a73553
Support ?Trait bounds in supertraits and dyn Trait under a feature gate
Bryanskiy Feb 23, 2024
caee195
Invert early exit conditions in `collect_tokens_trailing_token`.
nnethercote Jul 25, 2024
4288edb
Inline and remove `AttrWrapper::is_complete`.
nnethercote Jul 25, 2024
3d363c3
Move `is_complete` to the module that uses it.
nnethercote Jul 25, 2024
e631b1e
Invert the sense of `is_complete` and rename it as `needs_tokens`.
nnethercote Jul 25, 2024
a560810
Don't include inner attribute ranges in `CaptureState`.
nnethercote Jul 26, 2024
6e87858
Fix a comment.
nnethercote Jul 26, 2024
6ea2da5
Tweak a loop.
nnethercote Jul 26, 2024
55d37ae
Remove an unnecessary block.
nnethercote Jul 26, 2024
984039f
Test RUSTC_OVERRIDE_VERSION_STRING
oli-obk Apr 25, 2024
192671f
Make RUSTC_OVERRIDE_VERSION_STRING overwrite the rendered version out…
oli-obk Apr 25, 2024
33b98bf
Remove redundant option that was just encoding that a slice was empty
oli-obk Jul 26, 2024
114e0dc
CI: do not respect custom try jobs for unrolled perf builds
Kobzol Jul 26, 2024
fd9d0bf
Forbid `?Trait` bounds repetitions
Bryanskiy Jul 26, 2024
a9af0a3
Rollup merge of #121676 - Bryanskiy:polarity, r=petrochenkov
matthiaskrgr Jul 26, 2024
da74d40
Rollup merge of #124339 - oli-obk:supports_feature, r=wesleywiser
matthiaskrgr Jul 26, 2024
64eff24
Rollup merge of #128223 - nnethercote:refactor-collect_tokens, r=petr…
matthiaskrgr Jul 26, 2024
e2eb043
Rollup merge of #128224 - nnethercote:fewer-replace_ranges, r=petroch…
matthiaskrgr Jul 26, 2024
202c765
Rollup merge of #128226 - oli-obk:option_vs_empty_slice, r=petrochenkov
matthiaskrgr Jul 26, 2024
53f0849
Rollup merge of #128227 - Kobzol:ci-unrolled-perf-build-matrix, r=tgr…
matthiaskrgr Jul 26, 2024
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
Prev Previous commit
Next Next commit
Make RUSTC_OVERRIDE_VERSION_STRING overwrite the rendered version out…
…put, too
  • Loading branch information
oli-obk committed Jul 26, 2024
commit 192671f67d43676840bd70f6eba645ca09a5e0d1
9 changes: 9 additions & 0 deletions compiler/rustc_driver_impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,15 @@ pub fn version_at_macro_invocation(
) {
let verbose = matches.opt_present("verbose");

let mut version = version;
let mut release = release;
let tmp;
if let Ok(force_version) = std::env::var("RUSTC_OVERRIDE_VERSION_STRING") {
tmp = force_version;
version = &tmp;
release = &tmp;
}

safe_println!("{binary} {version}");

if verbose {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/feature-gates/version_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ fn main() {
.unwrap()
.stdout;
let version = std::str::from_utf8(&version).unwrap().strip_prefix("rustc ").unwrap().trim_end();
assert_ne!(version, signalled_version);
assert_eq!(version, signalled_version);
}