Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
a54bfcf
Use safe FFI for various functions in codegen_llvm
oli-obk Feb 21, 2025
d4379d2
Remove an unnecessary lifetime
oli-obk Feb 24, 2025
bfd88ce
Avoid some duplication between SimpleCx and CodegenCx
oli-obk Feb 24, 2025
75356b7
Generalize `BackendTypes` over `GenericCx`
oli-obk Feb 24, 2025
840e31b
Generalize BaseTypeCodegenMethods
oli-obk Feb 24, 2025
396baa7
Make allocator shim creation mostly use safe code
oli-obk Feb 24, 2025
29440b8
Remove an unused lifetime param
oli-obk Feb 24, 2025
241c83f
Deduplicate more functions between `SimpleCx` and `CodegenCx`
oli-obk Feb 24, 2025
f16f64b
Remove inherent function that has a trait method duplicate of a commo…
oli-obk Feb 24, 2025
3565603
Use a safe wrapper around an LLVM FFI function
oli-obk Feb 24, 2025
553828c
Mark more LLVM FFI as safe
oli-obk Feb 24, 2025
4daec8d
Remove highlighting of spans on `-Zteach`
estebank Feb 27, 2025
bca9afb
On long spans, trim the middle of them to make them fit in the termin…
estebank Feb 27, 2025
c0383c0
Refactor `emitter` to better account for unicode chars when trimming
estebank Feb 27, 2025
90eb1bd
Fix rustdoc test
estebank Feb 27, 2025
ad69b6a
Fix multiline span start special case
estebank Feb 27, 2025
bf334c2
Make trimming logic work on more than one span at a time
estebank Feb 28, 2025
d7ed32b
Suggest struct or union to add generic that impls trait
xizheyin Mar 5, 2025
7e199b1
Add ui test: suggest-struct-or-union-add-generic-impl-trait.rs
xizheyin Mar 6, 2025
0cf8dbc
Add ergonomic_clones feature flag
spastorino Oct 29, 2024
05c5164
Implement .use keyword as an alias of clone
spastorino Oct 2, 2024
81a926c
Use closure parse code
spastorino Nov 1, 2024
57cb498
Generate the right MIR for by use closures
spastorino Dec 17, 2024
dcdfd55
Add UseCloned trait related code
spastorino Dec 11, 2024
60b6470
Fix clippy
spastorino Dec 26, 2024
8c456cb
Fix rustfmt
spastorino Dec 27, 2024
4cbca77
Separate closures, async and dotuse tests in directories
spastorino Dec 27, 2024
38b4746
Support nested use closures
spastorino Feb 10, 2025
7c17bf8
Add tests
spastorino Feb 10, 2025
292aa87
Fix use closure parsing error message
spastorino Feb 11, 2025
6eb6ff6
Allow to mutate use captures
spastorino Feb 14, 2025
aa58439
Fail gracefully if mutating on a use closure and the closure it not d…
spastorino Feb 14, 2025
18d689c
Add more tests
spastorino Feb 14, 2025
edcbc9b
Add a code example as comment in init_capture_kind_for_place
spastorino Feb 20, 2025
b43b700
Account for UseCloned on expr_use_visitor
spastorino Feb 20, 2025
2f48fce
Change feature flag error to be ergonomic clones are experimental
spastorino Feb 21, 2025
4e6407a
Give a better error message on async use in edition 2015
spastorino Feb 21, 2025
65d65e5
Parse and allow const use closures
spastorino Feb 21, 2025
1702c00
Make captures in ByUse context be always ty::UpvarCapture::ByUse
spastorino Feb 21, 2025
a68db7e
Add examples in stdlib demonstrating the use syntax
spastorino Feb 24, 2025
42b8b13
Add some code comments
spastorino Mar 6, 2025
5a6d00c
Add allow(incomplete_features) to alloc
spastorino Mar 6, 2025
d7104dc
Make feature flag incomplete
spastorino Mar 6, 2025
d2bde63
Add slight variation to feature-gate ergonomic clones test
spastorino Mar 7, 2025
69aafd2
tests: fix some typos in comment
tcpdumppy Mar 7, 2025
760d9c9
Update bootstrap to edition 2024
Kobzol Feb 25, 2025
872ac73
Move `visit_id` calls.
nnethercote Mar 7, 2025
8a98124
Factor out repeated `visit_id` calls.
nnethercote Mar 7, 2025
e7bea57
Fix a typo in the crashtest output.
nnethercote Mar 4, 2025
7943932
Pass `Option<Symbol>` to `def_path_data`/`create_def` methods.
nnethercote Mar 4, 2025
af92a33
Make synthetic RPITIT assoc ty name handling more rigorous.
nnethercote Mar 4, 2025
ef627fb
Rollup merge of #134797 - spastorino:ergonomic-ref-counting-1, r=niko…
matthiaskrgr Mar 7, 2025
83e0af3
Rollup merge of #137549 - oli-obk:llvm-ffi, r=davidtwco
matthiaskrgr Mar 7, 2025
e9149c7
Rollup merge of #137612 - Kobzol:bootstrap-2024, r=onur-ozkan
matthiaskrgr Mar 7, 2025
dd9b4da
Rollup merge of #137757 - estebank:trim-spans, r=davidtwco
matthiaskrgr Mar 7, 2025
ca47b98
Rollup merge of #137977 - nnethercote:less-kw-Empty-1, r=spastorino
matthiaskrgr Mar 7, 2025
8edfad8
Rollup merge of #138042 - xizheyin:issue-135759, r=nnethercote
matthiaskrgr Mar 7, 2025
c90d41b
Rollup merge of #138141 - tcpdumppy:master, r=compiler-errors
matthiaskrgr Mar 7, 2025
eda0a02
Rollup merge of #138150 - nnethercote:streamline-intravisit-visit_id,…
matthiaskrgr Mar 7, 2025
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
Fix multiline span start special case
  • Loading branch information
estebank committed Feb 27, 2025
commit ad69b6a45396ceca680725deadc7301a044b238e
2 changes: 1 addition & 1 deletion compiler/rustc_errors/src/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ impl HumanEmitter {
let mut short_start = true;
for ann in &line.annotations {
if let AnnotationType::MultilineStart(depth) = ann.annotation_type {
if source_string.chars().take(ann.start_col.display).all(|c| c.is_whitespace()) {
if source_string.chars().take(ann.start_col.file).all(|c| c.is_whitespace()) {
let uline = self.underline(ann.is_primary);
let chr = uline.multiline_whole_line;
annotations.push((depth, uline.style));
Expand Down
Loading